Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Jan 2016 15:34:27 +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: r407158 - head/devel/py-trollius
Message-ID:  <201601241534.u0OFYRV4008829@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: koobs
Date: Sun Jan 24 15:34:27 2016
New Revision: 407158
URL: https://svnweb.freebsd.org/changeset/ports/407158

Log:
  devel/py-trollius: Fix Python 3.x build, Modernize
  
  - Correct LICENSE (MIT to APACHE20)
  - Add LICENSE_FILE
  - Remove BUILD_DEPENDS, futures (and most python packages) are RUN_DEPENDS
  - Conditionalise futures RUN_DEPENDS. Only required on Python < 3
  - Sort USE_PYTHON
  - Add NO_ARCH
  - Add test target and TEST_DEPENDS
  
  QA:
  
  * portlint: OK (WARN: Makefile: "RUN_DEPENDS" has to appear earlier. - False Positive)
  * testport: OK (poudriere: 11amd64, Python 2.7 / 3.4)
  * unittest: OK (Ran 845 tests in 23.226s - FAILED (failures=3, skipped=1)
                 False Positives, fixed in version 2.0
  
  PR:		205078
  Approved by:	portmgr (blanket, ports compliance)
  MFH:		2016Q1

Modified:
  head/devel/py-trollius/Makefile

Modified: head/devel/py-trollius/Makefile
==============================================================================
--- head/devel/py-trollius/Makefile	Sun Jan 24 15:33:59 2016	(r407157)
+++ head/devel/py-trollius/Makefile	Sun Jan 24 15:34:27 2016	(r407158)
@@ -2,6 +2,7 @@
 
 PORTNAME=	trollius
 PORTVERSION=	1.0
+PORTREVISION=	1
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -9,12 +10,24 @@ PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 MAINTAINER=	skreuzer@FreeBSD.org
 COMMENT=	Port of the Tulip project (asyncio module, PEP 3156) on Python 2
 
-LICENSE=	MIT
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/COPYING
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}futures>0:${PORTSDIR}/devel/py-futures
-RUN_DEPENDS:=	${BUILD_DEPENDS}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}mock>0:${PORTSDIR}/devel/py-mock
 
 USES=		python
-USE_PYTHON=	distutils autoplist
+USE_PYTHON=	autoplist distutils
 
-.include <bsd.port.mk>
+NO_ARCH=	yes
+
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 3000
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}futures>0:${PORTSDIR}/devel/py-futures
+.endif
+
+do-test:
+	@cd ${WRKSRC} && \
+	${PYTHON_CMD} runtests.py
+
+.include <bsd.port.post.mk>



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