From 02e41feb6e72779c4a0d2940ff34216d12256a51 Mon Sep 17 00:00:00 2001 From: Antoine Brodin Date: Wed, 5 Feb 2014 21:07:33 +0000 Subject: [PATCH] - Stage support - Use PYDISTUTILS_AUTOPLIST --- devel/py-aspects/Makefile | 25 ++++++++----------------- devel/py-aspects/pkg-plist | 11 ----------- 2 files changed, 8 insertions(+), 28 deletions(-) delete mode 100644 devel/py-aspects/pkg-plist diff --git a/devel/py-aspects/Makefile b/devel/py-aspects/Makefile index 825f4bd957a1..e0043acff987 100644 --- a/devel/py-aspects/Makefile +++ b/devel/py-aspects/Makefile @@ -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 diff --git a/devel/py-aspects/pkg-plist b/devel/py-aspects/pkg-plist deleted file mode 100644 index 19ad1bf0c7c5..000000000000 --- a/devel/py-aspects/pkg-plist +++ /dev/null @@ -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%%