atk 1.2.6 → 2.0.0

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 +16 -12
  2. data/lib/atk.rb +10 -1
  3. metadata +4 -4
data/Rakefile CHANGED
@@ -1,26 +1,30 @@
1
1
  # -*- ruby -*-
2
2
 
3
3
  $LOAD_PATH.unshift("./../glib2/lib")
4
- require 'gnome2-raketask'
4
+ require "gnome2/rake/package-task"
5
5
 
6
- package = GNOME2Package.new do |_package|
7
- _package.summary = "Ruby/ATK is a Ruby binding of ATK-1.0.x."
8
- _package.description = "Ruby/ATK is a Ruby binding of ATK-1.0.x."
9
- _package.dependency.gem.runtime = ["glib2"]
10
- _package.win32.packages = []
11
- _package.win32.dependencies = []
12
- _package.win32.build_dependencies = ["glib2"]
13
- _package.win32.build_packages = [
6
+ package_task = GNOME2::Rake::PackageTask.new do |package|
7
+ package.summary = "Ruby/ATK is a Ruby binding of ATK-1.0.x."
8
+ package.description = "Ruby/ATK is a Ruby binding of ATK-1.0.x."
9
+ package.dependency.gem.runtime = ["glib2"]
10
+ package.windows.packages = []
11
+ package.windows.dependencies = []
12
+ package.windows.build_dependencies = ["glib2", "gobject-introspection"]
13
+ package.external_packages = [
14
14
  {
15
15
  :name => "atk",
16
16
  :download_site => :gnome,
17
17
  :label => "atk",
18
18
  :version => "2.8.0",
19
- :configure_args => [],
20
19
  :compression_method => "xz",
20
+ :windows => {
21
+ :configure_args => [
22
+ "--enable-introspection",
23
+ ],
24
+ :build_concurrently => false,
25
+ },
21
26
  }
22
27
  ]
23
- _package.win32.support_concurrent_build = false
24
28
  end
25
- package.define_tasks
29
+ package_task.define
26
30
 
data/lib/atk.rb CHANGED
@@ -3,10 +3,19 @@ require 'glib2'
3
3
  base_dir = Pathname.new(__FILE__).dirname.dirname.expand_path
4
4
  vendor_dir = base_dir + "vendor" + "local"
5
5
  vendor_bin_dir = vendor_dir + "bin"
6
- GLib.prepend_environment_path(vendor_bin_dir)
6
+ GLib.prepend_dll_path(vendor_bin_dir)
7
7
  begin
8
8
  major, minor, _ = RUBY_VERSION.split(/\./)
9
9
  require "#{major}.#{minor}/atk.so"
10
10
  rescue LoadError
11
11
  require 'atk.so'
12
12
  end
13
+
14
+ if vendor_dir.exist?
15
+ begin
16
+ require "gobject-introspection"
17
+ vendor_girepository_dir = vendor_dir + "lib" + "girepository-1.0"
18
+ GObjectIntrospection.prepend_typelib_path(vendor_girepository_dir)
19
+ rescue LoadError
20
+ end
21
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.6
4
+ version: 2.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-04 00:00:00.000000000 Z
12
+ date: 2013-04-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: glib2
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: 1.2.6
21
+ version: 2.0.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
- version: 1.2.6
29
+ version: 2.0.0
30
30
  description: Ruby/ATK is a Ruby binding of ATK-1.0.x.
31
31
  email: ruby-gnome2-devel-en@lists.sourceforge.net
32
32
  executables: []