From 4837ccc5c982c9558a4d246a44a1eed578e2a96a Mon Sep 17 00:00:00 2001 From: Sunpoet Po-Chuan Hsieh Date: Sat, 26 Oct 2013 08:46:12 +0000 Subject: [PATCH] - Convert to new LIB_DEPENDS format: it also avoids build failure when libevent2 is installed - Add TEST_DEPENDS - Add regression-test: - Support STAGEDIR - While I'm here, strip shared library and bump PORTREVISION for package change PR: ports/183319 (based on) Submitted by: koobs --- devel/py-gevent/Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/devel/py-gevent/Makefile b/devel/py-gevent/Makefile index 9f88bfe9eec9..9b2cfda716ec 100644 --- a/devel/py-gevent/Makefile +++ b/devel/py-gevent/Makefile @@ -3,6 +3,7 @@ PORTNAME= gevent PORTVERSION= 0.13.8 +PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -12,12 +13,18 @@ COMMENT= Python co-routine networking library based on greenlet/libevent LICENSE= MIT -LIB_DEPENDS= event:${PORTSDIR}/devel/libevent +LIB_DEPENDS= libevent-1.4.so:${PORTSDIR}/devel/libevent RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}greenlet>=0:${PORTSDIR}/devel/py-greenlet +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>=0:${PORTSDIR}/databases/py-sqlite3 USE_PYTHON= -2.7 USE_PYDISTUTILS=yes PYDISTUTILS_BUILDARGS= -I${LOCALBASE}/include -L${LOCALBASE}/lib -NO_STAGE= yes +post-build: + @${STRIP_CMD} ${WRKSRC}/gevent/core.so + +regression-test test: build + cd ${WRKSRC}/greentest/ && ${SETENV} PYTHONPATH=../ ${PYTHON_CMD} testrunner.py + .include