Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Feb 2016 17:14:36 +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: r409117 - head/devel/buildbot-slave
Message-ID:  <201602181714.u1IHEa1j041594@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



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