From bc32a7024ff183a573a7a017c85bbdfc612fbda4 Mon Sep 17 00:00:00 2001 From: ajacoutot Date: Wed, 17 Jan 2007 13:41:11 +0000 Subject: [PATCH] Import Gnome2-Canvas-1.002 The Gnome2::Canvas module allows a perl developer to use the GnomeCanvas widget with Gtk2-Perl. Like the Gtk2 module on which it depends, Gnome2::Canvas follows the C API of libgnomecanvas-2.0 as closely as possible while still being perlish. Thus, the C API reference remains the canonical documentation. ok jasper@ --- x11/p5-Gnome2-Canvas/Makefile | 43 +++++++++++++++++ x11/p5-Gnome2-Canvas/distinfo | 4 ++ .../patches/patch-Makefile_PL | 11 +++++ x11/p5-Gnome2-Canvas/pkg/DESCR | 5 ++ x11/p5-Gnome2-Canvas/pkg/PLIST | 47 +++++++++++++++++++ 5 files changed, 110 insertions(+) create mode 100644 x11/p5-Gnome2-Canvas/Makefile create mode 100644 x11/p5-Gnome2-Canvas/distinfo create mode 100644 x11/p5-Gnome2-Canvas/patches/patch-Makefile_PL create mode 100644 x11/p5-Gnome2-Canvas/pkg/DESCR create mode 100644 x11/p5-Gnome2-Canvas/pkg/PLIST diff --git a/x11/p5-Gnome2-Canvas/Makefile b/x11/p5-Gnome2-Canvas/Makefile new file mode 100644 index 00000000000..4729441a71a --- /dev/null +++ b/x11/p5-Gnome2-Canvas/Makefile @@ -0,0 +1,43 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2007/01/17 13:41:11 ajacoutot Exp $ + +SHARED_ONLY= Yes + +COMMENT= "Perl bindings for the 2.x series of the Gnome Canvas widget" + +DISTNAME= Gnome2-Canvas-1.002 +CATEGORIES= x11 + +# LGPL +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +WANTLIB= X11 Xext Xrender fontconfig freetype m z atk-1.0 cairo \ + gdk-x11-2.0 gdk_pixbuf-2.0 glib-2.0 glitz gmodule-2.0 \ + gobject-2.0 gtk-x11-2.0 pango-1.0 pangocairo-1.0 \ + pangoft2-1.0 png + +MODULES= cpan devel/gettext + +USE_X11= Yes +USE_GMAKE= Yes + +BUILD_DEPENDS= ::devel/p5-ExtUtils-Depends \ + ::devel/p5-ExtUtils-PkgConfig \ + ${RUN_DEPENDS} +LIB_DEPENDS= art_lgpl_2.>=5::graphics/libart \ + gnomecanvas-2.>=1::x11/gnome/libgnomecanvas +RUN_DEPENDS= ::devel/p5-Glib2 \ + ::x11/p5-Gtk2 + +# The regression tests require a running instance of X. +# You will also need to set the XAUTHORITY environment variable to point +# to the appropriate .Xauthority file. +REGRESS_IS_INTERACTIVE=Yes +REGRESS_FLAGS+= DISPLAY=${DISPLAY} XAUTHORITY=${XAUTHORITY} + +pre-configure: + perl -pi -e 's,!!CFLAGS!!,${CFLAGS},g' ${WRKSRC}/Makefile.PL + +.include diff --git a/x11/p5-Gnome2-Canvas/distinfo b/x11/p5-Gnome2-Canvas/distinfo new file mode 100644 index 00000000000..5bbcf329fe8 --- /dev/null +++ b/x11/p5-Gnome2-Canvas/distinfo @@ -0,0 +1,4 @@ +MD5 (Gnome2-Canvas-1.002.tar.gz) = 93405a987ba4bbd03c2f91592b88f5cb +RMD160 (Gnome2-Canvas-1.002.tar.gz) = df9245817f6f3b54226471d0820998653ff0d592 +SHA1 (Gnome2-Canvas-1.002.tar.gz) = 8c9373132fabc7bc93eb1bcee743255978f5b72c +SIZE (Gnome2-Canvas-1.002.tar.gz) = 62040 diff --git a/x11/p5-Gnome2-Canvas/patches/patch-Makefile_PL b/x11/p5-Gnome2-Canvas/patches/patch-Makefile_PL new file mode 100644 index 00000000000..127a9724efa --- /dev/null +++ b/x11/p5-Gnome2-Canvas/patches/patch-Makefile_PL @@ -0,0 +1,11 @@ +$OpenBSD: patch-Makefile_PL,v 1.1.1.1 2007/01/17 13:41:11 ajacoutot Exp $ +--- Makefile.PL.orig Mon Jan 15 23:39:36 2007 ++++ Makefile.PL Mon Jan 15 23:40:01 2007 +@@ -85,6 +85,7 @@ WriteMakefile( + ABSTRACT => 'Perl bindings for the 2.x series of the Gnome Canvas widget', + XSPROTOARG => '-noprototypes', + MAN3PODS => \%pod_files, ++ OPTIMIZE => '!!CFLAGS!!', + $gnomecanvas->get_makefile_vars, + ); + diff --git a/x11/p5-Gnome2-Canvas/pkg/DESCR b/x11/p5-Gnome2-Canvas/pkg/DESCR new file mode 100644 index 00000000000..525600ec9bd --- /dev/null +++ b/x11/p5-Gnome2-Canvas/pkg/DESCR @@ -0,0 +1,5 @@ +The Gnome2::Canvas module allows a perl developer to use the GnomeCanvas +widget with Gtk2-Perl. +Like the Gtk2 module on which it depends, Gnome2::Canvas follows the C +API of libgnomecanvas-2.0 as closely as possible while still being +perlish. Thus, the C API reference remains the canonical documentation. diff --git a/x11/p5-Gnome2-Canvas/pkg/PLIST b/x11/p5-Gnome2-Canvas/pkg/PLIST new file mode 100644 index 00000000000..71bc270d302 --- /dev/null +++ b/x11/p5-Gnome2-Canvas/pkg/PLIST @@ -0,0 +1,47 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2007/01/17 13:41:11 ajacoutot Exp $ +${P5ARCH}/Gnome2/ +${P5ARCH}/Gnome2/Canvas/ +${P5ARCH}/Gnome2/Canvas.pm +${P5ARCH}/Gnome2/Canvas.pod +${P5ARCH}/Gnome2/Canvas/Bpath.pod +${P5ARCH}/Gnome2/Canvas/Ellipse.pod +${P5ARCH}/Gnome2/Canvas/Group.pod +${P5ARCH}/Gnome2/Canvas/Install/ +${P5ARCH}/Gnome2/Canvas/Install/Files.pm +${P5ARCH}/Gnome2/Canvas/Install/canvas.typemap +${P5ARCH}/Gnome2/Canvas/Install/gnomecanvasperl-autogen.h +${P5ARCH}/Gnome2/Canvas/Install/gnomecanvasperl-version.h +${P5ARCH}/Gnome2/Canvas/Install/gnomecanvasperl.h +${P5ARCH}/Gnome2/Canvas/Install/gnomecanvasperl.typemap +${P5ARCH}/Gnome2/Canvas/Item.pod +${P5ARCH}/Gnome2/Canvas/Line.pod +${P5ARCH}/Gnome2/Canvas/PathDef.pod +${P5ARCH}/Gnome2/Canvas/Pixbuf.pod +${P5ARCH}/Gnome2/Canvas/RE.pod +${P5ARCH}/Gnome2/Canvas/Rect.pod +${P5ARCH}/Gnome2/Canvas/RichText.pod +${P5ARCH}/Gnome2/Canvas/Shape.pod +${P5ARCH}/Gnome2/Canvas/Text.pod +${P5ARCH}/Gnome2/Canvas/Widget.pod +${P5ARCH}/Gnome2/Canvas/index.pod +${P5ARCH}/Gnome2/Canvas/version.pod +${P5ARCH}/auto/Gnome2/ +${P5ARCH}/auto/Gnome2/Canvas/ +${P5ARCH}/auto/Gnome2/Canvas/Canvas.bs +${P5ARCH}/auto/Gnome2/Canvas/Canvas.so +@man man/man3p/Gnome2::Canvas.3p +@man man/man3p/Gnome2::Canvas::Bpath.3p +@man man/man3p/Gnome2::Canvas::Ellipse.3p +@man man/man3p/Gnome2::Canvas::Group.3p +@man man/man3p/Gnome2::Canvas::Item.3p +@man man/man3p/Gnome2::Canvas::Line.3p +@man man/man3p/Gnome2::Canvas::PathDef.3p +@man man/man3p/Gnome2::Canvas::Pixbuf.3p +@man man/man3p/Gnome2::Canvas::RE.3p +@man man/man3p/Gnome2::Canvas::Rect.3p +@man man/man3p/Gnome2::Canvas::RichText.3p +@man man/man3p/Gnome2::Canvas::Shape.3p +@man man/man3p/Gnome2::Canvas::Text.3p +@man man/man3p/Gnome2::Canvas::Widget.3p +@man man/man3p/Gnome2::Canvas::index.3p +@man man/man3p/Gnome2::Canvas::version.3p