| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.29 2011/10/08 21:13:47 gls Exp $ | | 1 | # $NetBSD: Makefile,v 1.30 2012/02/13 22:38:06 gls Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= asciidoc-8.6.6 | | 4 | DISTNAME= asciidoc-8.6.6 |
5 | CATEGORIES= textproc | | 5 | CATEGORIES= textproc |
6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=asciidoc/} | | 6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=asciidoc/} |
7 | | | 7 | |
8 | MAINTAINER= gls@NetBSD.org | | 8 | MAINTAINER= gls@NetBSD.org |
9 | HOMEPAGE= http://www.methods.co.nz/asciidoc/ | | 9 | HOMEPAGE= http://www.methods.co.nz/asciidoc/ |
10 | COMMENT= ASCII to formatted document converter | | 10 | COMMENT= ASCII to formatted document converter |
11 | LICENSE= gnu-gpl-v2 | | 11 | LICENSE= gnu-gpl-v2 |
12 | | | 12 | |
13 | PKG_DESTDIR_SUPPORT= user-destdir | | 13 | PKG_DESTDIR_SUPPORT= user-destdir |
14 | | | 14 | |
| @@ -21,32 +21,30 @@ PYTHON_PATCH_SCRIPTS+= filters/code/code | | | @@ -21,32 +21,30 @@ PYTHON_PATCH_SCRIPTS+= filters/code/code |
21 | PYTHON_PATCH_SCRIPTS+= filters/latex/latex2png.py | | 21 | PYTHON_PATCH_SCRIPTS+= filters/latex/latex2png.py |
22 | PYTHON_PATCH_SCRIPTS+= filters/music/music2png.py | | 22 | PYTHON_PATCH_SCRIPTS+= filters/music/music2png.py |
23 | PYTHON_PATCH_SCRIPTS+= filters/graphviz/graphviz2png.py | | 23 | PYTHON_PATCH_SCRIPTS+= filters/graphviz/graphviz2png.py |
24 | PYTHON_PATCH_SCRIPTS+= tests/testasciidoc.py tests/asciidocapi.py | | 24 | PYTHON_PATCH_SCRIPTS+= tests/testasciidoc.py tests/asciidocapi.py |
25 | | | 25 | |
26 | NO_BUILD= yes | | 26 | NO_BUILD= yes |
27 | | | 27 | |
28 | SUBST_CLASSES+= ad | | 28 | SUBST_CLASSES+= ad |
29 | SUBST_STAGE.ad= pre-configure | | 29 | SUBST_STAGE.ad= pre-configure |
30 | SUBST_MESSAGE.ad= Fixing hard-coded config file paths. | | 30 | SUBST_MESSAGE.ad= Fixing hard-coded config file paths. |
31 | SUBST_FILES.ad= a2x.py asciidoc.py | | 31 | SUBST_FILES.ad= a2x.py asciidoc.py |
32 | SUBST_SED.ad= -e 's,^\(CONF_DIR\).*=.*,\1="${PREFIX}/share/asciidoc",' | | 32 | SUBST_SED.ad= -e 's,^\(CONF_DIR\).*=.*,\1="${PREFIX}/share/asciidoc",' |
33 | | | 33 | |
34 | SUBST_CLASSES+= ae | | 34 | REPLACE_INTERPRETER+= python |
35 | SUBST_STAGE.ae= pre-configure | | 35 | REPLACE.python.old= /usr/bin/env python |
36 | SUBST_MESSAGE.ae= Fixing hard-coded Python interpreter paths. | | 36 | REPLACE.python.new= ${PYTHONBIN} |
37 | SUBST_FILES.ae= a2x.py asciidoc.conf | | 37 | REPLACE_FILES.python= a2x.py asciidoc.conf html5.conf xhtml11.conf xhtml11-quirks.conf |
38 | SUBST_FILES.ae+= html5.conf xhtml11.conf xhtml11-quirks.conf | | | |
39 | SUBST_SED.ae= -e 's,python,${PYTHONBIN},' | | | |
40 | | | 38 | |
41 | INSTALLATION_DIRS= bin share/asciidoc share/asciidoc/filters \ | | 39 | INSTALLATION_DIRS= bin share/asciidoc share/asciidoc/filters \ |
42 | share/asciidoc/docbook-xsl share/asciidoc/stylesheets \ | | 40 | share/asciidoc/docbook-xsl share/asciidoc/stylesheets \ |
43 | share/asciidoc/javascripts \ | | 41 | share/asciidoc/javascripts \ |
44 | share/asciidoc/images/icons/callouts \ | | 42 | share/asciidoc/images/icons/callouts \ |
45 | ${PKGMANDIR}/man1 ${DOCDIR} | | 43 | ${PKGMANDIR}/man1 ${DOCDIR} |
46 | | | 44 | |
47 | DOCDIR= ${PREFIX}/share/doc/asciidoc | | 45 | DOCDIR= ${PREFIX}/share/doc/asciidoc |
48 | | | 46 | |
49 | .include "options.mk" | | 47 | .include "options.mk" |
50 | | | 48 | |
51 | do-install: | | 49 | do-install: |
52 | ${INSTALL_SCRIPT} ${WRKSRC}/asciidoc.py ${DESTDIR}${PREFIX}/bin/asciidoc | | 50 | ${INSTALL_SCRIPT} ${WRKSRC}/asciidoc.py ${DESTDIR}${PREFIX}/bin/asciidoc |