pkgsrc/textproc/py-cssutils/Makefile
leot d3067f7b63 Update textproc/py-cssutils to 1.0.2
pkgsrc changes:
 - Use REPLACE_PYTHON instead of REPLACE_INTERPRETER (no functional changes
   intended)
 - Use ALTERNATIVE and instruct PLIST and Makefile post-install target
   accordingly to permit coexistence of multi-pkgs py-cssutils

Changes:
1.0.2 170304
------------
 - FIXED issue #61: Nesting of `@media` rules
 - FIXED issue #51 and #56: Slow font-family regex
 - FIXED issue #68: failing tests on Python 3
 - FIXED issue #69: our DOM implementation now delegates unsupported methods
 - FIXED issue #72: importing now faster since regexes are no longer pre-cached on import time

1.0.1 151008
------------
 - Fixed Python 3.5 compatibility
2017-04-14 13:06:49 +00:00

28 lines
944 B
Makefile

# $NetBSD: Makefile,v 1.12 2017/04/14 13:06:49 leot Exp $
DISTNAME= cssutils-1.0.2
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= textproc python
MASTER_SITES= ${MASTER_SITE_PYPI:=c/cssutils/}
MAINTAINER= rhialto@falu.nl
HOMEPAGE= http://cthedot.de/cssutils/
COMMENT= Cascading Style Sheets parser and library for Python
LICENSE= gnu-lgpl-v3
USE_LANGUAGES= # none
REPLACE_PYTHON+= src/cssutils/*.py src/cssutils/scripts/*.py
# all files are group/others writable.
post-extract:
chmod -R go-w ${WRKSRC}
post-install:
${MV} ${DESTDIR}${PREFIX}/bin/csscapture ${DESTDIR}${PREFIX}/bin/csscapture-${PYVERSSUFFIX} || ${TRUE}
${MV} ${DESTDIR}${PREFIX}/bin/csscombine ${DESTDIR}${PREFIX}/bin/csscombine-${PYVERSSUFFIX} || ${TRUE}
${MV} ${DESTDIR}${PREFIX}/bin/cssparse ${DESTDIR}${PREFIX}/bin/cssparse-${PYVERSSUFFIX} || ${TRUE}
.include "../../lang/python/application.mk"
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"