Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jan 2016 06:18:01 +0000 (UTC)
From:      Kubilay Kocak <koobs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r407189 - branches/2016Q1/devel/py-trollius
Message-ID:  <201601250618.u0P6I1Z8069403@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: koobs
Date: Mon Jan 25 06:18:01 2016
New Revision: 407189
URL: https://svnweb.freebsd.org/changeset/ports/407189

Log:
  MFH: r407158 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)
  
  Approved by:	ports-secteam (feld)

Modified:
  branches/2016Q1/devel/py-trollius/Makefile
Directory Properties:
  branches/2016Q1/   (props changed)

Modified: branches/2016Q1/devel/py-trollius/Makefile
==============================================================================
--- branches/2016Q1/devel/py-trollius/Makefile	Mon Jan 25 00:41:30 2016	(r407188)
+++ branches/2016Q1/devel/py-trollius/Makefile	Mon Jan 25 06:18:01 2016	(r407189)
@@ -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?201601250618.u0P6I1Z8069403>