svn commit: r361181 - head/www/py-html5lib

Ruslan Makhmatkhanov rm at FreeBSD.org
Tue Jul 8 06:28:07 UTC 2014


Author: rm
Date: Tue Jul  8 06:28:06 2014
New Revision: 361181
URL: http://svnweb.freebsd.org/changeset/ports/361181
QAT: https://qat.redports.org/buildarchive/r361181/

Log:
  www/py-html5lib: update python version
  
  - update python version: 3.x is now supported
  - add tests
  
  PR:		191385
  Submitted by:	melvyn at magemana.nl
  Reviewed by:	koobs

Modified:
  head/www/py-html5lib/Makefile
  head/www/py-html5lib/distinfo

Modified: head/www/py-html5lib/Makefile
==============================================================================
--- head/www/py-html5lib/Makefile	Tue Jul  8 06:23:29 2014	(r361180)
+++ head/www/py-html5lib/Makefile	Tue Jul  8 06:28:06 2014	(r361181)
@@ -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 at FreeBSD.org
@@ -13,8 +14,29 @@ COMMENT=	Python based HTML parser based 
 
 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>

Modified: head/www/py-html5lib/distinfo
==============================================================================
--- head/www/py-html5lib/distinfo	Tue Jul  8 06:23:29 2014	(r361180)
+++ head/www/py-html5lib/distinfo	Tue Jul  8 06:28:06 2014	(r361181)
@@ -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


More information about the svn-ports-all mailing list