pkg-config 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +2 -7
- data/NEWS +91 -0
- data/Rakefile +13 -41
- data/lib/pkg-config.rb +6 -3
- data/lib/pkg-config/version.rb +19 -0
- data/test/run-test.rb +5 -5
- metadata +86 -92
- data/setup.rb +0 -1586
data/Gemfile
CHANGED
@@ -15,11 +15,6 @@
|
|
15
15
|
# License along with this library; if not, write to the Free Software
|
16
16
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
17
17
|
|
18
|
-
source
|
18
|
+
source :rubygems
|
19
19
|
|
20
|
-
|
21
|
-
gem "test-unit"
|
22
|
-
gem "test-unit-notify"
|
23
|
-
gem "rake"
|
24
|
-
gem "jeweler"
|
25
|
-
end
|
20
|
+
gemspec
|
data/NEWS
ADDED
@@ -0,0 +1,91 @@
|
|
1
|
+
= NEWS
|
2
|
+
|
3
|
+
== 1.1.4 - 2012/08/02
|
4
|
+
|
5
|
+
* Supported mswin64 as MSVC environment.
|
6
|
+
|
7
|
+
== 1.1.3 - 2012/01/29
|
8
|
+
|
9
|
+
* [GitHub #8] fix test broken by libpng version.
|
10
|
+
(Patch by Bohuslav Kabrda.)
|
11
|
+
* Used RbConfig instead of Config.
|
12
|
+
|
13
|
+
=== Thanks
|
14
|
+
|
15
|
+
* Bohuslav Kabrda
|
16
|
+
|
17
|
+
== 1.1.2 - 2011/07/04
|
18
|
+
|
19
|
+
* [GitHub #2] fix test broken.
|
20
|
+
(Reported by Mamoru Tasaka.)
|
21
|
+
* [GitHub #4] update project descripton.
|
22
|
+
(Patch by Antonio Terceiro.)
|
23
|
+
* [GitHub #4] use setup.rb instead of extconf.rb.
|
24
|
+
(Patch by Antonio Terceiro.)
|
25
|
+
* [GitHub #3] add Copyright notice to README.
|
26
|
+
(Suggested by Antonio Terceiro.)
|
27
|
+
* [GitHub #7] supported non i386 and amd64 architectures.
|
28
|
+
(Reported by Antonio Terceiro.)
|
29
|
+
|
30
|
+
=== Thanks
|
31
|
+
|
32
|
+
* Mamoru Tasaka
|
33
|
+
* Antonio Terceiro
|
34
|
+
|
35
|
+
== 1.1.1 - 2011/05/03
|
36
|
+
|
37
|
+
* [ruby-gnome-devel-en] add
|
38
|
+
/usr/lib/i386-linux-gnu/pkgconfig to the default paths.
|
39
|
+
(Reported by Andrea B.C.)
|
40
|
+
|
41
|
+
=== Thanks
|
42
|
+
|
43
|
+
* Funky Bibimba
|
44
|
+
|
45
|
+
== 1.1.0 - 2011/04/03
|
46
|
+
|
47
|
+
* [#3270846] add /usr/lib/x86_64-linux-gnu/pkgconfig to default paths.
|
48
|
+
(Reported by Funky Bibimbap)
|
49
|
+
|
50
|
+
=== Thanks
|
51
|
+
|
52
|
+
* Funky Bibimba
|
53
|
+
|
54
|
+
== 1.0.8 - 2011/01/30
|
55
|
+
|
56
|
+
* fix a bug that multiple PKGConfig.add_path doesn't work.
|
57
|
+
|
58
|
+
== 1.0.7 - 2010/09/30
|
59
|
+
|
60
|
+
* suppress warnings on Ruby 1.9.
|
61
|
+
|
62
|
+
== 1.0.6 - 2010/09/23
|
63
|
+
|
64
|
+
* add PKGConfig.libs_only_L.
|
65
|
+
|
66
|
+
== 1.0.5 - 2010/09/23
|
67
|
+
|
68
|
+
* suppress duplicated configure arguments processing.
|
69
|
+
* use mkmf.rb message functions.
|
70
|
+
|
71
|
+
== 1.0.4 - 2010/09/23
|
72
|
+
|
73
|
+
* add PKGConfig.variable.
|
74
|
+
|
75
|
+
== 1.0.3 - 2010/09/07
|
76
|
+
|
77
|
+
* add path and override_variable customize API.
|
78
|
+
* support description.
|
79
|
+
|
80
|
+
== 1.0.2 - 2010/09/02
|
81
|
+
|
82
|
+
* fix packaing miss.
|
83
|
+
|
84
|
+
== 1.0.1 - 2010/09/02
|
85
|
+
|
86
|
+
* support installing without gem.
|
87
|
+
|
88
|
+
== 1.0.0 - 2010/09/02
|
89
|
+
|
90
|
+
* Initial release!
|
91
|
+
|
data/Rakefile
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# -*- coding: utf-8; mode: ruby -*-
|
2
2
|
#
|
3
|
-
# Copyright (C) 2010-
|
3
|
+
# Copyright (C) 2010-2012 Kouhei Sutou <kou@clear-code.com>
|
4
4
|
#
|
5
5
|
# This library is free software; you can redistribute it and/or
|
6
6
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -16,50 +16,22 @@
|
|
16
16
|
# License along with this library; if not, write to the Free Software
|
17
17
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
18
18
|
|
19
|
-
|
19
|
+
task :default => :test
|
20
20
|
|
21
|
-
require
|
22
|
-
require
|
23
|
-
require 'rubygems'
|
24
|
-
require 'jeweler'
|
21
|
+
require "rubygems"
|
22
|
+
require "bundler/gem_helper"
|
25
23
|
|
26
|
-
base_dir =
|
27
|
-
lib_dir = base_dir + "lib"
|
28
|
-
$LOAD_PATH.unshift(lib_dir.to_s)
|
24
|
+
base_dir = File.dirname(__FILE__)
|
29
25
|
|
30
|
-
|
31
|
-
|
32
|
-
|
26
|
+
helper = Bundler::GemHelper.new(base_dir)
|
27
|
+
def helper.version_tag
|
28
|
+
version
|
33
29
|
end
|
34
30
|
|
35
|
-
|
36
|
-
|
37
|
-
spec = nil
|
38
|
-
Jeweler::Tasks.new do |_spec|
|
39
|
-
spec = _spec
|
40
|
-
spec.name = "pkg-config"
|
41
|
-
spec.version = version
|
42
|
-
spec.rubyforge_project = 'cairo'
|
43
|
-
spec.author = "Kouhei Sutou"
|
44
|
-
spec.email = ['kou@cozmixng.org']
|
45
|
-
spec.summary = 'A pkg-config implementation for Ruby'
|
46
|
-
spec.homepage = 'http://github.com/rcairo/pkg-config'
|
47
|
-
spec.description = "pkg-config can be used in your extconf.rb to properly detect need libraries for compiling Ruby native extensions"
|
48
|
-
spec.license = "LGPLv2+"
|
49
|
-
spec.files = FileList["lib/**/*.rb",
|
50
|
-
"*.rb",
|
51
|
-
"Gemfile",
|
52
|
-
"Rakefile",
|
53
|
-
"LGPL-2.1"]
|
54
|
-
spec.test_files = FileList["test/**/*.rb"]
|
55
|
-
end
|
56
|
-
|
57
|
-
Rake::Task["release"].prerequisites.clear
|
58
|
-
Jeweler::RubygemsDotOrgTasks.new do
|
59
|
-
end
|
31
|
+
helper.install
|
32
|
+
spec = helper.gemspec
|
60
33
|
|
61
|
-
desc "
|
62
|
-
task :
|
63
|
-
|
64
|
-
sh("git", "push", "--tags")
|
34
|
+
desc "Run tests"
|
35
|
+
task :test do
|
36
|
+
ruby("test/run-test.rb")
|
65
37
|
end
|
data/lib/pkg-config.rb
CHANGED
@@ -14,6 +14,11 @@
|
|
14
14
|
# License along with this library; if not, write to the Free Software
|
15
15
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
16
16
|
|
17
|
+
begin
|
18
|
+
require "pkg-config/version"
|
19
|
+
rescue LoadError
|
20
|
+
end
|
21
|
+
|
17
22
|
require "rbconfig"
|
18
23
|
|
19
24
|
require 'mkmf'
|
@@ -316,8 +321,6 @@ class PackageConfig
|
|
316
321
|
end
|
317
322
|
|
318
323
|
module PKGConfig
|
319
|
-
VERSION = "1.1.3"
|
320
|
-
|
321
324
|
@@paths = []
|
322
325
|
@@override_variables = {}
|
323
326
|
|
@@ -331,7 +334,7 @@ module PKGConfig
|
|
331
334
|
end
|
332
335
|
|
333
336
|
def msvc?
|
334
|
-
/
|
337
|
+
/mswin/.match(RUBY_PLATFORM) and /^cl\b/.match(RbConfig::CONFIG['CC'])
|
335
338
|
end
|
336
339
|
|
337
340
|
def package_config(package)
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# Copyright 2012 Kouhei Sutou <kou@cozmixng.org>
|
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
16
|
+
|
17
|
+
module PKGConfig
|
18
|
+
VERSION = "1.1.4"
|
19
|
+
end
|
data/test/run-test.rb
CHANGED
@@ -6,16 +6,16 @@ base_dir = File.expand_path(File.join(File.dirname(__FILE__), ".."))
|
|
6
6
|
lib_dir = File.join(base_dir, "lib")
|
7
7
|
test_dir = File.join(base_dir, "test")
|
8
8
|
|
9
|
-
|
10
|
-
require
|
9
|
+
ENV["BUNDLE_GEMFILE"] ||= File.join(base_dir, "Gemfile")
|
10
|
+
require "bundler/setup"
|
11
11
|
|
12
|
-
|
13
|
-
$LOAD_PATH.unshift(lib_dir)
|
12
|
+
require 'test-unit'
|
14
13
|
|
14
|
+
$LOAD_PATH.unshift(lib_dir)
|
15
15
|
$LOAD_PATH.unshift(test_dir)
|
16
16
|
|
17
17
|
Dir.glob("test/**/test_*.rb") do |file|
|
18
|
-
require file.
|
18
|
+
require file.gsub(/(?:^test\/|\.rb$)/, '')
|
19
19
|
end
|
20
20
|
|
21
21
|
exit Test::Unit::AutoRunner.run(false)
|
metadata
CHANGED
@@ -1,129 +1,123 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: pkg-config
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.1.4
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 1
|
9
|
-
- 3
|
10
|
-
version: 1.1.3
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Kouhei Sutou
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
21
|
-
version_requirements: &id001 !ruby/object:Gem::Requirement
|
22
|
-
none: false
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
hash: 3
|
27
|
-
segments:
|
28
|
-
- 0
|
29
|
-
version: "0"
|
12
|
+
date: 2012-08-02 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
30
15
|
name: test-unit
|
31
|
-
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
32
22
|
type: :development
|
33
|
-
|
34
|
-
|
35
|
-
version_requirements: &id002 !ruby/object:Gem::Requirement
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
36
25
|
none: false
|
37
|
-
requirements:
|
38
|
-
- -
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
|
41
|
-
|
42
|
-
- 0
|
43
|
-
version: "0"
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
44
31
|
name: test-unit-notify
|
45
|
-
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
46
38
|
type: :development
|
47
|
-
|
48
|
-
|
49
|
-
version_requirements: &id003 !ruby/object:Gem::Requirement
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
50
41
|
none: false
|
51
|
-
requirements:
|
52
|
-
- -
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
|
55
|
-
|
56
|
-
- 0
|
57
|
-
version: "0"
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
58
47
|
name: rake
|
59
|
-
|
60
|
-
type: :development
|
61
|
-
requirement: *id003
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
version_requirements: &id004 !ruby/object:Gem::Requirement
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
64
49
|
none: false
|
65
|
-
requirements:
|
66
|
-
- -
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
|
69
|
-
|
70
|
-
- 0
|
71
|
-
version: "0"
|
72
|
-
name: jeweler
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
73
55
|
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: bundler
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
74
70
|
type: :development
|
75
|
-
|
76
|
-
|
77
|
-
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
description: pkg-config can be used in your extconf.rb to properly detect need libraries
|
79
|
+
for compiling Ruby native extensions
|
80
|
+
email:
|
78
81
|
- kou@cozmixng.org
|
79
82
|
executables: []
|
80
|
-
|
81
83
|
extensions: []
|
82
|
-
|
83
|
-
|
84
|
+
extra_rdoc_files: []
|
85
|
+
files:
|
84
86
|
- README.rdoc
|
85
|
-
|
87
|
+
- NEWS
|
86
88
|
- Gemfile
|
87
|
-
- LGPL-2.1
|
88
89
|
- Rakefile
|
90
|
+
- LGPL-2.1
|
91
|
+
- lib/pkg-config/version.rb
|
89
92
|
- lib/pkg-config.rb
|
90
|
-
- setup.rb
|
91
|
-
- README.rdoc
|
92
|
-
- test/run-test.rb
|
93
93
|
- test/test_pkg_config.rb
|
94
|
-
|
95
|
-
|
94
|
+
- test/run-test.rb
|
95
|
+
homepage: https://github.com/rcairo/pkg-config
|
96
|
+
licenses:
|
96
97
|
- LGPLv2+
|
97
98
|
post_install_message:
|
98
99
|
rdoc_options: []
|
99
|
-
|
100
|
-
require_paths:
|
100
|
+
require_paths:
|
101
101
|
- lib
|
102
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
102
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
103
103
|
none: false
|
104
|
-
requirements:
|
105
|
-
- -
|
106
|
-
- !ruby/object:Gem::Version
|
107
|
-
|
108
|
-
|
109
|
-
- 0
|
110
|
-
version: "0"
|
111
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
104
|
+
requirements:
|
105
|
+
- - ! '>='
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
version: '0'
|
108
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
112
109
|
none: false
|
113
|
-
requirements:
|
114
|
-
- -
|
115
|
-
- !ruby/object:Gem::Version
|
116
|
-
|
117
|
-
segments:
|
118
|
-
- 0
|
119
|
-
version: "0"
|
110
|
+
requirements:
|
111
|
+
- - ! '>='
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: '0'
|
120
114
|
requirements: []
|
121
|
-
|
122
115
|
rubyforge_project: cairo
|
123
|
-
rubygems_version: 1.8.
|
116
|
+
rubygems_version: 1.8.23
|
124
117
|
signing_key:
|
125
118
|
specification_version: 3
|
126
119
|
summary: A pkg-config implementation for Ruby
|
127
|
-
test_files:
|
128
|
-
- test/run-test.rb
|
120
|
+
test_files:
|
129
121
|
- test/test_pkg_config.rb
|
122
|
+
- test/run-test.rb
|
123
|
+
has_rdoc:
|