From 973c25ee98935e2bb5a6a4c2ba6ca7ac3fcd0624 Mon Sep 17 00:00:00 2001 From: Jimmy Olgeni Date: Thu, 7 Nov 2013 14:33:57 +0000 Subject: [PATCH] - Switch to USES=gmake. - Remove redundant GH master site. - Add staging support. --- www/cowboy/Makefile | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/www/cowboy/Makefile b/www/cowboy/Makefile index 64dfd732bd8a..724c621bd5e2 100644 --- a/www/cowboy/Makefile +++ b/www/cowboy/Makefile @@ -3,7 +3,6 @@ PORTNAME= cowboy PORTVERSION= 0.8.6 CATEGORIES= www -MASTER_SITES= GH MAINTAINER= olgeni@FreeBSD.org COMMENT= Small, fast and modular HTTP server written in Erlang @@ -14,7 +13,7 @@ RUN_DEPENDS= erl:${PORTSDIR}/lang/erlang \ PLIST_SUB= VERSION="${PORTVERSION}" -USE_GMAKE= yes +USES= gmake USE_GITHUB= yes GH_ACCOUNT= extend GH_PROJECT= cowboy @@ -23,22 +22,17 @@ GH_TAGNAME= ${PORTVERSION} PORTDOCS= * -NO_STAGE= yes .include do-install: -.if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/guide/* ${DOCSDIR} -.endif -.if ${PORT_OPTIONS:MEXAMPLES} - @${MKDIR} ${EXAMPLESDIR} - cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR} -.endif - @${MKDIR} ${PREFIX}/lib/erlang/lib/cowboy-${PORTVERSION} - @${MKDIR} ${PREFIX}/lib/erlang/lib/cowboy-${PORTVERSION}/ebin - @${MKDIR} ${PREFIX}/lib/erlang/lib/cowboy-${PORTVERSION}/src - ${INSTALL_DATA} ${WRKSRC}/ebin/* ${PREFIX}/lib/erlang/lib/cowboy-${PORTVERSION}/ebin - ${INSTALL_DATA} ${WRKSRC}/src/* ${PREFIX}/lib/erlang/lib/cowboy-${PORTVERSION}/src + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/guide/* ${STAGEDIR}${DOCSDIR} + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} + @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/cowboy-${PORTVERSION} + @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/cowboy-${PORTVERSION}/ebin + @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/cowboy-${PORTVERSION}/src + ${INSTALL_DATA} ${WRKSRC}/ebin/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/cowboy-${PORTVERSION}/ebin + ${INSTALL_DATA} ${WRKSRC}/src/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/cowboy-${PORTVERSION}/src .include