Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 May 2018 08:34:01 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r469521 - head/devel/py-bitarray
Message-ID:  <201805100834.w4A8Y1Ai042052@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Thu May 10 08:34:01 2018
New Revision: 469521
URL: https://svnweb.freebsd.org/changeset/ports/469521

Log:
  - Add LICENSE_FILE
  - Switch to options helpers
  - Fix test and convert to new test framework
  
  Approved by:	portmgr blanket

Modified:
  head/devel/py-bitarray/Makefile

Modified: head/devel/py-bitarray/Makefile
==============================================================================
--- head/devel/py-bitarray/Makefile	Thu May 10 08:03:48 2018	(r469520)
+++ head/devel/py-bitarray/Makefile	Thu May 10 08:34:01 2018	(r469521)
@@ -12,6 +12,7 @@ MAINTAINER=	sbz@FreeBSD.org
 COMMENT=	Efficient arrays of booleans
 
 LICENSE=	PSFL
+LICENSE_FILE=	${WRKSRC}/LICENSE
 
 USES=		python
 USE_PYTHON=	distutils autoplist
@@ -19,18 +20,20 @@ USE_PYTHON=	distutils autoplist
 DOCSDIR=	${PREFIX}/share/doc/py-${PORTNAME}
 EXAMPLESDIR=	${PREFIX}/share/examples/py-${PORTNAME}
 
-PORTDOCS=	AUTHORS CHANGE_LOG LICENSE README.rst
+PORTDOCS=	AUTHORS CHANGE_LOG README.rst
 PORTEXAMPLES=	*
 
 OPTIONS_DEFINE=	DOCS EXAMPLES
 
-post-install:
+post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
+
+post-install-EXAMPLES-on:
 	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
 	${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}
 
-regression-test: extract
-	@(cd ${WRKSRC}/${PORTNAME}; ${PYTHON_CMD} -c "import ${PORTNAME}; ${PORTNAME}.test()")
+do-test:
+	${SETENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} ${PYTHON_CMD} -c "import ${PORTNAME}; ${PORTNAME}.test()"
 
 .include <bsd.port.mk>



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