ruby-libappindicator 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +2 -0
- data/ext/libappindicator/extconf.rb +17 -5
- data/ruby-libappindicator.gemspec +2 -2
- metadata +4 -4
data/CHANGELOG
CHANGED
@@ -11,11 +11,23 @@ end
|
|
11
11
|
package_id = 'appindicator-0.1'
|
12
12
|
PKGConfig.have_package(package_id) || failure("Couldn't find #{package_id}")
|
13
13
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
14
|
+
# Depending on the version of rubygems, use the appropriate block of code
|
15
|
+
proc_find_headers =
|
16
|
+
if Gem::Version.new(Gem::VERSION) < Gem::Version.new("1.8.0")
|
17
|
+
Proc.new { |gem, header|
|
18
|
+
(header_fp = Gem::required_location(gem, header)) || failure("Couldn't find #{header} file in #{gem} tem")
|
19
|
+
find_header(header, header_fp.rpartition("/")[0])
|
20
|
+
}
|
21
|
+
else
|
22
|
+
Proc.new { |gem, header|
|
23
|
+
gem_spec = Gem::Specification.find_by_name(gem)
|
24
|
+
dirs = Dir.glob(gem_spec.lib_dirs_glob)
|
25
|
+
dirs.each {|dir| find_header(header, dir)}
|
26
|
+
}
|
27
|
+
end
|
28
|
+
|
29
|
+
# Find the mandatory headers in their respective gems
|
30
|
+
[['glib2','rbgobject.h'],['gtk2','rbgtk.h']].each &proc_find_headers
|
19
31
|
|
20
32
|
create_makefile 'appindicator'
|
21
33
|
|
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{ruby-libappindicator}
|
5
|
-
s.version = "0.1.
|
5
|
+
s.version = "0.1.4"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = [%q{Thomas Kister, romario333}]
|
9
|
-
s.date = %q{2011-08
|
9
|
+
s.date = %q{2011-10-08}
|
10
10
|
s.description = %q{Ruby bindings for libappindicator}
|
11
11
|
s.email = %q{leander256@gmail.com}
|
12
12
|
s.extensions = [%q{ext/libappindicator/extconf.rb}]
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-libappindicator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 4
|
10
|
+
version: 0.1.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Thomas Kister, romario333
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-08
|
18
|
+
date: 2011-10-08 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: gtk2
|