- Remove PYTHON_VERSION=python2.1 restriction
- Implement DOCSDIR and EXAMPLESDIR - Bump PORTREVISION PR: 36914 (PYTHON_VERSION restriction) Submitted by: Alan Eldridge <ports@geeksrus.net>
This commit is contained in:
parent
077d6b874c
commit
eea0fcbd00
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=57613
2 changed files with 16 additions and 18 deletions
|
@ -7,18 +7,16 @@
|
|||
|
||||
PORTNAME= asv
|
||||
PORTVERSION= 0.4
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= textproc python
|
||||
MASTER_SITES= http://tratt.net/laurie/python/asv/releases/
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
|
||||
MAINTAINER= wjv@FreeBSD.org
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
|
||||
PYTHON_VERSION= python2.1
|
||||
USE_PYTHON= yes
|
||||
|
||||
ASV_BASEDIR= ${PREFIX}/lib/${PYTHON_VERSION}/site-packages
|
||||
ASV_DOCDIR= ${PREFIX}/share/doc/py-asv
|
||||
ASV_EGDIR= ${PREFIX}/share/examples/py-asv
|
||||
|
||||
do-build:
|
||||
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
|
||||
|
@ -30,13 +28,13 @@ do-install:
|
|||
@${INSTALL_SCRIPT} ${WRKDIR}/asv.sh ${PREFIX}/bin/asv
|
||||
@${INSTALL_DATA} ${WRKSRC}/ASV.* ${ASV_BASEDIR}
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${ASV_DOCDIR}
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
.for docfile in INSTALL README THANKS
|
||||
@${INSTALL_DATA} ${WRKSRC}/${docfile} ${ASV_DOCDIR}
|
||||
@${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR}
|
||||
.endfor
|
||||
@${MKDIR} ${ASV_EGDIR}
|
||||
@${MKDIR} ${EXAMPLESDIR}
|
||||
.for egfile in asv_example.* example_data.csv
|
||||
@${INSTALL_DATA} ${WRKSRC}/${egfile} ${ASV_EGDIR}
|
||||
@${INSTALL_DATA} ${WRKSRC}/${egfile} ${EXAMPLESDIR}
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
|
|
|
@ -2,12 +2,12 @@ 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/py-asv/INSTALL
|
||||
%%PORTDOCS%%share/doc/py-asv/README
|
||||
%%PORTDOCS%%share/doc/py-asv/THANKS
|
||||
%%PORTDOCS%%share/examples/py-asv/asv_example.py
|
||||
%%PORTDOCS%%share/examples/py-asv/asv_example.pyc
|
||||
%%PORTDOCS%%share/examples/py-asv/asv_example.pyo
|
||||
%%PORTDOCS%%share/examples/py-asv/example_data.csv
|
||||
%%PORTDOCS%%@dirrm share/examples/py-asv
|
||||
%%PORTDOCS%%@dirrm share/doc/py-asv
|
||||
%%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
|
||||
|
|
Loading…
Reference in a new issue