svn commit: r448583 - head/devel/py-sanetime

Antoine Brodin antoine at FreeBSD.org
Tue Aug 22 21:40:17 UTC 2017


Author: antoine
Date: Tue Aug 22 21:40:16 2017
New Revision: 448583
URL: https://svnweb.freebsd.org/changeset/ports/448583

Log:
  - Add LICENSE_FILE
  - Remove nonsense TESTS option
  - Remove unneeded dependency on the python2 symlink
  - Use the framework for regression tests
  
  With hat:	portmgr

Modified:
  head/devel/py-sanetime/Makefile

Modified: head/devel/py-sanetime/Makefile
==============================================================================
--- head/devel/py-sanetime/Makefile	Tue Aug 22 21:14:10 2017	(r448582)
+++ head/devel/py-sanetime/Makefile	Tue Aug 22 21:40:16 2017	(r448583)
@@ -3,7 +3,7 @@
 
 PORTNAME=	sanetime
 PORTVERSION=	4.2.3
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	devel python astro
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -12,21 +12,15 @@ MAINTAINER=	koobs at FreeBSD.org
 COMMENT=	Sane date/time Python interface, with Django support
 
 LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
 
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}dateutil>=1.5:devel/py-dateutil \
 		${PYTHON_PKGNAMEPREFIX}pytz>=2010:devel/py-pytz
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}unittest2>=0:devel/py-unittest2
 
-OPTIONS_DEFINE=	TESTS
-TESTS_DESC=	Include tools for unit tests
-
-USES=		python:2
+USES=		python:2.7
 USE_PYTHON=	distutils autoplist
-
-TESTS_BUILD_DEPENDS=	${TEST_DEPENDS}
-
-.include <bsd.port.options.mk>
-
-regression-test: build
-	cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test
+DO_MAKE_TEST=	${SETENV} ${TEST_ENV} ${PYTHON_CMD} ${PYDISTUTILS_SETUP}
+TEST_TARGET=	test
 
 .include <bsd.port.mk>


More information about the svn-ports-all mailing list