- Stage support

- Use PYDISTUTILS_AUTOPLIST
This commit is contained in:
Antoine Brodin 2014-02-05 21:07:33 +00:00
parent 71d8de7301
commit 02e41feb6e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=342853
2 changed files with 8 additions and 28 deletions

View file

@ -14,33 +14,24 @@ COMMENT= Lightweight aspect oriented programming library for Python
LICENSE= LGPL21
USES= gmake
USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYDISTUTILS_PKGNAME= python-${PORTNAME}
PYDISTUTILS_AUTOPLIST= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
SUB_FILES= pkg-message
EXAMPLESFILES= httpget_example.py timeout_advice.py timeout_example.py \
PORTEXAMPLES= httpget_example.py timeout_advice.py timeout_example.py \
tracer_advice.py tracer_example.py typecheck_advice.py \
typecheck_example.py
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
NO_STAGE= yes
do-build:
@PYTHON="${PYTHON_CMD}" ${GMAKE} -C ${WRKSRC} check
OPTIONS_DEFINE= EXAMPLES
#regression-test: extract
# @PYTHON="${PYTHON_CMD}" ${GMAKE} -C ${WRKSRC} check
.if !defined(NOPORTEXAMPLES)
post-install:
@${MKDIR} ${EXAMPLESDIR}
.for f in ${EXAMPLESFILES}
@${INSTALL_DATA} ${WRKSRC}/examples/${f} ${EXAMPLESDIR}
.endfor
.endif
.if !defined(BATCH)
@${CAT} ${PKGMESSAGE}
.endif
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/examples/,} ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>

View file

@ -1,11 +0,0 @@
%%PYTHON_SITELIBDIR%%/aspects.py
%%PYTHON_SITELIBDIR%%/aspects.pyc
%%PYTHON_SITELIBDIR%%/aspects.pyo
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/httpget_example.py
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/timeout_advice.py
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/timeout_example.py
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tracer_advice.py
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tracer_example.py
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/typecheck_advice.py
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/typecheck_example.py
@dirrm %%EXAMPLESDIR%%