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.
Files changed (3) hide show
  1. data/Rakefile +1 -2
  2. data/extconf.rb +6 -8
  3. metadata +1 -2
data/Rakefile CHANGED
@@ -8,8 +8,7 @@ CLOBBER.include '**/extconf.h'
8
8
 
9
9
  # Determine the current version of the software
10
10
  def ruby_gtk_version
11
- require 'glib2'
12
- GLib::BINDING_VERSION.join('.')
11
+ "0.20.1"
13
12
  end
14
13
 
15
14
  CURRENT_VERSION = ruby_gtk_version
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
- path = File.expand_path(ENV['GEM_HOME'] + "/gems/glib2-#{GLib::BINDING_VERSION.join('.')}/src")
85
- add_depend_package("glib2", path, '/')
86
- path = File.expand_path(ENV['GEM_HOME'] + "/gems/pango-#{GLib::BINDING_VERSION.join('.')}/src")
87
- add_depend_package("pango", path, '/')
88
- path = File.expand_path(ENV['GEM_HOME'] + "/gems/atk-#{GLib::BINDING_VERSION.join('.')}/src")
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)
metadata CHANGED
@@ -5,9 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 20
8
- - 0
9
8
  - 1
10
- version: 0.20.0.1
9
+ version: 0.20.1
11
10
  platform: ruby
12
11
  authors:
13
12
  - ruby-gnome2/AUTHORS