# $FreeBSD$ PORTNAME= gitolite DISTVERSIONPREFIX=v DISTVERSION= 3.6.7 PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= devel MAINTAINER= mat@FreeBSD.org COMMENT= Access control layer on top of git LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING RUN_DEPENDS= git>=0:devel/git \ p5-JSON>=0:converters/p5-JSON USES= cpe perl5 shebangfix USE_GITHUB= yes GH_ACCOUNT= sitaramc CONFLICTS= gitolite-[^3]* CPE_VENDOR= sitaram_chamarty NO_ARCH= yes SHEBANG_REGEX= .* bash_CMD= /bin/sh SUB_FILES= pkg-message OPTIONS_DEFINE= GITUSER DOCS OPTIONS_SUB= yes GITUSER_DESC= Create git user as gitolite provider GITUSER_VARS= USERS=git GROUPS=git post-patch: @${REINPLACE_CMD} -i '' -e 's,#!/usr/bin/perl,#!${PERL},' \ ${WRKSRC}/src/lib/Gitolite/Hooks/*.pm do-build: echo "${GH_TAGNAME}" > ${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/ post-build: ${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}/) ${RLN} -s ${STAGEDIR}${PREFIX}/libexec/gitolite/gitolite ${STAGEDIR}${PREFIX}/bin/gitolite do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README.markdown ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/CHANGELOG ${STAGEDIR}${DOCSDIR} .include