Bug 183319

Summary: [PATCH] devel/py-gevent: Fix LIB_DEPENDS, Enable STAGE support
Product: Ports & Packages Reporter: koobs <koobs.freebsd>
Component: Individual Port(s)Assignee: Po-Chuan Hsieh <sunpoet>
Status: Closed FIXED    
Severity: Affects Only Me CC: sunpoet
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
py27-gevent-0.13.8_1.patch none

Description koobs 2013-10-26 05:50:00 UTC
devel/py-gevent: Fix LIB_DEPENDS, Enable STAGE support

- Use new LIB_DEPENDS format to explicitly look for libevent 1.x
  libraries. This causes build failures in ports that depend on
  py-gevent (py-gunicorn) when libevent2 is installed
- Enable STAGE support
- Bump PORTREVISION
- Add TEST_DEPENDS and regression-test target
- Whitespace alignment

portlint: OK - looks fine.
porttest: OK - 9-STABLE amd64
testport: OK - poudriere, all versions/archs
unittest: FAIL (existing and unrelated to this change)

Port maintainer (sunpoet@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99_8 (mode: change, diff: ports)
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-10-26 05:50:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->sunpoet

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2013-10-26 09:46:22 UTC
Author: sunpoet
Date: Sat Oct 26 08:46:12 2013
New Revision: 331662
URL: http://svnweb.freebsd.org/changeset/ports/331662

Log:
  - 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

Modified:
  head/devel/py-gevent/Makefile

Modified: head/devel/py-gevent/Makefile
==============================================================================
--- head/devel/py-gevent/Makefile	Sat Oct 26 08:46:05 2013	(r331661)
+++ head/devel/py-gevent/Makefile	Sat Oct 26 08:46:12 2013	(r331662)
@@ -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 li
 
 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 <bsd.port.mk>
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Po-Chuan Hsieh freebsd_committer freebsd_triage 2013-10-26 09:48:08 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks!