fix not detecting gdk-pixbuf-0.20.0
authorMartin Schlemmer <azarah@gentoo.org>
Thu, 7 Nov 2002 13:14:29 +0000 (13:14 +0000)
committerMartin Schlemmer <azarah@gentoo.org>
Thu, 7 Nov 2002 13:14:29 +0000 (13:14 +0000)
dev-perl/gtk-perl/ChangeLog
dev-perl/gtk-perl/files/digest-gtk-perl-0.7008-r7 [new file with mode: 0644]
dev-perl/gtk-perl/files/gtk-perl-0.7008-gdkpixbuf-detect-fix.patch [new file with mode: 0644]
dev-perl/gtk-perl/gtk-perl-0.7008-r7.ebuild [new file with mode: 0644]

index 4e8e8e5415ecf1db9d0a8f8376e698b6e2f6f5ba..4eec5991b96e132b8a46fa3c9fae450709e086cf 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for dev-perlgtk-perlChangeLog/
 # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
-# $Header: /var/cvsroot/gentoo-x86/dev-perl/gtk-perl/ChangeLog,v 1.11 2002/11/05 16:14:59 mcummings Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-perl/gtk-perl/ChangeLog,v 1.12 2002/11/07 13:14:29 azarah Exp $
+
+*gtk-perl-0.7008-r7 (7 Nov 2002)
+
+  07 Nov 2002; Martin Schlemmer <azarah@gentoo.org> :
+
+  Fix gdk-pixbuf-0.20.0 not detected, bug #10232.
 
 *gtk-perl-0.7008-r6 (26 May 2002)
 
diff --git a/dev-perl/gtk-perl/files/digest-gtk-perl-0.7008-r7 b/dev-perl/gtk-perl/files/digest-gtk-perl-0.7008-r7
new file mode 100644 (file)
index 0000000..14b778b
--- /dev/null
@@ -0,0 +1 @@
+MD5 b499abb5db7794f200abbf07879dd65d Gtk-Perl-0.7008.tar.gz 455977
diff --git a/dev-perl/gtk-perl/files/gtk-perl-0.7008-gdkpixbuf-detect-fix.patch b/dev-perl/gtk-perl/files/gtk-perl-0.7008-gdkpixbuf-detect-fix.patch
new file mode 100644 (file)
index 0000000..05b53c1
--- /dev/null
@@ -0,0 +1,11 @@
+--- Gtk-Perl-0.7008/Makefile.PL.orig   2002-11-06 00:19:54.000000000 +0200
++++ Gtk-Perl-0.7008/Makefile.PL        2002-11-06 00:21:12.000000000 +0200
+@@ -22,7 +22,7 @@
+               check => sub {ccompile('#include <gtkgl/gtkglarea.h>', "", `gtk-config --cflags`,
+                                       "-lgtkgl  -lGL -lGLU " . `gtk-config --libs`)}},
+       gdkpixbuf => {order => 2, dir => 'GdkPixbuf', depends => [qw(gtk)],
+-              check => sub {cconfig('gdk-pixbuf-config --version', '0\.(8|9|1\d)\.?')}},
++              check => sub {cconfig('gdk-pixbuf-config --version', '0\.(8|9|1|2\d)\.?')}},
+       gtkhtml => {order => 2, dir => 'GtkHTML', depends => [qw(gtk)],
+               check => sub {cconfig('gnome-config --modversion gtkhtml', 'gtkhtml-0\.[89]')}},
+       gtkxmhtml => {order => 2, dir => 'GtkXmHTML', depends => [qw(gtk)],
diff --git a/dev-perl/gtk-perl/gtk-perl-0.7008-r7.ebuild b/dev-perl/gtk-perl/gtk-perl-0.7008-r7.ebuild
new file mode 100644 (file)
index 0000000..0c43d68
--- /dev/null
@@ -0,0 +1,42 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-perl/gtk-perl/gtk-perl-0.7008-r7.ebuild,v 1.1 2002/11/07 13:14:29 azarah Exp $
+
+inherit perl-module
+
+MY_P=Gtk-Perl-${PV}
+S=${WORKDIR}/${MY_P}
+DESCRIPTION="Perl bindings for GTK"
+SRC_URI="http://www.gtkperl.org/${MY_P}.tar.gz"
+HOMEPAGE="http://www.perl.org/"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="x86 ppc sparc sparc64 alpha"
+
+DEPEND="${DEPEND}
+       media-libs/gdk-pixbuf
+       =x11-libs/gtk+-1.2*
+       dev-perl/XML-Writer
+       dev-perl/XML-Parser
+       gnome? ( gnome-base/gnome-libs )"
+
+mydoc="VERSIONS WARNING NOTES"
+
+src_unpack() {
+
+       unpack ${A}
+
+       # Fix gdk-pixbuf-0.20.0 not detected, bug #10232.
+       cd ${S}; patch -p1 < ${FILESDIR}/${P}-gdkpixbuf-detect-fix.patch || die
+}
+
+use gnome || (myconf="${myconf} --without-module gnome --without-module gnomeprint")
+src_compile() {
+
+    cd ${S}
+       cp Makefile.PL Makefile.PL.bak
+       perl -pi -e '/CCMD/ && s|/m;|/mg;|' */Makefile.PL
+       perl-module_src_compile
+
+}