diff options
author | wiz <wiz> | 2016-02-18 09:57:12 +0000 |
---|---|---|
committer | wiz <wiz> | 2016-02-18 09:57:12 +0000 |
commit | 457961b60af059e8ede0749c55adb8111b5ea71a (patch) | |
tree | eb0dfbc5c6ec2060a1c2307ca7c455ab36828f13 /textproc | |
parent | ee85a676a9fd187909c6b63bf1b8edfe5bb45196 (diff) | |
download | pkgsrc-457961b60af059e8ede0749c55adb8111b5ea71a.tar.gz |
Rename html2text to html2text-${PYVERSSUFFIX} to allow parallel installation
of multiple python versions of this package.
Add ALTERNATIVES file.
Bump PKGREVISION.
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/py-html2text/ALTERNATIVES | 1 | ||||
-rw-r--r-- | textproc/py-html2text/Makefile | 12 | ||||
-rw-r--r-- | textproc/py-html2text/PLIST | 4 |
3 files changed, 11 insertions, 6 deletions
diff --git a/textproc/py-html2text/ALTERNATIVES b/textproc/py-html2text/ALTERNATIVES new file mode 100644 index 00000000000..4997ec044f8 --- /dev/null +++ b/textproc/py-html2text/ALTERNATIVES @@ -0,0 +1 @@ +bin/html2text @PREFIX@/bin/html2text-@PYVERSSUFFIX@ diff --git a/textproc/py-html2text/Makefile b/textproc/py-html2text/Makefile index b1180425a8b..680be07d4e3 100644 --- a/textproc/py-html2text/Makefile +++ b/textproc/py-html2text/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.42 2016/02/07 14:32:08 wiz Exp $ +# $NetBSD: Makefile,v 1.43 2016/02/18 09:57:12 wiz Exp $ DISTNAME= html2text-2016.1.8 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} +PKGREVISION= 1 CATEGORIES= textproc python MASTER_SITES= http://pypi.python.org/packages/source/h/html2text/ @@ -10,9 +11,12 @@ HOMEPAGE= https://pypi.python.org/pypi/html2text/ COMMENT= Convert HTML into easy-to-read plain ASCII text LICENSE= gnu-gpl-v2 -PYTHON_SELF_CONFLICT= yes -PYDISTUTILSPKG= yes -REPLACE_PYTHON= html2text/__init__.py +REPLACE_PYTHON= html2text/__init__.py +PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX} +FILES_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX} + +post-install: + ${MV} ${DESTDIR}${PREFIX}/bin/html2text ${DESTDIR}${PREFIX}/bin/html2text-${PYVERSSUFFIX} .include "../../lang/python/application.mk" .include "../../lang/python/egg.mk" diff --git a/textproc/py-html2text/PLIST b/textproc/py-html2text/PLIST index 9c60e3f7a9d..d2358da081c 100644 --- a/textproc/py-html2text/PLIST +++ b/textproc/py-html2text/PLIST @@ -1,5 +1,5 @@ -@comment $NetBSD: PLIST,v 1.9 2014/12/07 17:27:25 wiz Exp $ -bin/html2text +@comment $NetBSD: PLIST,v 1.10 2016/02/18 09:57:12 wiz Exp $ +bin/html2text-${PYVERSSUFFIX} ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt |