Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Aug 2017 21:40:16 +0000 (UTC)
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r448583 - head/devel/py-sanetime
Message-ID:  <201708222140.v7MLeGSk016470@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708222140.v7MLeGSk016470>