summaryrefslogtreecommitdiff
path: root/community/ruby-gtk2
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/ruby-gtk2
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/ruby-gtk2')
-rw-r--r--community/ruby-gtk2/PKGBUILD32
-rw-r--r--community/ruby-gtk2/mkmf-gnome2.patch19
2 files changed, 51 insertions, 0 deletions
diff --git a/community/ruby-gtk2/PKGBUILD b/community/ruby-gtk2/PKGBUILD
new file mode 100644
index 000000000..c46eff5b5
--- /dev/null
+++ b/community/ruby-gtk2/PKGBUILD
@@ -0,0 +1,32 @@
+# $Id: PKGBUILD 40204 2011-02-21 19:23:54Z bfanella $
+# Maintainer: Brad Fanella <bradfanella@archlinux.us>
+# Contributor: Bjorn Lindeijer <bjorn@lindeijer.nl>
+# Contributor: kritoke <kritoke@nospam.gmail.com>
+
+pkgname=ruby-gtk2
+pkgver=0.90.7
+pkgrel=2
+pkgdesc="Ruby bindings for gtk2."
+arch=('i686' 'x86_64')
+url="http://ruby-gnome2.sourceforge.jp"
+license=('LGPL')
+depends=('ruby-glib2' 'ruby-pango' 'ruby-atk' 'ruby-gdkpixbuf2')
+makedepends=('ruby-pkgconfig' 'ruby-cairo')
+source=(http://downloads.sourceforge.net/ruby-gnome2/ruby-gtk2-$pkgver.tar.gz
+ 'mkmf-gnome2.patch')
+md5sums=('82ebea3ebb6fa51ffc5ec631b31d519a'
+ '93dac3212aa8fccfc83b2cd518750cf7')
+
+build() {
+ cd "$srcdir/ruby-gtk2-$pkgver"
+
+ # Apply ruby-cairo fixes
+ patch -Np1 -i ../mkmf-gnome2.patch glib2/lib/mkmf-gnome2.rb
+
+ ruby extconf.rb gtk2 --topdir=$pkgdir
+ make
+}
+package() {
+ cd "$srcdir/ruby-gtk2-$pkgver"
+ make DESTDIR="$pkgdir" install
+}
diff --git a/community/ruby-gtk2/mkmf-gnome2.patch b/community/ruby-gtk2/mkmf-gnome2.patch
new file mode 100644
index 000000000..a03ab9e4c
--- /dev/null
+++ b/community/ruby-gtk2/mkmf-gnome2.patch
@@ -0,0 +1,19 @@
+*** mkmf-gnome2.rb.orig 2011-02-21 12:41:16.563334382 -0600
+--- mkmf-gnome2.rb 2011-02-21 12:41:37.610001048 -0600
+***************
+*** 364,370 ****
+ rescue LoadError
+ end
+ end
+! return false if rcairo_source_dir.nil?
+
+ if /mingw|cygwin|mswin32/ =~ RUBY_PLATFORM
+ options = {}
+--- 364,370 ----
+ rescue LoadError
+ end
+ end
+! return false if rcairo_source_dir.nil? && !(PKGConfig.have_package('cairo') && have_header('rb_cairo.h'))
+
+ if /mingw|cygwin|mswin32/ =~ RUBY_PLATFORM
+ options = {}