| @@ -1,47 +1,41 @@ | | | @@ -1,47 +1,41 @@ |
1 | # $NetBSD: Makefile,v 1.71 2022/11/23 16:21:11 adam Exp $ | | 1 | # $NetBSD: Makefile,v 1.72 2023/04/03 17:26:02 adam Exp $ |
2 | | | 2 | |
3 | DISTNAME= asciidoc-10.2.0 | | 3 | DISTNAME= asciidoc-10.2.0 |
4 | PKGREVISION= 2 | | 4 | PKGREVISION= 3 |
5 | CATEGORIES= textproc | | 5 | CATEGORIES= textproc |
6 | MASTER_SITES= ${MASTER_SITE_GITHUB:=asciidoc/} | | 6 | MASTER_SITES= ${MASTER_SITE_PYPI:=a/asciidoc/} |
7 | GITHUB_PROJECT= asciidoc-py3 | | | |
8 | | | 7 | |
9 | MAINTAINER= gls@NetBSD.org | | 8 | MAINTAINER= gls@NetBSD.org |
10 | HOMEPAGE= http://www.asciidoc.org/ | | 9 | HOMEPAGE= https://asciidoc.org/ |
11 | COMMENT= ASCII to formatted document converter | | 10 | COMMENT= ASCII to formatted document converter |
12 | LICENSE= gnu-gpl-v2 | | 11 | LICENSE= gnu-gpl-v2 |
13 | | | 12 | |
14 | DEPENDS+= docbook-xsl-[0-9]*:../../textproc/docbook-xsl | | 13 | DEPENDS+= docbook-xsl-[0-9]*:../../textproc/docbook-xsl |
15 | DEPENDS+= getopt-[0-9]*:../../misc/getopt | | 14 | DEPENDS+= getopt-[0-9]*:../../misc/getopt |
16 | TEST_DEPENDS+= ${PYPKGPREFIX}-test-mock-[0-9]*:../../devel/py-test-mock | | | |
17 | TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test | | | |
18 | | | | |
19 | WRKSRC= ${WRKDIR}/${DISTNAME:S/-/-py-/} | | | |
20 | | | | |
21 | USE_TOOLS+= pax | | | |
22 | | | 15 | |
23 | USE_PKG_RESOURCES= yes | | 16 | USE_PKG_RESOURCES= yes |
| | | 17 | USE_TOOLS+= pax |
24 | | | 18 | |
25 | REPLACE_PYTHON+= asciidoc/a2x.py | | 19 | REPLACE_PYTHON+= asciidoc/a2x.py |
26 | REPLACE_PYTHON+= asciidoc/asciidoc.py | | 20 | REPLACE_PYTHON+= asciidoc/asciidoc.py |
27 | REPLACE_PYTHON+= asciidoc/resources/filters/code/code-filter.py | | 21 | REPLACE_PYTHON+= asciidoc/resources/filters/code/code-filter.py |
28 | REPLACE_PYTHON+= asciidoc/resources/filters/latex/latex2img.py | | 22 | REPLACE_PYTHON+= asciidoc/resources/filters/latex/latex2img.py |
29 | REPLACE_PYTHON+= asciidoc/resources/filters/music/music2png.py | | 23 | REPLACE_PYTHON+= asciidoc/resources/filters/music/music2png.py |
30 | REPLACE_PYTHON+= asciidoc/resources/filters/graphviz/graphviz2png.py | | 24 | REPLACE_PYTHON+= asciidoc/resources/filters/graphviz/graphviz2png.py |
31 | REPLACE_PYTHON+= asciidoc/resources/filters/unwraplatex.py | | 25 | REPLACE_PYTHON+= asciidoc/resources/filters/unwraplatex.py |
32 | REPLACE_PYTHON+= tests/testasciidoc.py | | 26 | REPLACE_PYTHON+= tests/testasciidoc.py |
33 | | | 27 | |
34 | PYTHON_VERSIONS_INCOMPATIBLE= 27 | | 28 | PYTHON_VERSIONS_INCOMPATIBLE= 27 |
35 | | | 29 | |
36 | .include "options.mk" | | 30 | .include "options.mk" |
37 | | | 31 | |
38 | # as of 10.2.0 | | 32 | SUBST_CLASSES+= pyvers |
39 | # 138 passed, 24 warnings | | 33 | SUBST_STAGE.pyvers= pre-configure |
40 | TEST_ENV+= PYTHONPATH=${WRKSRC}/build/lib | | 34 | SUBST_MESSAGE.pyvers= Adding Python version suffix. |
41 | do-test: | | 35 | SUBST_FILES.pyvers= asciidoc/resources/filters/source/source-highlight-filter.conf |
42 | cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} | | 36 | SUBST_SED.pyvers= -e 's,pygmentize ,pygmentize-${PYVERSSUFFIX} ,g' |
43 | | | 37 | |
44 | .include "../../lang/python/application.mk" | | 38 | .include "../../lang/python/application.mk" |
45 | .include "../../lang/python/egg.mk" | | 39 | .include "../../lang/python/egg.mk" |
46 | .include "../../textproc/libxslt/buildlink3.mk" | | 40 | .include "../../textproc/libxslt/buildlink3.mk" |
47 | .include "../../mk/bsd.pkg.mk" | | 41 | .include "../../mk/bsd.pkg.mk" |