cbc-wrapper 2.9.7.3 → 2.9.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/Rakefile +0 -10
- data/bin/console +1 -1
- data/ext/cbc-wrapper/extconf.rb +7 -7
- data/lib/cbc-wrapper/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b421327ceba58d263c08464b555eaaa3a6ba179
|
4
|
+
data.tar.gz: 6292a774f0ae034ee79a16ce10e6f80daf82d1eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4eef24ec3cd8cfbf93b3a5101a7a8721e740343772d3e66d5cbae31226f362b624d3405d992cad5bc21725ba9780c9fc4c7723f4af31cad2d28fe6bb3210d2c6
|
7
|
+
data.tar.gz: 5417820e85a4e832cd820b76e4502489bfbb0c29d9b9b4bfb8890dea102d1b7263395eea31cdfd7cc89b716f675979d2015505e1747cdef39e07cf0f2006f58b
|
data/README.md
CHANGED
data/Rakefile
CHANGED
@@ -10,15 +10,6 @@ ensure
|
|
10
10
|
Dir.chdir(original_dir)
|
11
11
|
end
|
12
12
|
|
13
|
-
# RSpec::Core::RakeTask.new(:spec)
|
14
|
-
#
|
15
|
-
# spec = Gem::Specification.load('cbc-wrapper.gemspec')
|
16
|
-
# Rake::ExtensionTask.new('cbc-wrapper', spec) do |ext|
|
17
|
-
# ext.lib_dir = 'lib/cbc-wrapper'
|
18
|
-
# ext.tmp_dir = "tmp"
|
19
|
-
# ext.name = 'cbc_wrapper'
|
20
|
-
# end
|
21
|
-
|
22
13
|
SHARED_LIBRARY_EXTENSION = RUBY_PLATFORM.include?("darwin") ? 'bundle' : 'so'
|
23
14
|
EXTENSION = 'lib/cbc-wrapper/cbc_wrapper.'+SHARED_LIBRARY_EXTENSION
|
24
15
|
|
@@ -26,7 +17,6 @@ desc "Use extconf.rb and make to build the extension."
|
|
26
17
|
task :build_extension => EXTENSION
|
27
18
|
|
28
19
|
file EXTENSION => 'ext/cbc-wrapper/cbc_wrap.c' do
|
29
|
-
puts "start"
|
30
20
|
in_dir('ext/cbc-wrapper') do
|
31
21
|
system("ruby extconf.rb")
|
32
22
|
system("make")
|
data/bin/console
CHANGED
data/ext/cbc-wrapper/extconf.rb
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
require
|
1
|
+
require "mkmf"
|
2
2
|
ROOT_DIR = File.dirname(File.absolute_path(__FILE__))
|
3
3
|
|
4
4
|
TARBALL_PATH = "/tmp/Cbc.tgz"
|
5
|
-
CBC_SRC_DIR = "/tmp/Cbc-2.9.
|
5
|
+
CBC_SRC_DIR = "/tmp/Cbc-2.9.9"
|
6
6
|
CBC_INSTALL = "#{ROOT_DIR}/install"
|
7
7
|
def install_cbc
|
8
|
-
system "curl -o #{TARBALL_PATH} https://www.coin-or.org/download/source/Cbc/Cbc-2.9.
|
8
|
+
system "curl -o #{TARBALL_PATH} https://www.coin-or.org/download/source/Cbc/Cbc-2.9.9.tgz"
|
9
9
|
Dir.chdir "/tmp" do
|
10
10
|
system "rm -rf #{CBC_SRC_DIR}; tar -xzf #{TARBALL_PATH}"
|
11
11
|
res = system "cd #{CBC_SRC_DIR} && ./configure --prefix=#{CBC_INSTALL} -C --with-pic --without-static && make -j `bash -c \"grep -c ^processor /proc/cpuinfo\"` && make install"
|
12
|
-
|
12
|
+
unless res
|
13
13
|
puts "Failed to build CBC, aborting... Cbc source is in #{CBC_SRC_DIR}"
|
14
14
|
exit 1
|
15
15
|
end
|
@@ -38,14 +38,14 @@ libs = %w(
|
|
38
38
|
)
|
39
39
|
|
40
40
|
libs.each do |lib|
|
41
|
-
find_library(lib,nil, "#{CBC_INSTALL}/lib")
|
41
|
+
find_library(lib, nil, "#{CBC_INSTALL}/lib")
|
42
42
|
end
|
43
43
|
|
44
|
-
headers = Dir["#{CBC_INSTALL}/include/coin/*.h"].map{ |h| h.split(
|
44
|
+
headers = Dir["#{CBC_INSTALL}/include/coin/*.h"].map { |h| h.split("/").last }
|
45
45
|
headers.each do |header|
|
46
46
|
find_header(header, "#{CBC_INSTALL}/include/coin")
|
47
47
|
end
|
48
48
|
|
49
49
|
dir_config("cbc-wrapper")
|
50
50
|
RPATHFLAG << " -Wl,-rpath,'$$ORIGIN/install/lib'"
|
51
|
-
create_makefile(
|
51
|
+
create_makefile("cbc_wrapper")
|
data/lib/cbc-wrapper/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cbc-wrapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.9.
|
4
|
+
version: 2.9.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Guillaume Verger
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -110,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
110
|
version: '0'
|
111
111
|
requirements: []
|
112
112
|
rubyforge_project:
|
113
|
-
rubygems_version: 2.
|
113
|
+
rubygems_version: 2.5.2
|
114
114
|
signing_key:
|
115
115
|
specification_version: 4
|
116
116
|
summary: Bare wrapper around Cbc Linear Programming Solver made with SWIG
|