diff options
author | koobs <koobs@FreeBSD.org> | 2016-02-18 22:25:20 +0800 |
---|---|---|
committer | koobs <koobs@FreeBSD.org> | 2016-02-18 22:25:20 +0800 |
commit | 32748acce0d2305f35cacdf07776ae2f48826ad3 (patch) | |
tree | 20fab8f291ca33fc9ddc7a44a1f13537616d9fa5 /devel | |
parent | f22487f9cfe33bceb610d9eacd6ff7652a97ca18 (diff) | |
download | freebsd-ports-gnome-32748acce0d2305f35cacdf07776ae2f48826ad3.tar.gz freebsd-ports-gnome-32748acce0d2305f35cacdf07776ae2f48826ad3.tar.zst freebsd-ports-gnome-32748acce0d2305f35cacdf07776ae2f48826ad3.zip |
devel/buildbot: Modernize (Ports compliance)
- Switch to new method of depending on Twisted, USES=twisted is
DEPRECATED.
- Update and add TEST_DEPENDS, update test target
- Remove TESTS option
- Correctly limit Python version to -2.7
- Enable architecture independence (NO_ARCH)
MFH: 2016Q1
Diffstat (limited to 'devel')
-rw-r--r-- | devel/buildbot/Makefile | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/devel/buildbot/Makefile b/devel/buildbot/Makefile index 1381649b7409..ff4331217d20 100644 --- a/devel/buildbot/Makefile +++ b/devel/buildbot/Makefile @@ -3,6 +3,7 @@ PORTNAME= buildbot PORTVERSION= 0.8.12 +PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= CHEESESHOP @@ -12,31 +13,28 @@ COMMENT= Continuous Integration Framework (Master) LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING -RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Jinja2>=2.1:${PORTSDIR}/devel/py-Jinja2 \ +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}twisted>=11.0.0:${PORTSDIR}/devel/py-twisted \ + ${PYTHON_PKGNAMEPREFIX}Jinja2>=2.1:${PORTSDIR}/devel/py-Jinja2 \ ${PYTHON_PKGNAMEPREFIX}dateutil>=2.1:${PORTSDIR}/devel/py-dateutil \ ${PYTHON_PKGNAMEPREFIX}sqlalchemy-migrate>=0.7:${PORTSDIR}/databases/py-sqlalchemy-migrate \ ${PYTHON_PKGNAMEPREFIX}sqlalchemy>=0.6:${PORTSDIR}/databases/py-sqlalchemy \ ${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3 -TEST_DEPENDS:= ${RUN_DEPENDS} \ +TEST_DEPENDS= trial:${PORTSDIR}/devel/py-twisted \ ${PYTHON_PKGNAMEPREFIX}mock>0.8.0:${PORTSDIR}/devel/py-mock \ - trial:${PORTSDIR}/devel/py-twistedCore \ - ${PYTHON_PKGNAMEPREFIX}twistedWeb>=11.0.0:${PORTSDIR}/www/py-twistedWeb \ - ${PYTHON_PKGNAMEPREFIX}twistedWords>=11.0.0:${PORTSDIR}/net-im/py-twistedWords + ${PYTHON_PKGNAMEPREFIX}boto>0:${PORTSDIR}/devel/py-boto \ + ${PYTHON_PKGNAMEPREFIX}txrequests>0:${PORTSDIR}/www/py-txrequests -OPTIONS_DEFINE= TESTS - -TESTS_DESC= Install test suite requirements -TESTS_BUILD_DEPENDS= ${TEST_DEPENDS} - -USES= python twisted:run,conch,mail,web,words +USES= python:-2.7 USE_PYTHON= autoplist distutils +NO_ARCH= yes + post-patch: @${FIND} ${WRKSRC} -type f | ${XARGS} -n 10 ${REINPLACE_CMD} -e \ 's|/usr/bin/python|${PYTHON_CMD}|g' @${FIND} ${WRKSRC} -name \*.bak -delete -regression-test: extract +do-test: @cd ${WRKSRC} && trial buildbot .include <bsd.port.mk> |