aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
Diffstat (limited to 'textproc')
-rw-r--r--textproc/py-asv/Makefile28
-rw-r--r--textproc/py-asv/distinfo6
-rw-r--r--textproc/py-asv/pkg-plist13
3 files changed, 20 insertions, 27 deletions
diff --git a/textproc/py-asv/Makefile b/textproc/py-asv/Makefile
index efcd73b3932b..a50f2e6769a9 100644
--- a/textproc/py-asv/Makefile
+++ b/textproc/py-asv/Makefile
@@ -6,10 +6,9 @@
#
PORTNAME= asv
-PORTVERSION= 0.4
-PORTREVISION= 4
+PORTVERSION= 0.5
CATEGORIES= textproc python
-MASTER_SITES= http://tratt.net/laurie/python/asv/releases/
+MASTER_SITES= http://tratt.net/laurie/computing/python/asv/releases/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= ports@FreeBSD.org
@@ -17,7 +16,12 @@ COMMENT= An extensible Python module to parse simple text file formats like CSV
USE_PYTHON= yes
-ASV_BASEDIR= ${PREFIX}/lib/${PYTHON_VERSION}/site-packages
+PORTDOCS= INSTALL 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
do-build:
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
@@ -27,18 +31,20 @@ pre-install:
@ ${SH} ${PKGREQ} INSTALL
do-install:
- @printf '#!/bin/sh\n${PYTHON_CMD} ${ASV_BASEDIR}/ASV.py "$$@"\n' \
+ @printf '#!/bin/sh\n${PYTHON_CMD} ${PYTHONPREFIX_SITELIBDIR}/ASV.py "$$@"\n' \
> ${WRKDIR}/asv.sh
- @${INSTALL_SCRIPT} ${WRKDIR}/asv.sh ${PREFIX}/bin/asv
- @${INSTALL_DATA} ${WRKSRC}/ASV.* ${ASV_BASEDIR}
+ ${INSTALL_SCRIPT} ${WRKDIR}/asv.sh ${PREFIX}/bin/asv
+ ${INSTALL_DATA} ${WRKSRC}/ASV.* ${PYTHONPREFIX_SITELIBDIR}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
-.for docfile in INSTALL README THANKS
- @${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR}
+.for docfile in ${PORTDOCS}
+ ${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR}
.endfor
+.endif
+.if !defined(NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
-.for egfile in asv_example.* example_data.csv
- @${INSTALL_DATA} ${WRKSRC}/${egfile} ${EXAMPLESDIR}
+.for egfile in ${PORTEXAMPLES}
+ ${INSTALL_DATA} ${WRKSRC}/${egfile} ${EXAMPLESDIR}
.endfor
.endif
diff --git a/textproc/py-asv/distinfo b/textproc/py-asv/distinfo
index 79b7000738d1..247546b3cf45 100644
--- a/textproc/py-asv/distinfo
+++ b/textproc/py-asv/distinfo
@@ -1,3 +1,3 @@
-MD5 (asv-0.4.tar.gz) = 420c54e3be366edb913aa2df3328cc4e
-SHA256 (asv-0.4.tar.gz) = 7d0a03a66ff2e02a1e3ba5260eebf616754c4555594ad20dd648a58d939a73aa
-SIZE (asv-0.4.tar.gz) = 10246
+MD5 (asv-0.5.tar.gz) = 3eea6260a0d3a72caf49d729b611ff0b
+SHA256 (asv-0.5.tar.gz) = 9f8ce90711cc740aeb324ce3f7ad578e281b88dc8266c5f7f18b77ed7322cbbb
+SIZE (asv-0.5.tar.gz) = 10358
diff --git a/textproc/py-asv/pkg-plist b/textproc/py-asv/pkg-plist
deleted file mode 100644
index d4c99b1a9bfc..000000000000
--- a/textproc/py-asv/pkg-plist
+++ /dev/null
@@ -1,13 +0,0 @@
-bin/asv
-lib/%%PYTHON_VERSION%%/site-packages/ASV.py
-lib/%%PYTHON_VERSION%%/site-packages/ASV.pyc
-lib/%%PYTHON_VERSION%%/site-packages/ASV.pyo
-%%PORTDOCS%%share/doc/asv/INSTALL
-%%PORTDOCS%%share/doc/asv/README
-%%PORTDOCS%%share/doc/asv/THANKS
-%%PORTDOCS%%share/examples/asv/asv_example.py
-%%PORTDOCS%%share/examples/asv/asv_example.pyc
-%%PORTDOCS%%share/examples/asv/asv_example.pyo
-%%PORTDOCS%%share/examples/asv/example_data.csv
-%%PORTDOCS%%@dirrm share/examples/asv
-%%PORTDOCS%%@dirrm share/doc/asv