svn commit: r451336 - head/security/py-stem

Carlo Strub cs at FreeBSD.org
Thu Oct 5 19:03:46 UTC 2017


Author: cs
Date: Thu Oct  5 19:03:45 2017
New Revision: 451336
URL: https://svnweb.freebsd.org/changeset/ports/451336

Log:
  Added license file; Added dependencies; Added tests; Added autoplist; Set
  supported python version range.
  
  PR:		221637
  Submitted by:	Yuri Victorovich <yuri at rawbw.com>
  Approved by:	maintainer

Deleted:
  head/security/py-stem/pkg-plist
Modified:
  head/security/py-stem/Makefile

Modified: head/security/py-stem/Makefile
==============================================================================
--- head/security/py-stem/Makefile	Thu Oct  5 19:02:09 2017	(r451335)
+++ head/security/py-stem/Makefile	Thu Oct  5 19:03:45 2017	(r451336)
@@ -3,6 +3,7 @@
 
 PORTNAME=	stem
 PORTVERSION=	1.5.4
+PORTREVISION=	1
 CATEGORIES=	security net python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -11,9 +12,18 @@ MAINTAINER=	cs at FreeBSD.org
 COMMENT=	Python controller library for Tor
 
 LICENSE=	LGPL3
+LICENSE_FILE=	${WRKSRC}/LICENSE
 
-USES=		python
-USE_PYTHON=	distutils
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pycrypto>0:security/py-pycrypto
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock \
+		${PYTHON_PKGNAMEPREFIX}pyflakes>0:devel/py-pyflakes \
+		${PYTHON_PKGNAMEPREFIX}pycodestyle>0:devel/py-pycodestyle
+
+USES=		python:2.6+
+USE_PYTHON=	distutils autoplist
 NO_ARCH=	yes
+
+do-test:
+	@cd ${WRKSRC} && ${PYTHON_CMD} run_tests.py -a
 
 .include <bsd.port.mk>


More information about the svn-ports-all mailing list