static_holmes 0.7.7 → 0.7.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1e35947554b465d48dc970a60031dcca03df441bd829b4464dba2ecf0bc792bb
4
- data.tar.gz: 4cdfaff28364c07fc96a0a77a62d2fb5dbccc130859a4268065084e5abdff449
3
+ metadata.gz: 3761cc87cbc21e60cff21b320ab71334f3ebd810ff0d0a510b20575f05277d7a
4
+ data.tar.gz: b2087ac3570f6a49d20182fbf50c6400fd4508af604848023ca556234244b62a
5
5
  SHA512:
6
- metadata.gz: 3007aa5b2d53c6046dc65086cb74881ea10f48fda3de2c89a053a42a820f5045b20ce2b716ce9ac0d51f3e6b704a85e9659958cf70c9631e74593637dfbae486
7
- data.tar.gz: 13ad7377a3525419518ef4c20ce6c4763a8fc9e8b5cabaa30495d5d79cb8bf0b239e2238a4dcea5bc181572cec4356be3c2d65bf599c440a74a9f398881a6ec5
6
+ metadata.gz: 26bbf7bc330a9e39ab8fe5bdf2ea01e3d28e60d9db6e0865ff371f0d62bbf2e273d61a42db9e94eb8223fb9dc09ba7416687aba3eaafcde724a982c068de5288
7
+ data.tar.gz: 6143a73000eb85087f1eeaa0f0683c2e964839b8d0957a28643efa40eea3f685c8a61b451ce148b36c2e9ebec8fe45649d1ad4b3067eff8aefa01463bf30635c
@@ -69,6 +69,21 @@ def resolve_static_library(libflag, dirs)
69
69
  end
70
70
 
71
71
  def substitute_static_libs(packages)
72
+ packages.each do |pkg|
73
+ unless pkg_config(pkg)
74
+ message = <<~MSG
75
+ Unable to run `pkg-config #{pkg}`.
76
+
77
+ Check that PKG_CONFIG_PATH includes #{pkg}.pc (or unset it if it's already set).
78
+
79
+ Current environment:
80
+ PKG_CONFIG_PATH=#{ENV['PKG_CONFIG_PATH']}
81
+ MSG
82
+
83
+ raise message
84
+ end
85
+ end
86
+
72
87
  # First, find all the -l<lib> flags added by pkg-config. We want to drop
73
88
  # these dynamically linked libraries and substitute them with the static libraries.
74
89
  libflags = packages.map do |pkg|
@@ -79,7 +94,7 @@ def substitute_static_libs(packages)
79
94
  # library paths given by the -L flag from pkg-config.
80
95
  lib_paths = packages.map do |pkg|
81
96
  include_path = pkg_config(pkg, 'libs-only-L')&.strip
82
- include_path&.split(' ').map { |lib| lib.gsub(/^-L/, '') }
97
+ include_path&.split(' ')&.map { |lib| lib.gsub(/^-L/, '') }
83
98
  end.flatten.uniq
84
99
 
85
100
  # Drop the -l<lib> flags and add in the static libraries.
@@ -1,3 +1,3 @@
1
1
  module CharlockHolmes
2
- VERSION = "0.7.7"
2
+ VERSION = "0.7.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: static_holmes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.7
4
+ version: 0.7.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Lopez
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-03-23 00:00:00.000000000 Z
12
+ date: 2024-06-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake-compiler
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  - !ruby/object:Gem::Version
92
92
  version: '0'
93
93
  requirements: []
94
- rubygems_version: 3.5.6
94
+ rubygems_version: 3.5.13
95
95
  signing_key:
96
96
  specification_version: 4
97
97
  summary: Character encoding detection, brought to you by ICU