- Add LICENSE_FILE
- Switch to options helpers - Fix test and convert to new test framework Approved by: portmgr blanket
This commit is contained in:
parent
6a876d5a23
commit
6d3d1e0705
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=469521
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user