gdk_pixbuf2 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 +19 -11
  2. data/lib/gdk_pixbuf2.rb +10 -1
  3. metadata +4 -4
data/Rakefile CHANGED
@@ -1,24 +1,32 @@
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/GdkPixbuf2 is a Ruby binding of GdkPixbuf-2.x."
8
- _package.description = "Ruby/GdkPixbuf2 is a Ruby binding of GdkPixbuf-2.x."
9
- _package.dependency.gem.runtime = ["glib2"]
10
- _package.win32.packages = []
11
- _package.win32.dependencies = ["zlib", "libpng"]
12
- _package.win32.build_dependencies = ["glib2"]
13
- _package.win32.build_packages = [
6
+ package_task = GNOME2::Rake::PackageTask.new do |package|
7
+ package.summary = "Ruby/GdkPixbuf2 is a Ruby binding of GdkPixbuf-2.x."
8
+ package.description = "Ruby/GdkPixbuf2 is a Ruby binding of GdkPixbuf-2.x."
9
+ package.dependency.gem.runtime = ["glib2"]
10
+ package.windows.packages = []
11
+ package.windows.dependencies = ["zlib", "libpng"]
12
+ package.windows.build_dependencies = [
13
+ "glib2",
14
+ "gobject-introspection",
15
+ ]
16
+ package.external_packages = [
14
17
  {
15
18
  :name => "gdk-pixbuf",
16
19
  :download_site => :gnome,
17
20
  :label => "gdk-pixbuf",
18
21
  :version => "2.28.0",
19
- :configure_args => [],
20
22
  :compression_method => "xz",
23
+ :windows => {
24
+ :configure_args => [
25
+ "--with-included-loaders",
26
+ "--enable-introspection",
27
+ ],
28
+ },
21
29
  }
22
30
  ]
23
31
  end
24
- package.define_tasks
32
+ package_task.define
data/lib/gdk_pixbuf2.rb CHANGED
@@ -3,7 +3,7 @@ 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}/gdk_pixbuf2.so"
@@ -11,6 +11,15 @@ rescue LoadError
11
11
  require "gdk_pixbuf2.so"
12
12
  end
13
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
22
+
14
23
  module Gdk
15
24
  class PixbufLoader
16
25
  def self.open(type = nil, mime_type = false)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gdk_pixbuf2
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/GdkPixbuf2 is a Ruby binding of GdkPixbuf-2.x.
31
31
  email: ruby-gnome2-devel-en@lists.sourceforge.net
32
32
  executables: []