svn commit: r433807 - in head/devel/p5-Event-Lib: . files
Jan Beich
jbeich at FreeBSD.org
Fri Feb 10 15:42:10 UTC 2017
Author: jbeich
Date: Fri Feb 10 15:42:09 2017
New Revision: 433807
URL: https://svnweb.freebsd.org/changeset/ports/433807
Log:
devel/p5-Event-Lib: unbreak after r433286
- Add a patch to compile with libevent 2.1 (only compile-tested!) after
https://github.com/libevent/libevent/commit/cba59e53253b
- Reformat an existing patch through "make makepatch"
- Drop maintainership as the current maintainer no longer uses the
port and wishes to resign
PR: 216531
Submitted by: Fabian Keil <fk at fabiankeil.de> (maintainer)
Added:
head/devel/p5-Event-Lib/files/patch-Lib.xs (contents, props changed)
Modified:
head/devel/p5-Event-Lib/Makefile (contents, props changed)
head/devel/p5-Event-Lib/files/patch-Makefile.PL (contents, props changed)
Modified: head/devel/p5-Event-Lib/Makefile
==============================================================================
--- head/devel/p5-Event-Lib/Makefile Fri Feb 10 15:37:08 2017 (r433806)
+++ head/devel/p5-Event-Lib/Makefile Fri Feb 10 15:42:09 2017 (r433807)
@@ -8,13 +8,11 @@ CATEGORIES= devel perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
-MAINTAINER= fk at fabiankeil.de
+MAINTAINER= ports at 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
Added: head/devel/p5-Event-Lib/files/patch-Lib.xs
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/p5-Event-Lib/files/patch-Lib.xs Fri Feb 10 15:42:09 2017 (r433807)
@@ -0,0 +1,14 @@
+--- Lib.xs.orig 2007-07-29 11:02:37 UTC
++++ Lib.xs
+@@ -125,6 +125,11 @@ void free_args (struct event_args *args)
+ Safefree(args);
+ }
+
++#if LIBEVENT_VERSION_NUMBER > 0x02010101
++// From event-internal.h
++#define ev_arg ev_evcallback.evcb_arg
++#endif
++
+ void refresh_event (struct event_args *args, char *class) {
+ SV *sv = newSV(0);
+ sv_setref_pv(sv, class, (void*)args);
Modified: head/devel/p5-Event-Lib/files/patch-Makefile.PL
==============================================================================
--- head/devel/p5-Event-Lib/files/patch-Makefile.PL Fri Feb 10 15:37:08 2017 (r433806)
+++ head/devel/p5-Event-Lib/files/patch-Makefile.PL Fri Feb 10 15:42:09 2017 (r433807)
@@ -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};
More information about the svn-ports-all
mailing list