| @@ -1,35 +1,32 @@ | | | @@ -1,35 +1,32 @@ |
1 | # $NetBSD: Makefile,v 1.3 2022/01/05 15:41:19 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.4 2022/06/22 01:26:35 joerg Exp $ |
2 | | | 2 | |
3 | DISTNAME= xhtml2pdf-0.2.5 | | 3 | DISTNAME= xhtml2pdf-0.2.5 |
4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | | 4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} |
5 | PKGREVISION= 2 | | 5 | PKGREVISION= 2 |
6 | CATEGORIES= print python | | 6 | CATEGORIES= print python |
7 | MASTER_SITES= ${MASTER_SITE_PYPI:=x/xhtml2pdf/} | | 7 | MASTER_SITES= ${MASTER_SITE_PYPI:=x/xhtml2pdf/} |
8 | | | 8 | |
9 | MAINTAINER= pkgsrc-users@NetBSD.org | | 9 | MAINTAINER= pkgsrc-users@NetBSD.org |
10 | HOMEPAGE= https://github.com/xhtml2pdf/xhtml2pdf | | 10 | HOMEPAGE= https://github.com/xhtml2pdf/xhtml2pdf |
11 | COMMENT= PDF generator using HTML and CSS | | 11 | COMMENT= PDF generator using HTML and CSS |
12 | LICENSE= apache-2.0 | | 12 | LICENSE= apache-2.0 |
13 | | | 13 | |
14 | DEPENDS+= ${PYPKGPREFIX}-PDF2-[0-9]*:../../print/py-PDF2 | | 14 | DEPENDS+= ${PYPKGPREFIX}-PDF2-[0-9]*:../../print/py-PDF2 |
15 | DEPENDS+= ${PYPKGPREFIX}-Pillow-[0-9]*:../../graphics/py-Pillow | | 15 | DEPENDS+= ${PYPKGPREFIX}-Pillow-[0-9]*:../../graphics/py-Pillow |
16 | DEPENDS+= ${PYPKGPREFIX}-arabic-reshaper>=2.1.0:../../converters/py-arabic-reshaper | | 16 | DEPENDS+= ${PYPKGPREFIX}-arabic-reshaper>=2.1.0:../../converters/py-arabic-reshaper |
17 | DEPENDS+= ${PYPKGPREFIX}-bidi>=0.4.2:../../converters/py-bidi | | 17 | DEPENDS+= ${PYPKGPREFIX}-bidi>=0.4.2:../../converters/py-bidi |
18 | DEPENDS+= ${PYPKGPREFIX}-html5lib>=1.0:../../textproc/py-html5lib | | 18 | DEPENDS+= ${PYPKGPREFIX}-html5lib>=1.0:../../textproc/py-html5lib |
19 | DEPENDS+= ${PYPKGPREFIX}-reportlab>=3.3.0:../../print/py-reportlab | | 19 | DEPENDS+= ${PYPKGPREFIX}-reportlab>=3.3.0:../../print/py-reportlab |
20 | DEPENDS+= ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six | | 20 | DEPENDS+= ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six |
21 | | | 21 | |
22 | USE_LANGUAGES= # none | | 22 | USE_LANGUAGES= # none |
23 | | | | |
24 | PYTHON_VERSIONS_INCOMPATIBLE= 27 # py-pyphen | | | |
25 | | | | |
26 | USE_PKG_RESOURCES= yes | | 23 | USE_PKG_RESOURCES= yes |
27 | | | 24 | |
28 | post-install: | | 25 | post-install: |
29 | .for bin in pisa xhtml2pdf | | 26 | .for bin in pisa xhtml2pdf |
30 | cd ${DESTDIR}${PREFIX}/bin && \ | | 27 | cd ${DESTDIR}${PREFIX}/bin && \ |
31 | ${MV} ${bin} ${bin}-${PYVERSSUFFIX} || ${TRUE} | | 28 | ${MV} ${bin} ${bin}-${PYVERSSUFFIX} || ${TRUE} |
32 | .endfor | | 29 | .endfor |
33 | | | 30 | |
34 | .include "../../lang/python/egg.mk" | | 31 | .include "../../lang/python/egg.mk" |
35 | .include "../../mk/bsd.pkg.mk" | | 32 | .include "../../mk/bsd.pkg.mk" |