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)
This commit is contained in:
parent
04376cc4b4
commit
a2f07ba355
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/branches/2016Q1/; revision=407189
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user