1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00

- Add LICENSE

- Add NO_ARCH
- Don't install INSTALL
- Optionize DOCS and EXAMPLES
- Switch to options helpers
This commit is contained in:
Dmitry Marakasov 2015-11-12 17:22:52 +00:00
parent 7754a2be2c
commit f889e37ed8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=401383

View File

@ -10,15 +10,21 @@ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= ports@FreeBSD.org
COMMENT= Extensible Python module to parse simple text file formats like CSV
USES= python
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
PORTDOCS= INSTALL README THANKS
USES= python
NO_ARCH= yes
PORTDOCS= README THANKS
PORTEXAMPLES= asv_example.py example_data.csv
PLIST_FILES= bin/asv \
%%PYTHON_SITELIBDIR%%/ASV.py \
%%PYTHON_SITELIBDIR%%/ASV.pyc \
%%PYTHON_SITELIBDIR%%/ASV.pyo
OPTIONS_DEFINE= DOCS EXAMPLES
do-build:
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \
-d ${PYTHONPREFIX_SITELIBDIR} \
@ -33,8 +39,12 @@ do-install:
${INSTALL_SCRIPT} ${WRKDIR}/asv.sh ${STAGEDIR}${PREFIX}/bin/asv
@${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
${INSTALL_DATA} ${WRKSRC}/ASV.* ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
do-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/,} ${STAGEDIR}${EXAMPLESDIR}