From koobs.freebsd@gmail.com  Sat Oct 26 04:49:41 2013
Return-Path: <koobs.freebsd@gmail.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTP id 84347208;
	Sat, 26 Oct 2013 04:49:41 +0000 (UTC)
	(envelope-from koobs.freebsd@gmail.com)
Received: from mail-pd0-x234.google.com (mail-pd0-x234.google.com [IPv6:2607:f8b0:400e:c02::234])
	(using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 59823278D;
	Sat, 26 Oct 2013 04:49:41 +0000 (UTC)
Received: by mail-pd0-f180.google.com with SMTP id p10so4807663pdj.11
        for <multiple recipients>; Fri, 25 Oct 2013 21:49:41 -0700 (PDT)
Received: from 9-STABLE-amd64.elysium (ppp59-167-128-11.static.internode.on.net. [59.167.128.11])
        by mx.google.com with ESMTPSA id og5sm13284706pbb.10.2013.10.25.21.49.39
        for <multiple recipients>
        (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Fri, 25 Oct 2013 21:49:40 -0700 (PDT)
Received: by 9-STABLE-amd64.elysium (Postfix, from userid 1001)
	id D1FDC39E13; Sat, 26 Oct 2013 15:49:35 +1100 (EST)
Message-Id: <20131026044935.D1FDC39E13@9-STABLE-amd64.elysium>
Date: Sat, 26 Oct 2013 15:49:35 +1100 (EST)
From: Kubilay Kocak <koobs.freebsd@gmail.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc: sunpoet@FreeBSD.org
Subject: [PATCH] devel/py-gevent: Fix LIB_DEPENDS, Enable STAGE support
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         183319
>Category:       ports
>Synopsis:       [PATCH] devel/py-gevent: Fix LIB_DEPENDS, Enable STAGE support
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    sunpoet
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 26 04:50:00 UTC 2013
>Closed-Date:    Sat Oct 26 08:48:08 UTC 2013
>Last-Modified:  Sat Oct 26 08:50:00 UTC 2013
>Originator:     Kubilay Kocak
>Release:        FreeBSD 9.2-STABLE amd64
>Organization:
>Environment:
System: FreeBSD 9-STABLE-amd64.elysium 9.2-STABLE FreeBSD 9.2-STABLE #1 r256754: Sat Oct 19 10:16:00 EST
>Description:
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)
>How-To-Repeat:
>Fix:

--- py27-gevent-0.13.8_1.patch begins here ---
diff -ruN /usr/ports/devel/py-gevent/Makefile ./Makefile
--- /usr/ports/devel/py-gevent/Makefile	2013-09-21 03:13:42.000000000 +1000
+++ ./Makefile	2013-10-26 15:47:38.907797974 +1100
@@ -1,8 +1,9 @@
 # Created by: Peter Schuller <peter.schuller@infidyne.com>
-# $FreeBSD: devel/py-gevent/Makefile 327724 2013-09-20 17:13:42Z bapt $
+# $FreeBSD: head/devel/py-gevent/Makefile 327724 2013-09-20 17:13:42Z bapt $
 
 PORTNAME=	gevent
 PORTVERSION=	0.13.8
+PORTREVISION=	1
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -12,12 +13,15 @@
 
 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
+USE_PYTHON=		-2.7
+USE_PYDISTUTILS=	yes
 PYDISTUTILS_BUILDARGS=	-I${LOCALBASE}/include -L${LOCALBASE}/lib
 
-NO_STAGE=	yes
+regression-test:
+	@cd ${WRKSRC}/greentest && PYTHONPATH=.. ${PYTHON_CMD} testrunner.py
+
 .include <bsd.port.mk>
--- py27-gevent-0.13.8_1.patch ends here ---

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->sunpoet 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sat Oct 26 04:50:08 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=183319 
State-Changed-From-To: open->closed 
State-Changed-By: sunpoet 
State-Changed-When: Sat Oct 26 08:48:08 UTC 2013 
State-Changed-Why:  
Committed, with minor changes. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=183319 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/183319: commit references a PR
Date: Sat, 26 Oct 2013 08:46:22 +0000 (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"
 
>Unformatted:
