pango 0.20.0 → 0.20.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/Rakefile +1 -17
  2. data/extconf.rb +6 -6
  3. data/sample/cairo.png +0 -0
  4. data/src/rbpango.h +1 -4
  5. metadata +3 -7
data/Rakefile CHANGED
@@ -8,23 +8,7 @@ CLOBBER.include '**/extconf.h'
8
8
 
9
9
  # Determine the current version of the software
10
10
  def ruby_pango_version
11
- buf = File.read('src/rbpango.h')
12
- if buf =~ /\s*RBPANGO_MAJOR_VERSION\s*(\d.+)/
13
- major = $1
14
- else
15
- major = 0
16
- end
17
- if buf =~ /\s*RBPANGO_MINOR_VERSION\s*(\d.+)/
18
- minor = $1
19
- else
20
- minor = 0
21
- end
22
- if buf =~ /\s*RBPANGO_MICRO_VERSION\s*(\d.+)/
23
- micro = $1
24
- else
25
- micro = 0
26
- end
27
- "#{major}.#{minor}.#{micro}"
11
+ "0.20.1"
28
12
  end
29
13
 
30
14
  CURRENT_VERSION = ruby_pango_version
data/extconf.rb CHANGED
@@ -6,15 +6,15 @@ PACKAGE_NAME = "pango"
6
6
  PACKAGE_ID = "pango"
7
7
 
8
8
  begin
9
+ require 'rubygems'
9
10
  require 'mkmf-gnome2'
10
- USE_GLIB_GEM = true
11
+ USE_GNOME_GEMS = true
11
12
  TOPDIR = File.expand_path(File.dirname(__FILE__) )
12
13
  SRCDIR = TOPDIR + '/src'
13
14
  require 'glib2'
14
-
15
15
  rescue LoadError => e
16
16
 
17
- USE_GLIB_GEM = false
17
+ USE_GNOME_GEMS = false
18
18
 
19
19
  TOPDIR = File.expand_path(File.dirname(__FILE__) + '/..')
20
20
  MKMF_GNOME2_DIR = TOPDIR + '/glib/src/lib'
@@ -47,9 +47,9 @@ if PKGConfig.have_package('pangocairo')
47
47
  check_cairo
48
48
  end
49
49
 
50
- if USE_GLIB_GEM
51
-
52
- path = File.expand_path(ENV['GEM_HOME'] + "/gems/glib2-#{GLib::BINDING_VERSION.join('.')}/src")
50
+ if USE_GNOME_GEMS
51
+ # locate the latest glib2 install and add the package dependency
52
+ path = File.dirname(Gem.find_files('rbglib.h').first)
53
53
  add_depend_package("glib2", path, '/')
54
54
  else
55
55
  add_depend_package("glib2", "glib/src", TOPDIR)
data/sample/cairo.png ADDED
Binary file
data/src/rbpango.h CHANGED
@@ -10,14 +10,11 @@
10
10
  ************************************************/
11
11
 
12
12
  #include "ruby.h"
13
+
13
14
  #define PANGO_ENABLE_ENGINE
14
15
  #define PANGO_ENABLE_BACKEND
15
16
  #include <pango/pango.h>
16
17
 
17
- #define RBPANGO_MAJOR_VERSION 0
18
- #define RBPANGO_MINOR_VERSION 20
19
- #define RBPANGO_MICRO_VERSION 0
20
-
21
18
  #if HAVE_FREETYPE2
22
19
  #include <pango/pangofc-font.h>
23
20
  #endif
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pango
3
3
  version: !ruby/object:Gem::Version
4
- hash: 79
5
4
  prerelease: false
6
5
  segments:
7
6
  - 0
8
7
  - 20
9
- - 0
10
- version: 0.20.0
8
+ - 1
9
+ version: 0.20.1
11
10
  platform: ruby
12
11
  authors:
13
12
  - ruby-gnome2/AUTHORS
@@ -26,7 +25,6 @@ dependencies:
26
25
  requirements:
27
26
  - - ">="
28
27
  - !ruby/object:Gem::Version
29
- hash: 3
30
28
  segments:
31
29
  - 0
32
30
  version: "0"
@@ -40,7 +38,6 @@ dependencies:
40
38
  requirements:
41
39
  - - ">="
42
40
  - !ruby/object:Gem::Version
43
- hash: 3
44
41
  segments:
45
42
  - 0
46
43
  version: "0"
@@ -101,6 +98,7 @@ files:
101
98
  - src/rbpangoversion.h
102
99
  - sample/attribute.rb
103
100
  - sample/break.rb
101
+ - sample/cairo.png
104
102
  - sample/gdk_layout.rb
105
103
  - sample/glyphstring.rb
106
104
  - sample/item.rb
@@ -130,7 +128,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
130
128
  requirements:
131
129
  - - ">="
132
130
  - !ruby/object:Gem::Version
133
- hash: 3
134
131
  segments:
135
132
  - 0
136
133
  version: "0"
@@ -139,7 +136,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
139
136
  requirements:
140
137
  - - ">="
141
138
  - !ruby/object:Gem::Version
142
- hash: 3
143
139
  segments:
144
140
  - 0
145
141
  version: "0"