charlock_holmes 0.7.4 → 0.7.5

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
  SHA1:
3
- metadata.gz: fc4f1ce5ce4f078219b2c9141338cfa56ab2d3d3
4
- data.tar.gz: 5115c058ec27d4b99a6e13a79df8defedbce8eb3
3
+ metadata.gz: 57e54315a83df12c843ea67de7213128f74f2a7e
4
+ data.tar.gz: f773e478f37f51fe159787964aadf794c25d347a
5
5
  SHA512:
6
- metadata.gz: 498b6b7cd0968c0abe1e5c2b1d8e4e7a10c0fc02a19700157ae2d297b91fd9e11eabe6f7d717dbb4e361bae591baeed20e30036cf239208fe0129af39985dff5
7
- data.tar.gz: e09f72751d6ee8b99ea2b64d28e4239593bf65b90128518fa8c44dfdd52ba8556fe35226e227ae8e5670100e9987055128b9b9f7f3356f2a94aa8f7351158142
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
- $CXXFLAGS << ' -std=c++11'
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
 
@@ -1,3 +1,3 @@
1
1
  module CharlockHolmes
2
- VERSION = "0.7.4"
2
+ VERSION = "0.7.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: charlock_holmes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.4
4
+ version: 0.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Lopez