- Switch to USES=gmake.
- Remove redundant GH master site. - Add staging support.
This commit is contained in:
parent
f2b985cb45
commit
973c25ee98
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=333103
1 changed files with 10 additions and 16 deletions
|
@ -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 <bsd.port.options.mk>
|
||||
|
||||
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 <bsd.port.mk>
|
||||
|
|
Loading…
Reference in a new issue