pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
py-csp: Add target for tests
Module Name: pkgsrc-wip
Committed By: Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By: kamil
Date: Sun Sep 25 01:20:24 2016 +0200
Changeset: 95d6f9d470b16b4a3fc627988cdbb4bb160d14de
Modified Files:
py-csp/Makefile
Log Message:
py-csp: Add target for tests
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=95d6f9d470b16b4a3fc627988cdbb4bb160d14de
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
py-csp/Makefile | 17 ++++++++++++++---
1 file changed, 14 insertions(+), 3 deletions(-)
diffs:
diff --git a/py-csp/Makefile b/py-csp/Makefile
index 418848b..21855dd 100644
--- a/py-csp/Makefile
+++ b/py-csp/Makefile
@@ -17,11 +17,22 @@ EGDIR= ${PREFIX}/share/examples/py-csp
EGG_NAME= ${DISTNAME:S/-complete//1}
INSTALLATION_DIRS+= ${EGDIR}
+SUBST_CLASSES+= prefix
+SUBST_STAGE.prefix= pre-configure
+SUBST_FILES.prefix= test/runtests.sh
+SUBST_MESSAGE.prefix= Fixing Python's path
+SUBST_SED.prefix= -e "s|PYTHON=python|PYTHON=${PYTHONBIN}|1"
+
post-install:
${INSTALL_DATA} ${WRKSRC}/test/*.py ${DESTDIR}${EGDIR}
-DEPENDS+= ${PYPKGPREFIX}-Pyro4>=3.4:../../devel/py-Pyro
-DEPENDS+= ${PYPKGPREFIX}-greenlet>=0.2:../../devel/py-greenlet
-DEPENDS+= ${PYPKGPREFIX}-uuid>=1.30:../../wip/py-uuid
+do-test:
+ ${RUN} cd ${WRKSRC}/test && \
+ ./runtests.sh
+
+DEPENDS+= ${PYPKGPREFIX}-Pyro4-[0-9]*:../../devel/py-Pyro
+DEPENDS+= ${PYPKGPREFIX}-greenlet-[0-9]*:../../devel/py-greenlet
+DEPENDS+= ${PYPKGPREFIX}-uuid-[0-9]*:../../wip/py-uuid
+DEPENDS+= ${PYPKGPREFIX}-netifaces-[0-9]*:../../net/py-netifaces
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
Home |
Main Index |
Thread Index |
Old Index