rsvg2 3.0.1-x86-mingw32 → 3.0.2-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fcab4fcb00726e263b85d981d4453766584c9ad8
4
- data.tar.gz: 8e876ea52834e79ef8a8d011e861429f684a0508
3
+ metadata.gz: cbd0e949eeb6840d3017ddfe3b62755b581932d4
4
+ data.tar.gz: 057f1c3b677649472783d68b4396cbb2dde7be4f
5
5
  SHA512:
6
- metadata.gz: 1078176738497dc2fa18f355be0cd3a881900ae257c0d36a2770ac1bc95713dfe53fa70fddcdcac541ffef58dca2b968b3dd112dc8b1de7ffc4425144a3578ae
7
- data.tar.gz: ffc3db7f4ce8d9ac07ae71c6fe2e35e3053eef1294c3b10105212c460f7c2b61f33da3e3492cc0500e92495f3828aa01f6ae83e6e6eacbabe69b8cb6b1587f8f
6
+ metadata.gz: 0b38008150b436ef0953e8c6cbb7733669a1270c64d2b53a1add336970b1046d75f2e520efcc586e855d44b6d1bdd4661c0f2aab5f7ea5d566685fd64f650508
7
+ data.tar.gz: 8a5359d1e716dd825d72fc949de0dcad44ea340eee4502a40e03a8d44ebd3c6318b0fdf6b9a9bba0d1597a64177c4480d4c752e2af1da9cb52276da07b1a52e8
data/Rakefile CHANGED
@@ -34,6 +34,11 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
34
34
  package.windows.gobject_introspection_dependencies = [
35
35
  "gdk_pixbuf2",
36
36
  ]
37
+ package.cross_compiling do |spec|
38
+ if /mingw|mswin/ =~ spec.platform.to_s
39
+ spec.add_runtime_dependency("pango", ">= #{package.version}")
40
+ end
41
+ end
37
42
  package.external_packages = [
38
43
  {
39
44
  :name => "libcroco",
Binary file
Binary file
Binary file
@@ -1,3 +1,19 @@
1
+ # Copyright (C) 2004-2015 Ruby-GNOME2 Project Team
2
+ #
3
+ # This library is free software; you can redistribute it and/or
4
+ # modify it under the terms of the GNU Lesser General Public
5
+ # License as published by the Free Software Foundation; either
6
+ # version 2.1 of the License, or (at your option) any later version.
7
+ #
8
+ # This library is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
+ # Lesser General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU Lesser General Public
14
+ # License along with this library; if not, write to the Free Software
15
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
+
1
17
  require "glib2"
2
18
  require "gdk_pixbuf2"
3
19
  require "cairo"
@@ -6,6 +22,33 @@ base_dir = Pathname.new(__FILE__).dirname.dirname.expand_path
6
22
  vendor_dir = base_dir + "vendor" + "local"
7
23
  vendor_bin_dir = vendor_dir + "bin"
8
24
  GLib.prepend_dll_path(vendor_bin_dir)
25
+
26
+ if vendor_dir.exist?
27
+ require "pango"
28
+
29
+ gdk_pixbuf2_spec = Gem.loaded_specs["gdk_pixbuf2"]
30
+ gdk_pixbuf2_base_dir = Pathname.new(gdk_pixbuf2_spec.gem_dir)
31
+ gdk_pixbuf2_module_dir =
32
+ gdk_pixbuf2_base_dir + "vendor" + "local" + "lib" +
33
+ "gdk-pixbuf-2.0" + "2.10.0"
34
+ gdk_pixbuf2_loaders_cache_path = gdk_pixbuf2_module_dir + "loaders.cache"
35
+ need_loaders_cache_update = false
36
+ if gdk_pixbuf2_loaders_cache_path.exist?
37
+ gdk_pixbuf2_loaders_cache_path.open do |cache|
38
+ need_loaders_cache_update = cache.each_line.none? do |line|
39
+ /\A"svg"/ === line
40
+ end
41
+ end
42
+ else
43
+ need_loaders_cache_update = true
44
+ end
45
+ if need_loaders_cache_update
46
+ pid = spawn("gdk-pixbuf-query-loaders.exe",
47
+ :out => [gdk_pixbuf2_loaders_cache_path.to_s, "w"])
48
+ Process.waitpid(pid)
49
+ end
50
+ end
51
+
9
52
  begin
10
53
  major, minor, = RUBY_VERSION.split(/\./)
11
54
  require "#{major}.#{minor}/rsvg2.so"
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rsvg2
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.0.2
5
5
  platform: x86-mingw32
6
6
  authors:
7
7
  - The Ruby-GNOME2 Project Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-11 00:00:00.000000000 Z
11
+ date: 2015-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cairo
@@ -30,14 +30,28 @@ dependencies:
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 3.0.1
33
+ version: 3.0.2
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 3.0.1
40
+ version: 3.0.2
41
+ - !ruby/object:Gem::Dependency
42
+ name: pango
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: 3.0.2
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: 3.0.2
41
55
  description: Ruby/RSVG is a Ruby binding of librsvg-2.x.
42
56
  email: ruby-gnome2-devel-en@lists.sourceforge.net
43
57
  executables: []