static_holmes 0.7.9 → 0.7.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/charlock_holmes/extconf.rb +26 -0
- data/lib/charlock_holmes/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4803d1e6d567e2543704fa2ce8b6f6875673c219ca66b5516944e62e800dc3ee
|
4
|
+
data.tar.gz: 642edc241c50450f4ca662e6da35898d02a3ca77997eb8f5ce6a1c7f36a7bb84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cfb381f812968124e1c8221c99087b1f0bfef4fb73e9517dce95ed599a1e8132b72b51265d97ae701a4f0583cb497fd6899c336fd2ea8b9bc1b22d2354a54052
|
7
|
+
data.tar.gz: effc2e698dfd70a5eef40e8265a098ed52847d18fcfde7261b8a37c3b4a2ab277e23003c1916162cc2440de03368b2f398ed957ccc1832d1b5c475cb49a9cf2e
|
@@ -49,6 +49,32 @@ have_library 'icudata' or abort 'libicudata missing'
|
|
49
49
|
$CFLAGS << ' -Wall -funroll-loops'
|
50
50
|
$CFLAGS << ' -Wextra -O0 -ggdb3' if ENV['DEBUG']
|
51
51
|
|
52
|
+
minimal_program = <<~SRC
|
53
|
+
#include <unicode/translit.h>
|
54
|
+
int main() { return 0; }
|
55
|
+
SRC
|
56
|
+
|
57
|
+
# Pass -x c++ to force gcc to compile the test program
|
58
|
+
# as C++ (as it will end in .c by default).
|
59
|
+
compile_options = +"-x c++"
|
60
|
+
|
61
|
+
icu_requires_version_flag = checking_for("icu that requires explicit C++ version flag") do
|
62
|
+
!try_compile(minimal_program, compile_options)
|
63
|
+
end
|
64
|
+
|
65
|
+
if icu_requires_version_flag
|
66
|
+
abort "Cannot compile icu with your compiler: recent versions require C++17 support." unless %w[c++20 c++17 c++11 c++0x].any? do |std|
|
67
|
+
checking_for("icu that compiles with #{std} standard") do
|
68
|
+
if try_compile(minimal_program, compile_options + " -std=#{std}")
|
69
|
+
compile_options << " -std=#{std}"
|
70
|
+
$CPPFLAGS << " -std=#{std}"
|
71
|
+
|
72
|
+
true
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
52
78
|
def libflag_to_filename(ldflag)
|
53
79
|
case ldflag
|
54
80
|
when /\A-l(.+)/
|
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.10
|
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-07-
|
12
|
+
date: 2024-07-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake-compiler
|