dep-selector-libgecode 1.0.0.rc.0 → 1.0.0.rc.1

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: 7826df2f6df2bec604a368465b0c723b80b36f81
4
- data.tar.gz: 19e4dbce7cdefa6dd28f388f7f58074185279b66
3
+ metadata.gz: 57c87af7ab1fce36c3b3f8c6bcb23c34403b21f7
4
+ data.tar.gz: 60ab85b3728fbc2d188ef441ef35c55ab1e1c557
5
5
  SHA512:
6
- metadata.gz: 9eaf22f6fd887d2dacd0b394b9c31ed623ca16b7abc1514b3e8b71242417af03b78745aba59f3573a29eb2fbc686e178b1c46c0ed31680468184c3958a5594c1
7
- data.tar.gz: ccb167a07d98026a4a17fee556eefd3549cfaa88a85707d52a7492ba1cd483355d2518d7769a53580063c5d9bf28f049e4282980fb86a0c78bd2e41782f3e762
6
+ metadata.gz: a32ea206ccc981061a1f42f7d15f23c75f2d3d48aea3174cfa321e3be045e2edbe374e07db8f70e2cdc87f58b3def47493e9467ca86625a9399becb5eb285f26
7
+ data.tar.gz: 8c55add3a812c9e834f226f3bb0a26508894a398500b76f5539e14ce6a5cb19bc35537df53b45778508013236699a74da3cd05c4171c5c69d46db1b6926a3ed5
data/CONTRIBUTING.md CHANGED
@@ -1,6 +1,16 @@
1
1
  # Contributing
2
2
 
3
- We (Chef Software, Inc.) are currently discussing whether to change the
4
- license on the packaging code in this repository to MIT. Until we make a
5
- decision, we cannot accept contributions from outside our organization.
6
- We should have this resolved very soon.
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.
@@ -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") &&
@@ -1,3 +1,3 @@
1
1
  module DepSelectorLibgecode
2
- VERSION = "1.0.0.rc.0"
2
+ VERSION = "1.0.0.rc.1"
3
3
  end
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.0
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-08 00:00:00.000000000 Z
11
+ date: 2014-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler