atk 0.20.0 → 0.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/Rakefile +1 -3
  2. data/extconf.rb +3 -1
  3. metadata +2 -2
data/Rakefile CHANGED
@@ -8,9 +8,7 @@ CLOBBER.include '**/extconf.h'
8
8
 
9
9
  # Determine the current version of the software
10
10
  def ruby_atk_version
11
- gem 'glib2'
12
- require 'glib2'
13
- GLib::BINDING_VERSION.join('.')
11
+ "0.20.1"
14
12
  end
15
13
 
16
14
  CURRENT_VERSION = ruby_atk_version
data/extconf.rb CHANGED
@@ -6,6 +6,7 @@ PACKAGE_NAME = "atk"
6
6
  PACKAGE_ID = "atk"
7
7
 
8
8
  begin
9
+ require 'rubygems'
9
10
  require 'mkmf-gnome2'
10
11
  USE_GNOME_GEMS=true
11
12
  TOPDIR = File.expand_path(File.dirname(__FILE__))
@@ -39,7 +40,8 @@ have_func('atk_text_clip_type_get_type', atk_header)
39
40
  have_func('atk_text_free_ranges', atk_header)
40
41
 
41
42
  if USE_GNOME_GEMS
42
- path = File.expand_path(ENV['GEM_HOME'] + "/gems/glib2-#{GLib::BINDING_VERSION.join('.')}/src")
43
+ # locate the latest glib2 install and add the package dependency
44
+ path = File.dirname(Gem.find_files('rbglib.h').first)
43
45
  add_depend_package("glib2", path, '/')
44
46
  else
45
47
  add_depend_package("glib2", "glib/src", TOPDIR)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 20
8
- - 0
9
- version: 0.20.0
8
+ - 1
9
+ version: 0.20.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - ruby-gnome2/AUTHORS