blob: be3fa025a56d442fb279021c5da84bccb6595101 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# $NetBSD: Makefile,v 1.10 2013/03/16 16:11:16 ryoon Exp $
#
GLVER= 3.4
DISTNAME= gitolite-${GLVER}
PKGREVISION= 1
CATEGORIES= devel net
MASTER_SITES= -https://github.com/sitaramc/gitolite/archive/v${GLVER}.tar.gz
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+= scmgit-base>=1.6.6:../../devel/scmgit-base
USE_LANGUAGES= # none
USE_TOOLS+= pax perl:run
# Force using "curl" for fetching the distribution file. It is only available
# over HTTPS and "curl" is the only fetch program which always supports HTTPS.
FETCH_USING= curl
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
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.txt ${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"
|