static_holmes 0.7.7 → 0.7.9

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1e35947554b465d48dc970a60031dcca03df441bd829b4464dba2ecf0bc792bb
4
- data.tar.gz: 4cdfaff28364c07fc96a0a77a62d2fb5dbccc130859a4268065084e5abdff449
3
+ metadata.gz: 9782686f798e7923484b108a223c1ed97c96b8d511226056a3a88003362d379a
4
+ data.tar.gz: '09a7b09b1696b6bb069ceb60604d68d06d36c7f5293fce95ac8e5786d5aba98c'
5
5
  SHA512:
6
- metadata.gz: 3007aa5b2d53c6046dc65086cb74881ea10f48fda3de2c89a053a42a820f5045b20ce2b716ce9ac0d51f3e6b704a85e9659958cf70c9631e74593637dfbae486
7
- data.tar.gz: 13ad7377a3525419518ef4c20ce6c4763a8fc9e8b5cabaa30495d5d79cb8bf0b239e2238a4dcea5bc181572cec4356be3c2d65bf599c440a74a9f398881a6ec5
6
+ metadata.gz: 481321bbfa237c8bd0bd5c1e9728aa7c3045b39e4de5e2636974fa1b68866d6e1a0ef48bc791b96c3000882a9514248a88db2d126894e03b563ec89b91bdb1ef
7
+ data.tar.gz: dbcdf822022331c1a4275e6ae8877a4477cb146ff3cc28f6762e109615c5b268853f79973b1b33f35b5f99a51c4a7572b7157313b8dc9b01ac6fa37a61f0e883
@@ -34,8 +34,6 @@ pkg_config("icu-i18n")
34
34
  pkg_config("icu-io")
35
35
  pkg_config("icu-uc")
36
36
 
37
- $CXXFLAGS << ' -std=c++11' unless $CXXFLAGS.include?("-std=")
38
-
39
37
  unless have_library 'icui18n' and have_header 'unicode/ucnv.h'
40
38
  STDERR.puts "\n\n"
41
39
  STDERR.puts "***************************************************************************************"
@@ -69,6 +67,21 @@ def resolve_static_library(libflag, dirs)
69
67
  end
70
68
 
71
69
  def substitute_static_libs(packages)
70
+ packages.each do |pkg|
71
+ unless pkg_config(pkg)
72
+ message = <<~MSG
73
+ Unable to run `pkg-config #{pkg}`.
74
+
75
+ Check that PKG_CONFIG_PATH includes #{pkg}.pc (or unset it if it's already set).
76
+
77
+ Current environment:
78
+ PKG_CONFIG_PATH=#{ENV['PKG_CONFIG_PATH']}
79
+ MSG
80
+
81
+ raise message
82
+ end
83
+ end
84
+
72
85
  # First, find all the -l<lib> flags added by pkg-config. We want to drop
73
86
  # these dynamically linked libraries and substitute them with the static libraries.
74
87
  libflags = packages.map do |pkg|
@@ -79,7 +92,7 @@ def substitute_static_libs(packages)
79
92
  # library paths given by the -L flag from pkg-config.
80
93
  lib_paths = packages.map do |pkg|
81
94
  include_path = pkg_config(pkg, 'libs-only-L')&.strip
82
- include_path&.split(' ').map { |lib| lib.gsub(/^-L/, '') }
95
+ include_path&.split(' ')&.map { |lib| lib.gsub(/^-L/, '') }
83
96
  end.flatten.uniq
84
97
 
85
98
  # 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.9"
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.9
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-07-08 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.14
95
95
  signing_key:
96
96
  specification_version: 4
97
97
  summary: Character encoding detection, brought to you by ICU