summaryrefslogtreecommitdiff
path: root/community/perl-gtk2-mozembed
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/perl-gtk2-mozembed
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/perl-gtk2-mozembed')
-rw-r--r--community/perl-gtk2-mozembed/PKGBUILD32
-rw-r--r--community/perl-gtk2-mozembed/missing-pixbuf.patch23
2 files changed, 55 insertions, 0 deletions
diff --git a/community/perl-gtk2-mozembed/PKGBUILD b/community/perl-gtk2-mozembed/PKGBUILD
new file mode 100644
index 000000000..fdc78ab73
--- /dev/null
+++ b/community/perl-gtk2-mozembed/PKGBUILD
@@ -0,0 +1,32 @@
+# $Id: PKGBUILD 42141 2011-03-13 22:19:27Z spupykin $
+# This PKGBUILD was generated by cpan4pacman via CPANPLUS::Dist::Pacman
+# Maintainer: Corrado Primier <bardo@aur.archlinux.org>
+
+pkgname=perl-gtk2-mozembed
+pkgver=0.08
+pkgrel=4
+pkgdesc="Interface to the Mozilla embedding widget"
+arch=('i686' 'x86_64')
+url="http://search.cpan.org/dist/Gtk2-MozEmbed"
+license=('GPL' 'PerlArtistic')
+depends=('perl-extutils-pkgconfig>=1.03' 'gtk2-perl>=1.081' 'perl-extutils-depends>=0.20' 'xulrunner>1.9')
+options=('!emptydirs')
+source=("http://www.cpan.org/authors/id/T/TS/TSCH/Gtk2-MozEmbed-${pkgver}.tar.gz"
+ 'missing-pixbuf.patch')
+md5sums=('ddafafa0e2684050a5d8b9f2c15f6dca'
+ '82313ca5da7dafdae0a8890f031d07f9')
+
+build() {
+ # fix https://rt.cpan.org/Public/Bug/Display.html?id=61063
+ patch -Np0 -i ${srcdir}/missing-pixbuf.patch
+ cd Gtk2-MozEmbed-${pkgver}
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+package() {
+ cd Gtk2-MozEmbed-${pkgver}
+ make install DESTDIR=${pkgdir}
+ find ${pkgdir} -name '.packlist' -delete
+ find ${pkgdir} -name '*.pod' -delete
+}
diff --git a/community/perl-gtk2-mozembed/missing-pixbuf.patch b/community/perl-gtk2-mozembed/missing-pixbuf.patch
new file mode 100644
index 000000000..f78a683e3
--- /dev/null
+++ b/community/perl-gtk2-mozembed/missing-pixbuf.patch
@@ -0,0 +1,23 @@
+diff -up Gtk2-MozEmbed-0.08/Makefile.PL.pixbuf Gtk2-MozEmbed-0.08/Makefile.PL
+--- Gtk2-MozEmbed-0.08/Makefile.PL.pixbuf 2010-08-11 13:34:16.000000000 +0200
++++ Gtk2-MozEmbed-0.08/Makefile.PL 2010-08-11 13:35:36.000000000 +0200
+@@ -54,6 +54,8 @@ my %pkgcfg = ExtUtils::PkgConfig->find(
+ "firefox-gtkmozembed >= $build_reqs{'Firefox'}",
+ "mozilla-firefox-gtkmozembed >= $build_reqs{'Firefox'}");
+
++my %pkgcfg_pixbuf = ExtUtils::PkgConfig->find("gdk-pixbuf-2.0");
++
+ mkdir 'build', 0777;
+
+ our @xs_files = <xs/*.xs>;
+@@ -73,8 +75,8 @@ ExtUtils::PkgConfig->write_version_macro
+ $pkg => "GTK_MOZ_EMBED",
+ );
+
+-my $inc = $pkgcfg{cflags};
+-my $libs = $pkgcfg{libs};
++my $inc = $pkgcfg{cflags} ." ". $pkgcfg_pixbuf{cflags};
++my $libs = $pkgcfg{libs} . " ". $pkgcfg_pixbuf{libs};
+
+ if ($libs =~ m#(lib|lib64)/xulrunner-(devel|sdk)-([^/]+)#) {
+ $inc .= qq( -DGTK_MOZ_EMBED_PERL_XULRUNNER_PATH=)