charlock_holmes 0.7.4 → 0.7.5
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 +9 -1
- data/lib/charlock_holmes/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: 57e54315a83df12c843ea67de7213128f74f2a7e
|
|
4
|
+
data.tar.gz: f773e478f37f51fe159787964aadf794c25d347a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cc59faffae9eacb3515fbc653b326f26fde8b607177f11ba64fcbcdd4033f06b03531c2f3e388d4d66ce09433f39164583b024beb189b8b37adc9a26eaf2586d
|
|
7
|
+
data.tar.gz: 7e7cbe1bb7d7bc8bfbae5417ce1c8047aa9e324fdfa528952c848f3180ac90c3ea3c81bfe74829352a1e81ac3648ac195d0f02f38ad4935876a5af20615396a3
|
|
@@ -24,6 +24,8 @@ end
|
|
|
24
24
|
dir_config 'icu'
|
|
25
25
|
|
|
26
26
|
rubyopt = ENV.delete("RUBYOPT")
|
|
27
|
+
|
|
28
|
+
icu4c = "/usr"
|
|
27
29
|
# detect homebrew installs
|
|
28
30
|
if !have_library 'icui18n'
|
|
29
31
|
base = if !`which brew`.empty?
|
|
@@ -50,7 +52,13 @@ have_library 'z' or abort 'libz missing'
|
|
|
50
52
|
have_library 'icuuc' or abort 'libicuuc missing'
|
|
51
53
|
have_library 'icudata' or abort 'libicudata missing'
|
|
52
54
|
|
|
53
|
-
|
|
55
|
+
# icu4c might be built in C++11 mode, but it also might not have been
|
|
56
|
+
icuconfig = `which icu-config`.chomp
|
|
57
|
+
icuconfig = "#{icu4c}/bin/icu-config" if icuconfig.empty?
|
|
58
|
+
if File.exist?(icuconfig) && `#{icuconfig} --cxxflags`.include?("c++11")
|
|
59
|
+
$CXXFLAGS << ' -std=c++11'
|
|
60
|
+
end
|
|
61
|
+
|
|
54
62
|
$CFLAGS << ' -Wall -funroll-loops'
|
|
55
63
|
$CFLAGS << ' -Wextra -O0 -ggdb3' if ENV['DEBUG']
|
|
56
64
|
|