gtk2 0.20.0.1 → 0.20.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -2
- data/extconf.rb +6 -8
- metadata +1 -2
data/Rakefile
CHANGED
data/extconf.rb
CHANGED
@@ -6,6 +6,7 @@ PACKAGE_NAME = "gtk2"
|
|
6
6
|
PKG_CONFIG_ID = "gtk+-2.0"
|
7
7
|
|
8
8
|
begin
|
9
|
+
require 'rubygems'
|
9
10
|
require 'mkmf-gnome2'
|
10
11
|
TOPDIR = File.expand_path(File.dirname(__FILE__))
|
11
12
|
SRCDIR = TOPDIR + '/src'
|
@@ -81,14 +82,11 @@ have_func("rb_errinfo")
|
|
81
82
|
|
82
83
|
check_cairo
|
83
84
|
if USE_GNOME_GEMS
|
84
|
-
|
85
|
-
add_depend_package("glib2",
|
86
|
-
|
87
|
-
add_depend_package("
|
88
|
-
|
89
|
-
add_depend_package("atk", path, '/')
|
90
|
-
path = File.expand_path(ENV['GEM_HOME'] + "/gems/gdkpixbuf-#{GLib::BINDING_VERSION.join('.')}/src")
|
91
|
-
add_depend_package("gdkpixbuf2", path, '/')
|
85
|
+
# locate the latest glib2 install and add the package dependency
|
86
|
+
add_depend_package("glib2", File.dirname(Gem.find_files('rbglib.h').first), '/')
|
87
|
+
add_depend_package("pango", File.dirname(Gem.find_files('rbpango.h').first), '/')
|
88
|
+
add_depend_package("atk", File.dirname(Gem.find_files('rbatk.h').first), '/')
|
89
|
+
add_depend_package("gdkpixbuf2", File.dirname(Gem.find_files('rbgdk-pixbuf.h').first), '/')
|
92
90
|
else
|
93
91
|
add_depend_package("glib2", "glib/src", TOPDIR)
|
94
92
|
add_depend_package("pango", "pango/src", TOPDIR)
|