- Fix own mistake that caused a *.orig file to be installed in ${PREFIX}/bin
- List executable files to be installed explicitly - it's so much safer! - Bump ${PORTREVISION}
This commit is contained in:
parent
4140036638
commit
d21ae48a78
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=46542
2 changed files with 11 additions and 5 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
PORTNAME= twisted
|
||||
PORTVERSION= 0.10.0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= devel net python
|
||||
MASTER_SITES= http://twistedmatrix.com/downloads/
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
|
@ -20,11 +21,13 @@ RUN_DEPENDS= ${PYTHON_SITELIBDIR}/unittest.py:${PORTSDIR}/devel/py-unit
|
|||
USE_PYTHON= yes
|
||||
|
||||
EXAMPLESDIR= ${PREFIX}/share/examples/twisted
|
||||
|
||||
SCRIPTS= accepttests build-deb cpyrght faucet gnusto im malyon \
|
||||
manhole mapeditor mktap runtests tap2deb twistd \
|
||||
twistd-debug
|
||||
MAN1= faucet.1 gnusto.1 im.1 manhole.1 mktap.1 tap2deb.1 twistd.1
|
||||
|
||||
post-patch:
|
||||
@ ${PERL} -pi.orig -e 's/from pyunit import/import/g' \
|
||||
@ ${PERL} -pi -e 's/from pyunit import/import/g' \
|
||||
${WRKSRC}/bin/runtests ${WRKSRC}/twisted/test/*.py
|
||||
|
||||
do-build:
|
||||
|
@ -33,8 +36,12 @@ do-build:
|
|||
do-install:
|
||||
@ cd ${WRKSRC} && ${PYTHON_CMD} setup.py install -c -O1 \
|
||||
--prefix=${PREFIX}
|
||||
@ ${INSTALL_SCRIPT} ${WRKSRC}/bin/* ${PREFIX}/bin
|
||||
@ ${INSTALL_MAN} ${WRKSRC}/doc/man/*.1 ${MANPREFIX}/man/man1
|
||||
.for script in ${SCRIPTS}
|
||||
@ ${INSTALL_SCRIPT} ${WRKSRC}/bin/${script} ${PREFIX}/bin
|
||||
.endfor
|
||||
.for manpage in ${MAN1}
|
||||
@ ${INSTALL_MAN} ${WRKSRC}/doc/man/${manpage} ${MANPREFIX}/man/man1
|
||||
.endfor
|
||||
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
|
|
|
@ -21,7 +21,6 @@ bin/manhole
|
|||
bin/mapeditor
|
||||
bin/mktap
|
||||
bin/runtests
|
||||
bin/runtests.orig
|
||||
bin/tap2deb
|
||||
bin/twistd
|
||||
bin/twistd-debug
|
||||
|
|
Loading…
Reference in a new issue