blob: 5cfa2e7481d513dfb3ed5cd5570bd6f962383f31 (
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
|
PORTNAME= gitolite
DISTVERSIONPREFIX= v
DISTVERSION= 3.6.12
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
CPE_VENDOR= sitaram_chamarty
USE_GITHUB= yes
GH_ACCOUNT= sitaramc
SHEBANG_REGEX= .*
bash_CMD= /bin/sh
CONFLICTS= gitolite-[^3]*
NO_ARCH= yes
SUB_FILES= pkg-message
OPTIONS_DEFINE= CONTRIB DOCS GITUSER
OPTIONS_DEFAULT= CONTRIB
OPTIONS_SUB= yes
CONTRIB_DESC= Install additionnal contrib files
GITUSER_DESC= Create git user as gitolite provider
GITUSER_VARS= GROUPS=git \
USERS=git
post-patch:
@${REINPLACE_CMD} -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/
${FIND} ${WRKSRC} '(' -name '*.bak' -o -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} ${STAGEDIR}${PREFIX}/libexec/gitolite/gitolite ${STAGEDIR}${PREFIX}/bin/gitolite
do-install-CONTRIB-on:
@${MKDIR} ${STAGEDIR}${DATADIR} ${STAGEDIR}${PREFIX}/share/vim
(cd ${WRKSRC}/contrib && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR})
${MV} ${STAGEDIR}${DATADIR}/vim ${STAGEDIR}${PREFIX}/share/vim/vimfiles
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.markdown ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/CHANGELOG ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|