pkgsrc/devel/gitolite/Makefile
wiz 786d49f368 Updated gitolite to 3.6.6.
2016-09-08  v3.6.6  simple but important fix for a future perl deprecation
                    (perl will be removing "." from @INC in 5.24)

                    'perms' now requires a '-c' to activate batch mode
                    (should not affect interactive use but check your scripts
                    perhaps?)

                    gitolite setup now accepts a '-m' option to supply a
                    custom message (useful when it is used by a script)

From Harry Waddell in PR 52293.
2017-06-12 08:24:37 +00:00

66 lines
2 KiB
Makefile

# $NetBSD: Makefile,v 1.25 2017/06/12 08:24:37 wiz Exp $
GLVER= 3.6.6
DISTNAME= gitolite-${GLVER}
CATEGORIES= devel net
MASTER_SITES= ${MASTER_SITE_GITHUB:=sitaramc/}
GITHUB_PROJECT= gitolite
GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/sitaramc/gitolite/wiki
COMMENT= Gitolite allows you to host Git repositories easily and securely
LICENSE= gnu-gpl-v2
DEPENDS+= git-base>=1.6.6:../../devel/git-base
USE_LANGUAGES= # none
USE_TOOLS+= pax perl:run
NO_BUILD= yes
REPLACE_PERL= src/lib/* src/VREF/* src/triggers/* src/triggers/*/* \
src/commands/* src/gitolite* src/lib/Gitolite/*/*
REPLACE_SH= src/VREF/* src/triggers/* src/triggers/post-compile/* \
src/commands/*
SUBST_CLASSES+= perl
SUBST_STAGE.perl= pre-configure
SUBST_MESSAGE.perl= Set PERL5
SUBST_FILES.perl= src/gitolite
SUBST_FILES.perl+= src/lib/Gitolite/Hooks/*
SUBST_SED.perl= -e 's,/usr/bin/perl,${PERL5},g'
INSTALLATION_DIRS+= bin lib \
share/doc/gitolite \
libexec/gitolite \
${PERL5_INSTALLVENDORARCH}
pre-install:
${FIND} ${WRKSRC} -type f \
-name "*.orig" -exec ${RM} -f {} \;
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/src/gitolite ${DESTDIR}${PREFIX}/libexec/gitolite
${INSTALL_SCRIPT} ${WRKSRC}/src/gitolite-shell ${DESTDIR}${PREFIX}/libexec/gitolite
cd ${DESTDIR}${PREFIX}/bin && ${LN} -s ../libexec/gitolite/gitolite gitolite
${INSTALL_DATA} ${WRKSRC}/CHANGELOG ${DESTDIR}${PREFIX}/share/gitolite
${INSTALL_DATA} ${WRKSRC}/COPYING ${DESTDIR}${PREFIX}/share/gitolite
${INSTALL_DATA} ${WRKSRC}/README.markdown ${DESTDIR}${PREFIX}/share/gitolite
cd ${WRKSRC}/src/lib && pax -rw -pmp Gitolite \
${DESTDIR}${PERL5_INSTALLVENDORARCH}
cd ${WRKSRC}/src && pax -rw -pmp triggers \
${DESTDIR}${PREFIX}/libexec/gitolite
cd ${WRKSRC}/src && pax -rw -pmp syntactic-sugar \
${DESTDIR}${PREFIX}/libexec/gitolite
cd ${WRKSRC}/src && pax -rw -pmp VREF \
${DESTDIR}${PREFIX}/libexec/gitolite
cd ${WRKSRC}/src && pax -rw -pmp commands \
${DESTDIR}${PREFIX}/libexec/gitolite
.include "../../lang/perl5/dirs.mk"
.include "../../mk/bsd.pkg.mk"