| @@ -1,65 +1,65 @@ | | | @@ -1,65 +1,65 @@ |
1 | # $NetBSD: Makefile,v 1.29 2016/03/18 23:13:26 sevan Exp $ | | 1 | # $NetBSD: Makefile,v 1.30 2016/03/19 19:18:34 sevan Exp $ |
2 | | | 2 | |
3 | DISTNAME= stgit-0.17.1 | | 3 | DISTNAME= stgit-0.17.1 |
4 | PKGREVISION= 10 | | 4 | PKGREVISION= 10 |
5 | CATEGORIES= devel | | 5 | CATEGORIES= devel |
6 | MASTER_SITES= http://download.gna.org/stgit/ | | 6 | MASTER_SITES= http://download.gna.org/stgit/ |
7 | | | 7 | |
8 | MAINTAINER= pkgsrc-users@NetBSD.org | | 8 | MAINTAINER= terin@terinstock.com |
9 | HOMEPAGE= http://www.procode.org/stgit/ | | 9 | HOMEPAGE= http://www.procode.org/stgit/ |
10 | COMMENT= Stacked GIT | | 10 | COMMENT= Stacked GIT |
11 | LICENSE= gnu-gpl-v2 | | 11 | LICENSE= gnu-gpl-v2 |
12 | | | 12 | |
13 | BUILD_DEPENDS+= asciidoc-[0-9]*:../../textproc/asciidoc | | 13 | BUILD_DEPENDS+= asciidoc-[0-9]*:../../textproc/asciidoc |
14 | BUILD_DEPENDS+= xmlto-[0-9]*:../../textproc/xmlto | | 14 | BUILD_DEPENDS+= xmlto-[0-9]*:../../textproc/xmlto |
15 | DEPENDS+= git-base>=1.5.2:../../devel/git-base | | 15 | DEPENDS+= git-base>=1.5.2:../../devel/git-base |
16 | | | 16 | |
17 | AUTO_MKDIRS= yes | | 17 | AUTO_MKDIRS= yes |
18 | USE_TOOLS+= bash:run perl gmake | | 18 | USE_TOOLS+= bash:run perl gmake |
19 | USE_LANGUAGES= #none | | 19 | USE_LANGUAGES= #none |
20 | | | 20 | |
21 | REPLACE_PERL= Documentation/build-docdep.perl | | 21 | REPLACE_PERL= Documentation/build-docdep.perl |
22 | REPLACE_BASH= contrib/stg-* | | 22 | REPLACE_BASH= contrib/stg-* |
23 | | | 23 | |
24 | REPLACE_PYTHON= *.py stgit/*.py stg | | 24 | REPLACE_PYTHON= *.py stgit/*.py stg |
25 | PYSETUPINSTALLARGS= --prefix=${PREFIX} | | 25 | PYSETUPINSTALLARGS= --prefix=${PREFIX} |
26 | PYTHON_VERSIONS_INCOMPATIBLE= 33 34 35 # not yet ported as of 0.14.3 | | 26 | PYTHON_VERSIONS_INCOMPATIBLE= 33 34 35 # not yet ported as of 0.14.3 |
27 | | | 27 | |
28 | MAKE_ENV+= ASCIIDOC=${PREFIX}/bin/asciidoc | | 28 | MAKE_ENV+= ASCIIDOC=${PREFIX}/bin/asciidoc |
29 | MAKE_ENV+= ASCIIDOC_EXTRA=${ASCIIDOC_EXTRA:M*:Q} | | 29 | MAKE_ENV+= ASCIIDOC_EXTRA=${ASCIIDOC_EXTRA:M*:Q} |
30 | | | 30 | |
31 | .include "../../mk/bsd.prefs.mk" | | 31 | .include "../../mk/bsd.prefs.mk" |
32 | | | 32 | |
33 | .for d in asciidoc docbook-xsl | | 33 | .for d in asciidoc docbook-xsl |
34 | GITDOCDEP.${d}= ${${${PKG_INFO} -E ${d} || echo:L:sh}:L:C/[^[0-9]]*/ /g:[1..3]:ts.} | | 34 | GITDOCDEP.${d}= ${${${PKG_INFO} -E ${d} || echo:L:sh}:L:C/[^[0-9]]*/ /g:[1..3]:ts.} |
35 | .endfor | | 35 | .endfor |
36 | | | 36 | |
37 | ASCIIDOC_EXTRA= # empty | | 37 | ASCIIDOC_EXTRA= # empty |
38 | | | 38 | |
39 | .if !empty(GITDOCDEP.asciidoc:M[8]*) | | 39 | .if !empty(GITDOCDEP.asciidoc:M[8]*) |
40 | ASCIIDOC_EXTRA+= -a ascidoc7compatible | | 40 | ASCIIDOC_EXTRA+= -a ascidoc7compatible |
41 | .endif | | 41 | .endif |
42 | | | 42 | |
43 | .if !empty(GITDOCDEP.docbook-xsl:M1.7[2-9]*) | | 43 | .if !empty(GITDOCDEP.docbook-xsl:M1.7[2-9]*) |
44 | ASCIIDOC_EXTRA+= -a docbook-xsl-172 | | 44 | ASCIIDOC_EXTRA+= -a docbook-xsl-172 |
45 | .endif | | 45 | .endif |
46 | | | 46 | |
47 | .include "../../lang/python/application.mk" | | 47 | .include "../../lang/python/application.mk" |
48 | .include "../../lang/python/distutils.mk" | | 48 | .include "../../lang/python/distutils.mk" |
49 | | | 49 | |
50 | pre-build: | | 50 | pre-build: |
51 | cd ${WRKSRC}/Documentation && \ | | 51 | cd ${WRKSRC}/Documentation && \ |
52 | ${SETENV} ${MAKE_ENV} ${GMAKE} all | | 52 | ${SETENV} ${MAKE_ENV} ${GMAKE} all |
53 | | | 53 | |
54 | pre-install: | | 54 | pre-install: |
55 | ${CHMOD} a-x ${WRKSRC}/contrib/stgbashprompt.sh | | 55 | ${CHMOD} a-x ${WRKSRC}/contrib/stgbashprompt.sh |
56 | | | 56 | |
57 | post-install: | | 57 | post-install: |
58 | cd ${WRKSRC}/contrib && \ | | 58 | cd ${WRKSRC}/contrib && \ |
59 | ${RM} -f *.orig && \ | | 59 | ${RM} -f *.orig && \ |
60 | ${INSTALL_SCRIPT} stg-* ${DESTDIR}${PREFIX}/bin | | 60 | ${INSTALL_SCRIPT} stg-* ${DESTDIR}${PREFIX}/bin |
61 | cd ${WRKSRC}/Documentation && \ | | 61 | cd ${WRKSRC}/Documentation && \ |
62 | ${INSTALL_MAN} *.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 && \ | | 62 | ${INSTALL_MAN} *.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 && \ |
63 | ${INSTALL_DATA} *.html ${DESTDIR}/${PREFIX}/share/doc/${PKGBASE}/html | | 63 | ${INSTALL_DATA} *.html ${DESTDIR}/${PREFIX}/share/doc/${PKGBASE}/html |
64 | | | 64 | |
65 | .include "../../mk/bsd.pkg.mk" | | 65 | .include "../../mk/bsd.pkg.mk" |