rsvg2 3.0.1 → 3.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +5 -0
  3. data/lib/rsvg2.rb +43 -0
  4. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7ee819e123fc5c50f97541c60dcee5a210bea040
4
- data.tar.gz: ac4fcbe92dd99a1325ea3f5e3d381455ad4b34a4
3
+ metadata.gz: 004ee4067a4885d1f1393b0eb8c2115aa723f06c
4
+ data.tar.gz: ac3ce1144d870089923e198e4c0d6ebb0f84fff7
5
5
  SHA512:
6
- metadata.gz: 3d622f55d2d3a7653a9dcb11a5849d7611b0b35eb0bed5fa81eff3edc8d6b48152facdd343899ed42380788ed53dd6150082cb40fa07cda5a0d75c3c734cae76
7
- data.tar.gz: 523721a8779f9719b34d089ed1ddab7048df9ff25ba9097a8d2db564f5ac25a1dbb8c124e5eff2336fd255994353bf6968fa8a358a322ac67ce99de6b8e3e790
6
+ metadata.gz: 03f1098a5e9ae1006dca6d76581f6646a5755ba5380002c426a5e0d73280fe4f759ab6e21b685344e887e3b55c6bfb88e83438252025d71db12ae54f4750c7ab
7
+ data.tar.gz: 2765e4a2a5e3ccc012e0d3971b4a44ff679c503c378d19151316053a9c7ab52d790a2d509f691f56438d00c8f4933c08aa343a307fea49d52d48f509a66e0af0
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",
@@ -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"
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: ruby
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,14 @@ 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
41
  description: Ruby/RSVG is a Ruby binding of librsvg-2.x.
42
42
  email: ruby-gnome2-devel-en@lists.sourceforge.net
43
43
  executables: []