or-tools 0.7.1 → 0.7.2
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/CHANGELOG.md +4 -0
- data/ext/or-tools/extconf.rb +2 -1
- data/ext/or-tools/vendor.rb +5 -6
- data/lib/or_tools/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2a6d267706d117ea1b3e1e76b0c74f49d28fedb300e39243ccf9d5160bcc5c76
|
|
4
|
+
data.tar.gz: 401e862ce8f7ae97608c746df879d7b43b39738bb45293097ef0dd61363b6491
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 34775f80be4bcf4fb0b039189365d66241821f9805ffa0e83f794a8c1fa00e5c3857ac90b2c98b2050004e92eb4b522155f11475b8335ac1f9f18666bd775503
|
|
7
|
+
data.tar.gz: fb904b96d10d5e88e9cbdc2326b031f46a565589546786899797432a66487464afaf31ff86f2f3f751d24cdf1993f09a366b7f0e411f28004292de4a12272bf6
|
data/CHANGELOG.md
CHANGED
data/ext/or-tools/extconf.rb
CHANGED
|
@@ -23,8 +23,9 @@ else
|
|
|
23
23
|
rpath = "'#{rpath_prefix}/../../tmp/or-tools/lib'"
|
|
24
24
|
end
|
|
25
25
|
|
|
26
|
+
# find_header and find_library first check without adding path
|
|
27
|
+
# which can cause them to find system library
|
|
26
28
|
$INCFLAGS << " -I#{inc}"
|
|
27
|
-
|
|
28
29
|
$LDFLAGS.prepend("-Wl,-rpath,#{rpath} -L#{lib} ")
|
|
29
30
|
raise "OR-Tools not found" unless have_library("ortools")
|
|
30
31
|
|
data/ext/or-tools/vendor.rb
CHANGED
|
@@ -142,12 +142,11 @@ Dir.mktmpdir do |extract_path|
|
|
|
142
142
|
|
|
143
143
|
# shared library
|
|
144
144
|
FileUtils.mkdir(File.join(path, "lib"))
|
|
145
|
-
Dir.glob("lib/libortools.{dylib,so.9}", base: extract_path) do |file|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
File.symlink(so_path, File.join(path, "lib/libortools.so"))
|
|
145
|
+
Dir.glob("lib/libortools.{9.dylib,so.9}", base: extract_path) do |file|
|
|
146
|
+
so_path = File.join(path, file)
|
|
147
|
+
FileUtils.cp(File.join(extract_path, file), so_path)
|
|
148
|
+
ext = file.end_with?(".dylib") ? "dylib" : "so"
|
|
149
|
+
File.symlink(so_path, File.join(path, "lib/libortools.#{ext}"))
|
|
151
150
|
end
|
|
152
151
|
end
|
|
153
152
|
|
data/lib/or_tools/version.rb
CHANGED