1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

Unmute build steps, DOCS options

Approved by:	swills (mentor)
This commit is contained in:
Jonathan Chu 2014-07-15 05:27:56 +00:00
parent 09a4645674
commit c103ec6b78
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=361866

View File

@ -28,7 +28,7 @@ USES= perl5
SUB_FILES= pkg-message
OPTIONS_DEFINE= GITUSER
OPTIONS_DEFINE= GITUSER DOCS
GITUSER_DESC= Create git user as gitolite provider
@ -52,25 +52,23 @@ post-patch:
do-build:
echo "v${PORTVERSION}-0-g${GH_COMMIT}" > ${WRKSRC}/src/VERSION
@${MKDIR} ${WRKSRC}/lib
@${MV} ${WRKSRC}/src/lib/Gitolite ${WRKSRC}/lib/
@${RMDIR} ${WRKSRC}/src/lib
@${MV} ${WRKSRC}/check-g2-compat ${WRKSRC}/src/
@${MV} ${WRKSRC}/convert-gitosis-conf ${WRKSRC}/src/
${MKDIR} ${WRKSRC}/lib
${MV} ${WRKSRC}/src/lib/Gitolite ${WRKSRC}/lib/
${RMDIR} ${WRKSRC}/src/lib
${MV} ${WRKSRC}/check-g2-compat ${WRKSRC}/src/
${MV} ${WRKSRC}/convert-gitosis-conf ${WRKSRC}/src/
post-build:
@${FIND} ${WRKSRC} -name "*.bak" -delete
@${FIND} ${WRKSRC} -name "*.orig" -delete
${FIND} ${WRKSRC} -name "*.bak" -delete
${FIND} ${WRKSRC} -name "*.orig" -delete
do-install:
@(cd ${WRKSRC}/src && ${COPYTREE_BIN} \* ${STAGEDIR}${PREFIX}/libexec/gitolite)
@(cd ${WRKSRC}/lib && ${COPYTREE_SHARE} Gitolite ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/)
@${LN} -s ${PREFIX}/libexec/gitolite/gitolite ${STAGEDIR}${PREFIX}/bin/gitolite
(cd ${WRKSRC}/src && ${COPYTREE_BIN} \* ${STAGEDIR}${PREFIX}/libexec/gitolite)
(cd ${WRKSRC}/lib && ${COPYTREE_SHARE} Gitolite ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/)
${LN} -s ${PREFIX}/libexec/gitolite/gitolite ${STAGEDIR}${PREFIX}/bin/gitolite
.if ${PORT_OPTIONS:MDOCS}
-@${MKDIR} ${STAGEDIR}${DOCSDIR}
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/README.txt ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/CHANGELOG ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>