freebsd-ports/www/py-bleach/Makefile
Kubilay Kocak a5d8662fcf www/py-bleach: Update to 1.2.2
- Update to 1.2.2
- Pin html5lib version in RUN_DEPENDS
- Make regression-test target use test command
- Patch setup.py: Add test_suite integration (and report upstream)

Changes:

- Pin html5lib to version 0.95 for now due to major API break.
2013-06-10 01:48:19 +00:00

30 lines
650 B
Makefile

# Created by: Kubilay Kocak <koobs@FreeBSD.org>
# $FreeBSD$
PORTNAME= bleach
PORTVERSION= 1.2.2
CATEGORIES= www python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= koobs@FreeBSD.org
COMMENT= An easy whitelist-based HTML-sanitizing tool for Python
LICENSE= BSD
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}html5lib==0.95:${PORTSDIR}/www/py-html5lib
USE_GITHUB= yes
USE_PYTHON= yes
USE_PYDISTUTILS= easy_install
GH_ACCOUNT= jsocol
GH_TAGNAME= v${PORTVERSION}
GH_COMMIT= baf1eac
TEST_DEPENDS:= ${RUN_DEPENDS} \
nosetests:${PORTSDIR}/devel/py-nose \
regression-test: build
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test
.include <bsd.port.mk>