svn commit: r409117 - head/devel/buildbot-slave

Kubilay Kocak koobs at FreeBSD.org
Thu Feb 18 17:14:37 UTC 2016


Author: koobs
Date: Thu Feb 18 17:14:35 2016
New Revision: 409117
URL: https://svnweb.freebsd.org/changeset/ports/409117

Log:
  devel/buildbot-slave: 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

Modified:
  head/devel/buildbot-slave/Makefile

Modified: head/devel/buildbot-slave/Makefile
==============================================================================
--- head/devel/buildbot-slave/Makefile	Thu Feb 18 17:12:11 2016	(r409116)
+++ head/devel/buildbot-slave/Makefile	Thu Feb 18 17:14:35 2016	(r409117)
@@ -3,6 +3,7 @@
 
 PORTNAME=	buildbot-slave
 PORTVERSION=	0.8.12
+PORTREVISION=	1
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 
@@ -12,26 +13,21 @@ COMMENT=	Continuous Integration Framewor
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-TEST_DEPENDS:=	${RUN_DEPENDS} \
-		trial:${PORTSDIR}/devel/py-twistedCore \
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}twisted>=8.0.0:${PORTSDIR}/devel/py-twisted
+TEST_DEPENDS=	trial:${PORTSDIR}/devel/py-twisted \
 		${PYTHON_PKGNAMEPREFIX}mock>0:${PORTSDIR}/devel/py-mock
 
-OPTIONS_DEFINE=	TESTS
-
-TESTS_DESC=		Install test suite requirements
-TESTS_BUILD_DEPENDS=	${TEST_DEPENDS}
-
-USES=		python twisted:run,runner
+USES=		python:-2.7
 USE_PYTHON=	autoplist distutils
 
-.include <bsd.port.options.mk>
+NO_ARCH=	yes
 
 PLIST_FILES=	man/man1/buildslave.1.gz
 
 post-install:
 	${INSTALL_MAN} ${WRKSRC}/docs/buildslave.1 ${STAGEDIR}${MANPREFIX}/man/man1
 
-regression-test: extract
+do-test:
 	@cd ${WRKSRC} && trial buildslave.test
 
 .include <bsd.port.mk>


More information about the svn-ports-all mailing list