Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Dec 2014 04:34:45 +0000 (UTC)
From:      Kubilay Kocak <koobs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r375310 - head/www/py-grequests
Message-ID:  <201412230434.sBN4YjJP079190@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: koobs
Date: Tue Dec 23 04:34:44 2014
New Revision: 375310
URL: https://svnweb.freebsd.org/changeset/ports/375310
QAT: https://qat.redports.org/buildarchive/r375310/

Log:
  www/py-grequests: Add TESTS option, Modernize
  
  - Add TESTS option
  - Add LICENSE_FILE
  - Switch to the modern Python world order (USES)
  - Update regression-test target

Modified:
  head/www/py-grequests/Makefile

Modified: head/www/py-grequests/Makefile
==============================================================================
--- head/www/py-grequests/Makefile	Tue Dec 23 04:24:33 2014	(r375309)
+++ head/www/py-grequests/Makefile	Tue Dec 23 04:34:44 2014	(r375310)
@@ -11,22 +11,27 @@ MAINTAINER=	koobs@FreeBSD.org
 COMMENT=	Requests with Gevent to make asyncronous HTTP requests
 
 LICENSE=	BSD2CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
 
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}gevent>0:${PORTSDIR}/devel/py-gevent \
 		${PYTHON_PKGNAMEPREFIX}requests>=1.0.0:${PORTSDIR}/www/py-requests
 TEST_DEPENDS:=	${RUN_DEPENDS} \
 		${PYTHON_PKGNAMEPREFIX}nose>0:${PORTSDIR}/devel/py-nose
 
+OPTIONS_DEFINE=	TESTS
+
+TESTS_DESC=		Install test suite requirements
+TESTS_BUILD_DEPENDS=	${TEST_DEPENDS}
+
 USE_GITHUB=	yes
 GH_ACCOUNT=	kennethreitz
 GH_TAGNAME=	v${DISTVERSION}
 GH_COMMIT=	aee3be6
 
-USE_PYTHON=		yes
-USE_PYDISTUTILS=	yes
-PYDISTUTILS_AUTOPLIST=	yes
+USES=		python
+USE_PYTHON=	autoplist distutils
 
 regression-test: build
-	@cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test
+	@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
 
 .include <bsd.port.mk>



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