pkg-config 1.2.2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/NEWS +6 -0
- data/lib/pkg-config.rb +10 -9
- data/lib/pkg-config/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cbe82e6b78d94b2bcf0b1805e01061b48b9b0a3d
|
4
|
+
data.tar.gz: 9f984bc5d47073fd92c5c02fa3b0c786a8626dfd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f06130d4efc5532d2c0b909644dbe34e7c2ac0f122a7554403993657d0dcd086a32744b6f4113ec4dbb773c392b6b242b5491b858b6793a752bae83d12f02e8
|
7
|
+
data.tar.gz: 535570aa221d8f46c812e0ad2c6baa19836874fb72ee55875e5ac78db4be274231cbd086cdba1fb0b90b8b2e927f6a4cda51c456c82162f6bd5ac6d9a7696602
|
data/NEWS
CHANGED
data/lib/pkg-config.rb
CHANGED
@@ -226,20 +226,21 @@ class PackageConfig
|
|
226
226
|
[path_flags, other_flags]
|
227
227
|
end
|
228
228
|
|
229
|
-
def normalize_path_flags(path_flags,
|
229
|
+
def normalize_path_flags(path_flags, flag_option)
|
230
230
|
path_flags.collect do |path_flag|
|
231
|
-
path = path_flag.sub(
|
231
|
+
path = path_flag.sub(flag_option, "")
|
232
|
+
prefix = ""
|
232
233
|
case RUBY_PLATFORM
|
233
234
|
when "x86-mingw32"
|
234
|
-
|
235
|
-
path = Dir.glob("c:/msys{32,64,*}").first + path
|
236
|
-
end
|
235
|
+
prefix = Dir.glob("c:/msys{32,64,*}").first
|
237
236
|
when "x64-mingw32"
|
238
|
-
|
239
|
-
|
240
|
-
|
237
|
+
prefix = Dir.glob("c:/msys{64,*}").first
|
238
|
+
end
|
239
|
+
if /\A[a-z]:/i === path
|
240
|
+
"#{flag_option}#{path}"
|
241
|
+
else
|
242
|
+
"#{flag_option}#{prefix}#{path}"
|
241
243
|
end
|
242
|
-
"#{prefix}#{path}"
|
243
244
|
end
|
244
245
|
end
|
245
246
|
|
data/lib/pkg-config/version.rb
CHANGED