View | Details | Raw Unified | Return to bug 216531
Collapse All | Expand All

(-)b/devel/p5-Event-Lib/Makefile (-4 / +2 lines)
Lines 3-20 Link Here
3
3
4
PORTNAME=	Event-Lib
4
PORTNAME=	Event-Lib
5
PORTVERSION=	1.03
5
PORTVERSION=	1.03
6
PORTREVISION=	5
6
PORTREVISION=	6
7
CATEGORIES=	devel perl5
7
CATEGORIES=	devel perl5
8
MASTER_SITES=	CPAN
8
MASTER_SITES=	CPAN
9
PKGNAMEPREFIX=	p5-
9
PKGNAMEPREFIX=	p5-
10
10
11
MAINTAINER=	fk@fabiankeil.de
11
MAINTAINER=	ports@freebsd.org
12
COMMENT=	Makes libevent(3) accessible with Perl
12
COMMENT=	Makes libevent(3) accessible with Perl
13
13
14
LIB_DEPENDS=	libevent.so:devel/libevent2
14
LIB_DEPENDS=	libevent.so:devel/libevent2
15
15
16
BROKEN=		fails to build with libevent 2.1
17
18
USES=		perl5
16
USES=		perl5
19
USE_PERL5=	configure
17
USE_PERL5=	configure
20
18
(-)b/devel/p5-Event-Lib/files/patch-Lib.xs (+11 lines)
Added Link Here
1
--- Lib.xs.orig	2007-07-29 11:02:37 UTC
2
+++ Lib.xs
3
@@ -125,6 +125,8 @@ void free_args (struct event_args *args)
4
     Safefree(args);
5
 }
6
 
7
+#define ev_arg ev_evcallback.evcb_arg
8
+
9
 void refresh_event (struct event_args *args, char *class) {
10
     SV *sv = newSV(0);
11
     sv_setref_pv(sv, class, (void*)args);
(-)b/devel/p5-Event-Lib/files/patch-Makefile.PL (-9 / +6 lines)
Lines 1-6 Link Here
1
--- Makefile.PL.orig	Tue Mar  7 08:37:40 2006
1
--- Makefile.PL.orig	2007-07-29 11:14:02 UTC
2
+++ Makefile.PL	Mon Jun  5 23:31:13 2006
2
+++ Makefile.PL
3
@@ -2,7 +2,11 @@
3
@@ -2,7 +2,11 @@ use 5.006;
4
 use ExtUtils::MakeMaker;
4
 use ExtUtils::MakeMaker;
5
 use Config;
5
 use Config;
6
 
6
 
Lines 13-21 Link Here
13
 
13
 
14
 # purge @ARGV of CCFLAGS
14
 # purge @ARGV of CCFLAGS
15
 
15
 
16
--- Makefile.PL
16
@@ -13,8 +17,9 @@ sub have_libevent {
17
+++ Makefile.PL
18
@@ -17,8 +17,9 @@ sub have_libevent {
19
     my $LIBS = $args{ LIBS } || "-levent";
17
     my $LIBS = $args{ LIBS } || "-levent";
20
     my $INC = $args{ INC } || "-I/usr/include";
18
     my $INC = $args{ INC } || "-I/usr/include";
21
     if ($^O eq "freebsd") {
19
     if ($^O eq "freebsd") {
Lines 27-33 Link Here
27
     }
25
     }
28
     elsif ($^O eq "darwin") {
26
     elsif ($^O eq "darwin") {
29
       $LIBS = "$LIBS -L/sw/lib -L/opt/local/lib";
27
       $LIBS = "$LIBS -L/sw/lib -L/opt/local/lib";
30
@@ -59,8 +60,9 @@ sub get_defines {
28
@@ -55,8 +60,9 @@ sub get_defines {
31
     my $LIBS = $args{ LIBS } || "-levent";
29
     my $LIBS = $args{ LIBS } || "-levent";
32
     my $INC = $args{ INC } || "-I/usr/include";
30
     my $INC = $args{ INC } || "-I/usr/include";
33
     if ($^O eq "freebsd") {
31
     if ($^O eq "freebsd") {
Lines 39-45 Link Here
39
     }
37
     }
40
     elsif ($^O eq "darwin") {
38
     elsif ($^O eq "darwin") {
41
       $LIBS = "-L/sw/lib -L/opt/local/lib $LIBS";
39
       $LIBS = "-L/sw/lib -L/opt/local/lib $LIBS";
42
@@ -100,6 +102,12 @@ EOD
40
@@ -96,6 +102,12 @@ EOD
43
 
41
 
44
 $args{LIBS} = '-levent -lm' if ! exists $args{LIBS};
42
 $args{LIBS} = '-levent -lm' if ! exists $args{LIBS};
45
 
43
 
46
- 

Return to bug 216531