1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

www/py-html5lib: update python version

- update python version: 3.x is now supported
- add tests

PR:		191385
Submitted by:	melvyn@magemana.nl
Reviewed by:	koobs
This commit is contained in:
Ruslan Makhmatkhanov 2014-07-08 06:28:06 +00:00
parent 1bf15ad3ed
commit 68c731f792
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=361181
2 changed files with 27 additions and 3 deletions

View File

@ -4,8 +4,9 @@
PORTNAME= html5lib
PORTVERSION= 0.999
CATEGORIES= www python
MASTER_SITES= GOOGLE_CODE \
CHEESESHOP
MASTER_SITES= GOOGLE_CODE:master \
CHEESESHOP:master \
http://magemana.nl/ports/dist/:test
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= rm@FreeBSD.org
@ -13,8 +14,29 @@ COMMENT= Python based HTML parser based on the HTML5 spec
LICENSE= MIT
USE_PYTHON= 2
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:${PORTSDIR}/devel/py-six
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>0:${PORTSDIR}/devel/py-nose
OPTIONS_DEFINE= TEST
USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYDISTUTILS_AUTOPLIST= yes
.include <bsd.port.options.mk>
.if !empty(PORT_OPTIONS:MTEST)
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}:master \
${PORTNAME}-${PORTVERSION}-testdata${EXTRACT_SUFX}:test
BUILD_DEPENDS+= ${TEST_DEPENDS}
.endif
regression-test: build
@${ECHO_MSG} "===> Testing ${PORTNAME} (patience...)"
@cd ${WRKSRC} && nosetests -q
.if !empty(PORT_OPTIONS:MTEST)
pre-install: regression-test
.endif
.include <bsd.port.mk>

View File

@ -1,2 +1,4 @@
SHA256 (html5lib-0.999.tar.gz) = c3887f7e2875d7666107fa8bee761ff95b9391acdcc7cd1b5fd57a23b5fbc49e
SIZE (html5lib-0.999.tar.gz) = 885440
SHA256 (html5lib-0.999-testdata.tar.gz) = 27c6b2d9668aecf893a34a25ce19af324d5d8ba3acd734ea2915321a3d03a9cd
SIZE (html5lib-0.999-testdata.tar.gz) = 788956