dep-selector-libgecode 1.0.0.rc.0 → 1.0.0.rc.1
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/CONTRIBUTING.md +14 -4
- data/ext/libgecode3/extconf.rb +21 -0
- data/lib/dep-selector-libgecode/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57c87af7ab1fce36c3b3f8c6bcb23c34403b21f7
|
4
|
+
data.tar.gz: 60ab85b3728fbc2d188ef441ef35c55ab1e1c557
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a32ea206ccc981061a1f42f7d15f23c75f2d3d48aea3174cfa321e3be045e2edbe374e07db8f70e2cdc87f58b3def47493e9467ca86625a9399becb5eb285f26
|
7
|
+
data.tar.gz: 8c55add3a812c9e834f226f3bb0a26508894a398500b76f5539e14ce6a5cb19bc35537df53b45778508013236699a74da3cd05c4171c5c69d46db1b6926a3ed5
|
data/CONTRIBUTING.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
# Contributing
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
3
|
+
## Summary
|
4
|
+
|
5
|
+
1. Fork it
|
6
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
7
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
8
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
9
|
+
5. Create new Pull Request
|
10
|
+
|
11
|
+
## Licensing
|
12
|
+
|
13
|
+
Gecode itself is MIT licensed. If you make changes to the vendored
|
14
|
+
Gecode source in ext/libgecode3/vendor, your changes will we distributed
|
15
|
+
under the terms of the MIT license. All other code in this repository is
|
16
|
+
distributed under the terms of the Apache 2.0 license.
|
data/ext/libgecode3/extconf.rb
CHANGED
@@ -48,6 +48,26 @@ module GecodeBuild
|
|
48
48
|
ENV['CC'] = 'gcc'
|
49
49
|
ENV['CXX'] = 'g++'
|
50
50
|
end
|
51
|
+
|
52
|
+
# Configure the gecode libraries to look for other gecode libraries in the
|
53
|
+
# installed lib dir. This isn't needed for dep-selector to correctly link
|
54
|
+
# the libraries it uses, but if you check the libraries with `ldd`, they
|
55
|
+
# will appear to have missing deps or to link to system installed gecode.
|
56
|
+
# When used inside an Omnibus project, this will make the health checker
|
57
|
+
# report an error.
|
58
|
+
libpath = File.join(PREFIX, "lib")
|
59
|
+
ENV['LD_RUN_PATH'] = libpath
|
60
|
+
end
|
61
|
+
|
62
|
+
# Depending on the version of mingw we're using, g++ may or may not fail when
|
63
|
+
# given the -pthreads option. When testing with `gcc version 4.6.2 (GCC)`
|
64
|
+
# mingw, this patch is required for the build to succeed.
|
65
|
+
def self.patch_configure
|
66
|
+
if windows?
|
67
|
+
original_configure = IO.read(configure)
|
68
|
+
original_configure.gsub!('pthread', 'mthread')
|
69
|
+
File.open(configure, "w+") { |f| f.print(original_configure) }
|
70
|
+
end
|
51
71
|
end
|
52
72
|
|
53
73
|
def self.system(*args)
|
@@ -57,6 +77,7 @@ module GecodeBuild
|
|
57
77
|
|
58
78
|
def self.run_build_commands
|
59
79
|
setup_env
|
80
|
+
patch_configure
|
60
81
|
system(*configure_cmd) &&
|
61
82
|
system("make", "clean") &&
|
62
83
|
system("make", "-j", "5") &&
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dep-selector-libgecode
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.rc.
|
4
|
+
version: 1.0.0.rc.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- danielsdeleo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|