rsvg2 3.0.1-x64-mingw32 → 3.0.2-x64-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: 9fee69f40eb97815a8333f4d51a01c66392b2f01
4
- data.tar.gz: d3ab9b0d15a81c53853cee7116131a444d678525
3
+ metadata.gz: 436c26edce3756e3eab25d8443aacf04b8334c73
4
+ data.tar.gz: 4e61c2545b3df4a2d497c3231031623cfef49742
5
5
  SHA512:
6
- metadata.gz: 3ec35a72175acbd5e92f1914b51bde98cd4df713ec82bb38c132c3e2de1289317e354cf1e5be629678dcb9a9056c5e0b78c018de68f0c7a7f101024296244e1a
7
- data.tar.gz: dfbe9b03c584c269ed159592eef42dcec5df26e48aab735dfb7d47968cafd8a0ff3e62f484a6a2d15f33b20134f1f0dc12d914a773bfcc1502dac9bd3e3875e5
6
+ metadata.gz: 4ec4043317760ef1a903ce7d7ef8135d894aaef720cd164bcb197af3b9aca7ddf0c1a9928c2ec7b3fa98b67c3a5a2d88cec695c91e30b3de0c7d6cd6c0665345
7
+ data.tar.gz: 8eb4fc5d5393e98e39b6375102dbdba8076b4278bd9a706bd9dbbce027049022bbbd4ef736901e83b7f790657c6bf3bc33c47e07d1cc09f80ffcfb43da4eee0a
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: x64-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: []