2013-09-21 01:17:30 +02:00
|
|
|
# Created by: Johann Visagie <johann@egenetics.com>
|
2001-04-04 18:04:59 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= asv
|
2008-04-25 17:48:18 +02:00
|
|
|
PORTVERSION= 0.5
|
2001-04-04 18:04:59 +02:00
|
|
|
CATEGORIES= textproc python
|
2011-08-02 21:22:14 +02:00
|
|
|
MASTER_SITES= http://tratt.net/laurie/src/python/asv/releases/
|
2001-04-04 18:04:59 +02:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
|
2002-04-12 11:29:24 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2013-12-30 12:14:37 +01:00
|
|
|
COMMENT= Extensible Python module to parse simple text file formats like CSV
|
2001-04-04 18:04:59 +02:00
|
|
|
|
2015-11-12 18:22:52 +01:00
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
|
2014-12-07 11:01:36 +01:00
|
|
|
USES= python
|
2015-11-12 18:22:52 +01:00
|
|
|
NO_ARCH= yes
|
2001-04-04 18:04:59 +02:00
|
|
|
|
2015-11-12 18:22:52 +01:00
|
|
|
PORTDOCS= README THANKS
|
2008-04-25 17:48:18 +02:00
|
|
|
PORTEXAMPLES= asv_example.py example_data.csv
|
|
|
|
PLIST_FILES= bin/asv \
|
|
|
|
%%PYTHON_SITELIBDIR%%/ASV.py \
|
|
|
|
%%PYTHON_SITELIBDIR%%/ASV.pyc \
|
|
|
|
%%PYTHON_SITELIBDIR%%/ASV.pyo
|
2001-04-04 18:04:59 +02:00
|
|
|
|
2015-11-12 18:22:52 +01:00
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
|
2001-04-04 18:04:59 +02:00
|
|
|
do-build:
|
2013-12-30 12:14:37 +01:00
|
|
|
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \
|
|
|
|
-d ${PYTHONPREFIX_SITELIBDIR} \
|
|
|
|
-f ${WRKSRC}
|
|
|
|
@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \
|
|
|
|
-d ${PYTHONPREFIX_SITELIBDIR} \
|
|
|
|
-f ${WRKSRC}
|
2001-04-04 18:04:59 +02:00
|
|
|
|
|
|
|
do-install:
|
2008-04-25 17:48:18 +02:00
|
|
|
@printf '#!/bin/sh\n${PYTHON_CMD} ${PYTHONPREFIX_SITELIBDIR}/ASV.py "$$@"\n' \
|
2001-04-04 18:04:59 +02:00
|
|
|
> ${WRKDIR}/asv.sh
|
2013-12-30 12:14:37 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/asv.sh ${STAGEDIR}${PREFIX}/bin/asv
|
|
|
|
@${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/ASV.* ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
|
2015-11-12 18:22:52 +01:00
|
|
|
|
|
|
|
do-install-DOCS-on:
|
2013-12-30 12:14:37 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
|
2015-11-12 18:22:52 +01:00
|
|
|
|
|
|
|
do-install-EXAMPLES-on:
|
2013-12-30 12:14:37 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/,} ${STAGEDIR}${EXAMPLESDIR}
|
2001-04-04 18:04:59 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|