Properly link with libeventextra, fix WANTLIB while here.
Fixes missing symbols issue reported by armani@
This commit is contained in:
parent
5f499734df
commit
d1add410c6
@ -1,10 +1,11 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2012/07/17 19:23:31 landry Exp $
|
||||
# $OpenBSD: Makefile,v 1.2 2012/12/13 20:42:45 landry Exp $
|
||||
|
||||
COMMENT = network library for easy and scalable concurrency
|
||||
|
||||
MODPY_EGG_VERSION = 0.13.7
|
||||
DISTNAME = gevent-${MODPY_EGG_VERSION}
|
||||
PKGNAME = py-${DISTNAME}
|
||||
REVISION = 0
|
||||
|
||||
CATEGORIES = devel
|
||||
HOMEPAGE = http://www.gevent.org/
|
||||
@ -20,10 +21,11 @@ MASTER_SITES = ${MASTER_SITE_PYPI:=g/gevent/}
|
||||
MODULES = lang/python
|
||||
|
||||
MODPY_SETUPTOOLS = Yes
|
||||
MODPY_DISTUTILS_BUILD= build --build-base=${WRKSRC} --libevent ${LOCALBASE}
|
||||
MODPY_DISTUTILS_BUILD= build --build-base=${WRKSRC} \
|
||||
-I${LOCALBASE}/include -L${LOCALBASE}/lib
|
||||
|
||||
LIB_DEPENDS = devel/libeventextra
|
||||
WANTLIB = ${MODPY_WANTLIB} event
|
||||
WANTLIB = ${MODPY_WANTLIB} event eventextra pthread
|
||||
RUN_DEPENDS = devel/py-greenlet
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
12
devel/py-gevent/patches/patch-setup_py
Normal file
12
devel/py-gevent/patches/patch-setup_py
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-setup_py,v 1.1 2012/12/13 20:42:45 landry Exp $
|
||||
--- setup.py.orig Thu Dec 13 21:30:07 2012
|
||||
+++ setup.py Thu Dec 13 21:30:38 2012
|
||||
@@ -277,7 +277,7 @@ else:
|
||||
for filename in libevent_sources:
|
||||
sources.append(filename)
|
||||
else:
|
||||
- libraries = ['event']
|
||||
+ libraries = ['event', 'eventextra']
|
||||
if (libevent_source_path
|
||||
and (exists(join(libevent_source_path, ".libs"))
|
||||
or not exists(join(libevent_source_path, "configure")))):
|
Loading…
x
Reference in New Issue
Block a user