Split off py-libevent-rpcgen from devel/libevent. Obviates libevent's python dependency, enabling cross-compilation of libevent's dependents without having to cross-compile python itself. ok agcdiff -r1.1739 -r1.1740 pkgsrc/devel/Makefile
(riastradh)
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile,v 1.1739 2013/05/09 13:53:47 joerg Exp $ | 1 | # $NetBSD: Makefile,v 1.1740 2013/05/10 01:22:27 riastradh Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | COMMENT= Development utilities | 4 | COMMENT= Development utilities | |
5 | 5 | |||
6 | SUBDIR+= ETL | 6 | SUBDIR+= ETL | |
7 | SUBDIR+= ExmanIDE | 7 | SUBDIR+= ExmanIDE | |
8 | SUBDIR+= GConf | 8 | SUBDIR+= GConf | |
9 | SUBDIR+= GConf-ui | 9 | SUBDIR+= GConf-ui | |
10 | SUBDIR+= Gorm | 10 | SUBDIR+= Gorm | |
11 | SUBDIR+= ObjectiveLib | 11 | SUBDIR+= ObjectiveLib | |
12 | SUBDIR+= ProjectCenter | 12 | SUBDIR+= ProjectCenter | |
13 | SUBDIR+= RBTools | 13 | SUBDIR+= RBTools | |
14 | SUBDIR+= RTFM | 14 | SUBDIR+= RTFM | |
@@ -1359,26 +1359,27 @@ SUBDIR+= py-funcparserlib | @@ -1359,26 +1359,27 @@ SUBDIR+= py-funcparserlib | |||
1359 | SUBDIR+= py-game | 1359 | SUBDIR+= py-game | |
1360 | SUBDIR+= py-generate | 1360 | SUBDIR+= py-generate | |
1361 | SUBDIR+= py-gobject | 1361 | SUBDIR+= py-gobject | |
1362 | SUBDIR+= py-gobject-shared | 1362 | SUBDIR+= py-gobject-shared | |
1363 | SUBDIR+= py-gobject3 | 1363 | SUBDIR+= py-gobject3 | |
1364 | SUBDIR+= py-hgtools | 1364 | SUBDIR+= py-hgtools | |
1365 | SUBDIR+= py-idle | 1365 | SUBDIR+= py-idle | |
1366 | SUBDIR+= py-ipython | 1366 | SUBDIR+= py-ipython | |
1367 | SUBDIR+= py-ipython012 | 1367 | SUBDIR+= py-ipython012 | |
1368 | SUBDIR+= py-ipython013 | 1368 | SUBDIR+= py-ipython013 | |
1369 | SUBDIR+= py-jersey | 1369 | SUBDIR+= py-jersey | |
1370 | SUBDIR+= py-kjbuckets | 1370 | SUBDIR+= py-kjbuckets | |
1371 | SUBDIR+= py-kqueue | 1371 | SUBDIR+= py-kqueue | |
1372 | SUBDIR+= py-libevent-rpcgen | |||
1372 | SUBDIR+= py-lockfile | 1373 | SUBDIR+= py-lockfile | |
1373 | SUBDIR+= py-logilab-astng | 1374 | SUBDIR+= py-logilab-astng | |
1374 | SUBDIR+= py-logilab-common | 1375 | SUBDIR+= py-logilab-common | |
1375 | SUBDIR+= py-mako | 1376 | SUBDIR+= py-mako | |
1376 | SUBDIR+= py-mock | 1377 | SUBDIR+= py-mock | |
1377 | SUBDIR+= py-msgpack | 1378 | SUBDIR+= py-msgpack | |
1378 | SUBDIR+= py-multiprocessing | 1379 | SUBDIR+= py-multiprocessing | |
1379 | SUBDIR+= py-nose | 1380 | SUBDIR+= py-nose | |
1380 | SUBDIR+= py-ordereddict | 1381 | SUBDIR+= py-ordereddict | |
1381 | SUBDIR+= py-pep8 | 1382 | SUBDIR+= py-pep8 | |
1382 | SUBDIR+= py-pexpect | 1383 | SUBDIR+= py-pexpect | |
1383 | SUBDIR+= py-pip | 1384 | SUBDIR+= py-pip | |
1384 | SUBDIR+= py-polib | 1385 | SUBDIR+= py-polib |
@@ -1,39 +1,37 @@ | @@ -1,39 +1,37 @@ | |||
1 | # $NetBSD: Makefile,v 1.43 2013/02/06 23:21:03 jperkin Exp $ | 1 | # $NetBSD: Makefile,v 1.44 2013/05/10 01:22:27 riastradh Exp $ | |
2 | 2 | |||
3 | DISTNAME= libevent-2.0.21-stable | 3 | .include "../../devel/libevent/Makefile.common" | |
4 | PKGNAME= ${DISTNAME:S/-stable//} | 4 | ||
5 | PKGREVISION= 1 | 5 | PKGNAME= libevent-${LIBEVENT_VERSION} | |
6 | PKGREVISION= 2 | |||
6 | CATEGORIES= devel | 7 | CATEGORIES= devel | |
7 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=levent/} | |||
8 | 8 | |||
9 | MAINTAINER= pkgsrc-users@NetBSD.org | 9 | MAINTAINER= pkgsrc-users@NetBSD.org | |
10 | HOMEPAGE= http://libevent.org/ | 10 | HOMEPAGE= http://libevent.org/ | |
11 | COMMENT= Asynchronous event notification library | 11 | COMMENT= Asynchronous event notification library | |
12 | LICENSE= modified-bsd | 12 | LICENSE= modified-bsd | |
13 | 13 | |||
14 | CONFLICTS+= libev<3.9nb1 | 14 | CONFLICTS+= libev<3.9nb1 | |
15 | 15 | |||
16 | USE_LIBTOOL= yes | 16 | USE_LIBTOOL= yes | |
17 | GNU_CONFIGURE= yes | 17 | GNU_CONFIGURE= yes | |
18 | PKGCONFIG_OVERRIDE+= libevent_openssl.pc.in | 18 | PKGCONFIG_OVERRIDE+= libevent_openssl.pc.in | |
19 | PKGCONFIG_OVERRIDE+= libevent_pthreads.pc.in | 19 | PKGCONFIG_OVERRIDE+= libevent_pthreads.pc.in | |
20 | PKGCONFIG_OVERRIDE+= libevent.pc.in | 20 | PKGCONFIG_OVERRIDE+= libevent.pc.in | |
21 | REPLACE_PYTHON= event_rpcgen.py | |||
22 | TEST_TARGET= verify | 21 | TEST_TARGET= verify | |
23 | 22 | |||
24 | LIBS.SunOS+= -lnsl -lresolv | 23 | LIBS.SunOS+= -lnsl -lresolv | |
25 | CPPFLAGS.SunOS+= -D__EXTENSIONS__ | 24 | CPPFLAGS.SunOS+= -D__EXTENSIONS__ | |
26 | 25 | |||
27 | # XXX helps build, but needs more testing | 26 | # XXX helps build, but needs more testing | |
28 | #CFLAGS.Interix+= -Dsockaddr_storage=sockaddr_in -DNI_MAXSERV=32 | 27 | #CFLAGS.Interix+= -Dsockaddr_storage=sockaddr_in -DNI_MAXSERV=32 | |
29 | 28 | |||
30 | .include "../../mk/bsd.prefs.mk" | 29 | .include "../../mk/bsd.prefs.mk" | |
31 | 30 | |||
32 | .if !empty(MACHINE_PLATFORM:MHPUX-11.11-*) | 31 | .if !empty(MACHINE_PLATFORM:MHPUX-11.11-*) | |
33 | CONFIGURE_ENV+= ac_cv_func_strtoll=yes | 32 | CONFIGURE_ENV+= ac_cv_func_strtoll=yes | |
34 | CPPFLAGS+= -Dstrtoll=__strtoll | 33 | CPPFLAGS+= -Dstrtoll=__strtoll | |
35 | .endif | 34 | .endif | |
36 | 35 | |||
37 | .include "../../lang/python/application.mk" | |||
38 | .include "../../security/openssl/buildlink3.mk" | 36 | .include "../../security/openssl/buildlink3.mk" | |
39 | .include "../../mk/bsd.pkg.mk" | 37 | .include "../../mk/bsd.pkg.mk" |
# $NetBSD: Makefile.common,v 1.1 2013/05/10 01:22:27 riastradh Exp $
# used by devel/libevent/Makefile
# used by devel/py-libevent-rpcgen/Makefile
LIBEVENT_VERSION= 2.0.21
DISTNAME= libevent-${LIBEVENT_VERSION}-stable
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=levent/}
@@ -1,15 +1,14 @@ | @@ -1,15 +1,14 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.6 2011/02/11 21:13:47 tnn Exp $ | 1 | @comment $NetBSD: PLIST,v 1.7 2013/05/10 01:22:27 riastradh Exp $ | |
2 | bin/event_rpcgen.py | |||
3 | include/evdns.h | 2 | include/evdns.h | |
4 | include/event.h | 3 | include/event.h | |
5 | include/event2/buffer.h | 4 | include/event2/buffer.h | |
6 | include/event2/buffer_compat.h | 5 | include/event2/buffer_compat.h | |
7 | include/event2/bufferevent.h | 6 | include/event2/bufferevent.h | |
8 | include/event2/bufferevent_compat.h | 7 | include/event2/bufferevent_compat.h | |
9 | include/event2/bufferevent_ssl.h | 8 | include/event2/bufferevent_ssl.h | |
10 | include/event2/bufferevent_struct.h | 9 | include/event2/bufferevent_struct.h | |
11 | include/event2/dns.h | 10 | include/event2/dns.h | |
12 | include/event2/dns_compat.h | 11 | include/event2/dns_compat.h | |
13 | include/event2/dns_struct.h | 12 | include/event2/dns_struct.h | |
14 | include/event2/event-config.h | 13 | include/event2/event-config.h | |
15 | include/event2/event.h | 14 | include/event2/event.h |
@@ -1,5 +1,7 @@ | @@ -1,5 +1,7 @@ | |||
1 | $NetBSD: distinfo,v 1.28 2012/12/16 11:26:07 wiz Exp $ | 1 | $NetBSD: distinfo,v 1.29 2013/05/10 01:22:27 riastradh Exp $ | |
2 | 2 | |||
3 | SHA1 (libevent-2.0.21-stable.tar.gz) = 3e6674772eb77de24908c6267c698146420ab699 | 3 | SHA1 (libevent-2.0.21-stable.tar.gz) = 3e6674772eb77de24908c6267c698146420ab699 | |
4 | RMD160 (libevent-2.0.21-stable.tar.gz) = 7345c8fa2d70ee3e5555b5911d9d8cb97614d644 | 4 | RMD160 (libevent-2.0.21-stable.tar.gz) = 7345c8fa2d70ee3e5555b5911d9d8cb97614d644 | |
5 | Size (libevent-2.0.21-stable.tar.gz) = 850772 bytes | 5 | Size (libevent-2.0.21-stable.tar.gz) = 850772 bytes | |
6 | SHA1 (patch-Makefile.am) = 2518403715eabaeef5e7edfccf3732607cba6309 | |||
7 | SHA1 (patch-Makefile.in) = 23b6f6ce916d5c04af9aa75ba40f007b4358aae0 |
$NetBSD: patch-Makefile.am,v 1.1 2013/05/10 01:22:27 riastradh Exp $
Don't install event_rpcgen.py.
--- Makefile.am.orig 2012-11-18 06:38:50.000000000 +0000
+++ Makefile.am
@@ -86,7 +86,7 @@ VERSION_INFO = 6:9:1
# series won't be binary-compatible.
if INSTALL_LIBEVENT
-dist_bin_SCRIPTS = event_rpcgen.py
+dist_bin_SCRIPTS =
endif
pkgconfigdir=$(libdir)/pkgconfig
$NetBSD: patch-Makefile.in,v 1.1 2013/05/10 01:22:27 riastradh Exp $
Don't install event_rpcgen.py.
--- Makefile.in.orig 2012-11-19 15:13:17.000000000 +0000
+++ Makefile.in
@@ -210,7 +210,7 @@ libevent_pthreads_la_LINK = $(LIBTOOL) -
@INSTALL_LIBEVENT_FALSE@@PTHREADS_TRUE@am_libevent_pthreads_la_rpath =
@INSTALL_LIBEVENT_TRUE@@PTHREADS_TRUE@am_libevent_pthreads_la_rpath = \
@INSTALL_LIBEVENT_TRUE@@PTHREADS_TRUE@ -rpath $(libdir)
-am__dist_bin_SCRIPTS_DIST = event_rpcgen.py
+am__dist_bin_SCRIPTS_DIST =
SCRIPTS = $(dist_bin_SCRIPTS)
DEFAULT_INCLUDES = -I.@am__isrc@
depcomp = $(SHELL) $(top_srcdir)/depcomp
@@ -508,7 +508,7 @@ VERSION_INFO = 6:9:1
# nice and rare. For the next couple of years, though, 'struct event'
# is user-visible, and so we can pretty much guarantee that release
# series won't be binary-compatible.
-@INSTALL_LIBEVENT_TRUE@dist_bin_SCRIPTS = event_rpcgen.py
+@INSTALL_LIBEVENT_TRUE@dist_bin_SCRIPTS =
pkgconfigdir = $(libdir)/pkgconfig
LIBEVENT_PKGCONFIG = libevent.pc $(am__append_2) $(am__append_4)
Python script to generate C code for RPC marshalling with libevent.
# $NetBSD: Makefile,v 1.1 2013/05/10 01:22:27 riastradh Exp $
.include "../../libevent/devel/Makefile.common"
DISTNAME= py-libevent-rpcgen-${LIBEVENT_VERSION}
CATEGORIES= devel
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://libevent.org/
COMMENT= Python libevent rpcgen script
LICENSE= modified-bsd
REPLACE_PYTHON= event_rpcgen.py
do-configure:
do-build:
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/event_rpcgen.py ${DESTDIR}${PREFIX}/bin
.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"
@comment $NetBSD: PLIST,v 1.1 2013/05/10 01:22:27 riastradh Exp $
bin/event_rpcgen.py
$NetBSD: distinfo,v 1.1 2013/05/10 01:22:28 riastradh Exp $
SHA1 (libevent-2.0.21-stable.tar.gz) = 3e6674772eb77de24908c6267c698146420ab699
RMD160 (libevent-2.0.21-stable.tar.gz) = 7345c8fa2d70ee3e5555b5911d9d8cb97614d644
Size (libevent-2.0.21-stable.tar.gz) = 850772 bytes