pango 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 +15 -11
  2. data/lib/pango.rb +10 -1
  3. metadata +4 -4
data/Rakefile CHANGED
@@ -1,25 +1,29 @@
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/Pango is a Ruby binding of pango-1.x."
8
- _package.description = "Ruby/Pango is a Ruby binding of pango-1.x."
9
- _package.dependency.gem.runtime = [["cairo", ">= 1.10.0"], "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/Pango is a Ruby binding of pango-1.x."
8
+ package.description = "Ruby/Pango is a Ruby binding of pango-1.x."
9
+ package.dependency.gem.runtime = [["cairo", ">= 1.10.0"], "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 => "pango",
16
16
  :download_site => :gnome,
17
17
  :label => "pango",
18
18
  :version => "1.34.0",
19
- :configure_args => [],
20
19
  :compression_method => "xz",
20
+ :windows => {
21
+ :configure_args => [
22
+ "--enable-introspection",
23
+ ],
24
+ },
21
25
  }
22
26
  ]
23
27
  end
24
- package.define_tasks
28
+ package_task.define
25
29
 
data/lib/pango.rb CHANGED
@@ -20,7 +20,7 @@ end
20
20
  base_dir = Pathname.new(__FILE__).dirname.dirname.expand_path
21
21
  vendor_dir = base_dir + "vendor" + "local"
22
22
  vendor_bin_dir = vendor_dir + "bin"
23
- GLib.prepend_environment_path(vendor_bin_dir)
23
+ GLib.prepend_dll_path(vendor_bin_dir)
24
24
  begin
25
25
  major, minor, _ = RUBY_VERSION.split(/\./)
26
26
  require "#{major}.#{minor}/pango.so"
@@ -28,6 +28,15 @@ rescue LoadError
28
28
  require "pango.so"
29
29
  end
30
30
 
31
+ if vendor_dir.exist?
32
+ begin
33
+ require "gobject-introspection"
34
+ vendor_girepository_dir = vendor_dir + "lib" + "girepository-1.0"
35
+ GObjectIntrospection.prepend_typelib_path(vendor_girepository_dir)
36
+ rescue LoadError
37
+ end
38
+ end
39
+
31
40
  module Pango
32
41
  LOG_DOMAIN = "Pango"
33
42
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pango
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: cairo
@@ -34,7 +34,7 @@ dependencies:
34
34
  requirements:
35
35
  - - ! '>='
36
36
  - !ruby/object:Gem::Version
37
- version: 1.2.6
37
+ version: 2.0.0
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
@@ -42,7 +42,7 @@ dependencies:
42
42
  requirements:
43
43
  - - ! '>='
44
44
  - !ruby/object:Gem::Version
45
- version: 1.2.6
45
+ version: 2.0.0
46
46
  description: Ruby/Pango is a Ruby binding of pango-1.x.
47
47
  email: ruby-gnome2-devel-en@lists.sourceforge.net
48
48
  executables: []