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 +4 -4
- data/ext/charlock_holmes/extconf.rb +16 -3
- data/lib/charlock_holmes/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9782686f798e7923484b108a223c1ed97c96b8d511226056a3a88003362d379a
|
4
|
+
data.tar.gz: '09a7b09b1696b6bb069ceb60604d68d06d36c7f5293fce95ac8e5786d5aba98c'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(' ')
|
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.
|
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.
|
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-
|
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.
|
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
|