@@ -, +, @@ - Add patch to compile with libevent 2.1 (only compile-tested!) - Run existing patch through makepatch - Drop maintainership as I no longer use this port --- devel/p5-Event-Lib/Makefile | 6 ++---- devel/p5-Event-Lib/files/patch-Lib.xs | 11 +++++++++++ devel/p5-Event-Lib/files/patch-Makefile.PL | 14 ++++++-------- 3 files changed, 19 insertions(+), 12 deletions(-) create mode 100644 devel/p5-Event-Lib/files/patch-Lib.xs --- b/devel/p5-Event-Lib/Makefile +++ b/devel/p5-Event-Lib/Makefile @@ -3,18 +3,16 @@ PORTNAME= Event-Lib PORTVERSION= 1.03 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= devel perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- -MAINTAINER= fk@fabiankeil.de +MAINTAINER= ports@freebsd.org COMMENT= Makes libevent(3) accessible with Perl LIB_DEPENDS= libevent.so:devel/libevent2 -BROKEN= fails to build with libevent 2.1 - USES= perl5 USE_PERL5= configure --- /dev/null +++ b/devel/p5-Event-Lib/files/patch-Lib.xs @@ -0,0 +1,11 @@ +--- Lib.xs.orig 2007-07-29 11:02:37 UTC ++++ Lib.xs +@@ -125,6 +125,8 @@ void free_args (struct event_args *args) + Safefree(args); + } + ++#define ev_arg ev_evcallback.evcb_arg ++ + void refresh_event (struct event_args *args, char *class) { + SV *sv = newSV(0); + sv_setref_pv(sv, class, (void*)args); --- b/devel/p5-Event-Lib/files/patch-Makefile.PL +++ b/devel/p5-Event-Lib/files/patch-Makefile.PL @@ -1,6 +1,6 @@ ---- Makefile.PL.orig Tue Mar 7 08:37:40 2006 -+++ Makefile.PL Mon Jun 5 23:31:13 2006 -@@ -2,7 +2,11 @@ +--- Makefile.PL.orig 2007-07-29 11:14:02 UTC ++++ Makefile.PL +@@ -2,7 +2,11 @@ use 5.006; use ExtUtils::MakeMaker; use Config; @@ -13,9 +13,7 @@ # purge @ARGV of CCFLAGS ---- Makefile.PL -+++ Makefile.PL -@@ -17,8 +17,9 @@ sub have_libevent { +@@ -13,8 +17,9 @@ sub have_libevent { my $LIBS = $args{ LIBS } || "-levent"; my $INC = $args{ INC } || "-I/usr/include"; if ($^O eq "freebsd") { @@ -27,7 +25,7 @@ } elsif ($^O eq "darwin") { $LIBS = "$LIBS -L/sw/lib -L/opt/local/lib"; -@@ -59,8 +60,9 @@ sub get_defines { +@@ -55,8 +60,9 @@ sub get_defines { my $LIBS = $args{ LIBS } || "-levent"; my $INC = $args{ INC } || "-I/usr/include"; if ($^O eq "freebsd") { @@ -39,7 +37,7 @@ } elsif ($^O eq "darwin") { $LIBS = "-L/sw/lib -L/opt/local/lib $LIBS"; -@@ -100,6 +102,12 @@ EOD +@@ -96,6 +102,12 @@ EOD $args{LIBS} = '-levent -lm' if ! exists $args{LIBS}; --