aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/p5-Gtk
diff options
context:
space:
mode:
authoraz <az@FreeBSD.org>2013-10-05 16:10:30 +0800
committeraz <az@FreeBSD.org>2013-10-05 16:10:30 +0800
commitfda17d16b9978bb3630bc7ff36a763f5df5ac206 (patch)
tree998e8d6eec163d9c079190cfa0fed8ea16b5a3af /x11-toolkits/p5-Gtk
parentfa4d38921a7d43423ae5984b2f012e15dc6cc679 (diff)
downloadfreebsd-ports-graphics-fda17d16b9978bb3630bc7ff36a763f5df5ac206.tar.gz
freebsd-ports-graphics-fda17d16b9978bb3630bc7ff36a763f5df5ac206.tar.zst
freebsd-ports-graphics-fda17d16b9978bb3630bc7ff36a763f5df5ac206.zip
- Add stage support
- Try to fix build with perl 5.16 ExtUtils::ParseXS from 5.16 now more strict about code.
Diffstat (limited to 'x11-toolkits/p5-Gtk')
-rw-r--r--x11-toolkits/p5-Gtk/Makefile9
-rw-r--r--x11-toolkits/p5-Gtk/files/patch-Gtk__gtk-0.99.typemap31
-rw-r--r--x11-toolkits/p5-Gtk/pkg-plist5
3 files changed, 37 insertions, 8 deletions
diff --git a/x11-toolkits/p5-Gtk/Makefile b/x11-toolkits/p5-Gtk/Makefile
index bc3964580d4..81db0e30360 100644
--- a/x11-toolkits/p5-Gtk/Makefile
+++ b/x11-toolkits/p5-Gtk/Makefile
@@ -8,7 +8,7 @@ MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
DISTNAME= ${PORTNAME}-Perl-${PORTVERSION}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= perl@FreeBSD.org
COMMENT= The base module of Gtk-Perl
BUILD_DEPENDS= p5-XML-Writer>=0:${PORTSDIR}/textproc/p5-XML-Writer \
@@ -20,11 +20,4 @@ USE_PERL5= configure
CONFIGURE_ARGS= --without-guessing --lazy-load
MAKE_JOBS_UNSAFE= yes
-MAN3= Gtk.3pm \
- Gtk::CListModel.3pm \
- Gtk::cookbook.3pm \
- Gtk::objects.3pm \
- Gtk::reference.3pm
-
-NO_STAGE= yes
.include <bsd.port.mk>
diff --git a/x11-toolkits/p5-Gtk/files/patch-Gtk__gtk-0.99.typemap b/x11-toolkits/p5-Gtk/files/patch-Gtk__gtk-0.99.typemap
new file mode 100644
index 00000000000..aa5eb921f5a
--- /dev/null
+++ b/x11-toolkits/p5-Gtk/files/patch-Gtk__gtk-0.99.typemap
@@ -0,0 +1,31 @@
+--- ./Gtk/gtk-0.99.typemap.orig 2013-10-05 11:49:16.000000000 +0400
++++ ./Gtk/gtk-0.99.typemap 2013-10-05 11:50:55.000000000 +0400
+@@ -62,8 +62,8 @@
+ } while(0)
+
+ T_GtkPTROBJOrNULL
+- $var = SvTRUE($arg) ? Cast$type(SvGtkObjectRef($arg, \"" . ($foo=$ntype,$foo=~s/_OrNULL//,$foo). "\")) : 0
+-
++ $var = SvTRUE($arg) ? Cast$type(SvGtkObjectRef($arg, \"" . (our $foo=$ntype,$foo=~s/_OrNULL//,$foo). "\")) : 0
++
+ T_GtkPTROBJUp
+ $var = Cast$type(SvGtkObjectRef($arg, \"${ntype}\"))
+
+@@ -95,14 +95,14 @@
+ do {
+ if (!$arg || !SvOK($arg))
+ croak(\"$var is not of type ${ntype}\");
+- $var = Sv" . ($foo=$ntype, $foo=~s/://g, $foo=~s/^GtkGdk/Gdk/, $foo) . "($arg);
++ $var = Sv" . (our $foo=$ntype, $foo=~s/://g, $foo=~s/^GtkGdk/Gdk/, $foo) . "($arg);
+ } while (0)
+
+ T_SimpleValOrNULL
+- $var = ($arg && SvOK($arg)) ? Sv" . ($foo=$ntype, $foo=~s/://g, $foo=~s/^GtkGdk/Gdk/, $foo=~s/_OrNULL$//, $foo) . "($arg) : 0
++ $var = ($arg && SvOK($arg)) ? Sv" . (our $foo=$ntype, $foo=~s/://g, $foo=~s/^GtkGdk/Gdk/, $foo=~s/_OrNULL$//, $foo) . "($arg) : 0
+
+ T_SimplePtr
+- $var = Sv" . ($foo=$ntype, $foo=~s/://g, $foo=~s/^GtkGdk/Gdk/, $foo) . "($arg,0)
++ $var = Sv" . (our $foo=$ntype, $foo=~s/://g, $foo=~s/^GtkGdk/Gdk/, $foo) . "($arg,0)
+
+ OUTPUT
+
diff --git a/x11-toolkits/p5-Gtk/pkg-plist b/x11-toolkits/p5-Gtk/pkg-plist
index e8d49b817d5..0d968499e40 100644
--- a/x11-toolkits/p5-Gtk/pkg-plist
+++ b/x11-toolkits/p5-Gtk/pkg-plist
@@ -39,6 +39,11 @@
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Gtk/Gtk.so
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Gtk/autosplit.ix
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Gtk/base/.packlist
+%%PERL5_MAN3%%/Gtk.3pm.gz
+%%PERL5_MAN3%%/Gtk::CListModel.3pm.gz
+%%PERL5_MAN3%%/Gtk::cookbook.3pm.gz
+%%PERL5_MAN3%%/Gtk::objects.3pm.gz
+%%PERL5_MAN3%%/Gtk::reference.3pm.gz
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/Gtk/LWP
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/Gtk/Install
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/Gtk