gobject-introspection 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/Rakefile +6 -8
  2. metadata +4 -4
data/Rakefile CHANGED
@@ -19,9 +19,7 @@
19
19
  $LOAD_PATH.unshift("./../glib2/lib")
20
20
  require "gnome2/rake/package-task"
21
21
 
22
- package = nil
23
- package_task = GNOME2::Rake::PackageTask.new do |_package|
24
- package = _package
22
+ package_task = GNOME2::Rake::PackageTask.new do |package|
25
23
  package.summary = "Ruby/GObjectIntrospection is a Ruby binding of GObjectIntrospection."
26
24
  package.description = "Ruby/GObjectIntrospection is a Ruby binding of GObjectIntrospection."
27
25
  package.dependency.gem.runtime = ["glib2"]
@@ -41,8 +39,8 @@ package_task = GNOME2::Rake::PackageTask.new do |_package|
41
39
  },
42
40
  :native => {
43
41
  :build => true,
42
+ :need_autoreconf => true,
44
43
  },
45
- :need_autoreconf => true,
46
44
  },
47
45
  {
48
46
  :name => "gobject-introspection",
@@ -75,10 +73,10 @@ namespace :native do
75
73
  namespace :"gobject-introspection" do
76
74
  desc "Make g-ir-scanner workable for Windows on non Windows"
77
75
  task :cross do
78
- g_ir_scanner_dir = package.native.absolute_binary_dir
76
+ g_ir_scanner_dir = package_task.native.absolute_binary_dir
79
77
  g_ir_scanner_dir += "lib/gobject-introspection/giscanner"
80
78
  Dir.chdir(g_ir_scanner_dir.to_s) do
81
- patch = "#{package.patches_dir}/cross-g-ir-scanner.diff"
79
+ patch = "#{package_task.package.patches_dir}/cross-g-ir-scanner.diff"
82
80
  sh("patch -p2 < #{patch}")
83
81
  end
84
82
  end
@@ -93,11 +91,11 @@ namespace :win32 do
93
91
  namespace :"gobject-introspection" do
94
92
  desc "Use native tools"
95
93
  task :cross do
96
- pkg_config_dir = package.windows.absolute_binary_dir + "lib/pkgconfig"
94
+ pkg_config_dir = package_task.windows.absolute_binary_dir + "lib/pkgconfig"
97
95
  pc_path = pkg_config_dir + "gobject-introspection-1.0.pc"
98
96
  original_pc = pc_path.read
99
97
  new_pc = ""
100
- new_pc << "native_prefix=#{package.native.absolute_binary_dir}\n"
98
+ new_pc << "native_prefix=#{package_task.native.absolute_binary_dir}\n"
101
99
  new_pc << "native_bindir=${native_prefix}/bin\n"
102
100
  original_pc.each_line do |line|
103
101
  case line
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gobject-introspection
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
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-05-25 00:00:00.000000000 Z
12
+ date: 2013-05-26 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: 2.0.1
21
+ version: 2.0.2
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: 2.0.1
29
+ version: 2.0.2
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: test-unit
32
32
  requirement: !ruby/object:Gem::Requirement