1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00

- Add NO_ARCH

- Switch to options helpers
This commit is contained in:
Dmitry Marakasov 2016-01-24 20:02:46 +00:00
parent 3b9fc13f3a
commit 6895fd5641
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=407175

View File

@ -25,24 +25,16 @@ GH_TAGNAME= 3455375
CONFLICTS= gitolite-[^3]*
USES= cpe perl5
CPE_VENDOR= sitaram_chamarty
NO_ARCH= yes
SUB_FILES= pkg-message
OPTIONS_DEFINE= GITUSER DOCS
OPTIONS_SUB= yes
GITUSER_DESC= Create git user as gitolite provider
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGITUSER}
USERS= git
GROUPS= ${USERS}
PLIST_SUB+= GITUSER=""
.else
PLIST_SUB+= GITUSER="@comment "
.endif
GITUSER_VARS= USERS=git GROUPS=git
post-patch:
@${FIND} ${WRKSRC} \
@ -69,8 +61,9 @@ do-install:
(cd ${WRKSRC}/lib && ${COPYTREE_SHARE} Gitolite ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/)
${LN} -s ${PREFIX}/libexec/gitolite/gitolite ${STAGEDIR}${PREFIX}/bin/gitolite
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/README.txt ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/CHANGELOG ${STAGEDIR}${DOCSDIR}
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.txt ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/CHANGELOG ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>