dep-selector-libgecode 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/README.md +20 -0
- data/ext/libgecode3/extconf.rb +6 -1
- data/lib/dep-selector-libgecode/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 09d03d813584eda1597f704ae88b3c766751e8a8
|
4
|
+
data.tar.gz: 2fefdacf2674b66eb4865de6cb58bc500d9c2b13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62f3b5e6ce53300712d283c63e007caccd477b0f77dc3acc250d6cf170eec3ddfcf7a58354c483b581f2c968b2b756ba82472bd57e1940cafdd4dd4d72328d41
|
7
|
+
data.tar.gz: 598f1a4a73718094b8522c22899ac3e4185f90d78e1d72dc93e26880807e64de7e7c13ac40980408299c3aa79b965a10bdaf7db7b5c97e0b8ce83cc6e0a7a4e0
|
data/CHANGELOG.md
ADDED
data/README.md
CHANGED
@@ -31,6 +31,26 @@ Or install it yourself as:
|
|
31
31
|
|
32
32
|
$ gem install dep-selector-libgecode
|
33
33
|
|
34
|
+
### Requirements
|
35
|
+
|
36
|
+
This gem runs make with concurrent jobs to speed build time, so it uses
|
37
|
+
about 2GB of RAM during the build. If this doesn't work for your
|
38
|
+
environment, see 'Using a System Gecode Instead' below. Better yet, if
|
39
|
+
you only want to install Berkshelf, try using
|
40
|
+
[ChefDK](http://www.getchef.com/downloads/chef-dk) instead of a gem
|
41
|
+
install.
|
42
|
+
|
43
|
+
### Using a System Gecode Instead
|
44
|
+
|
45
|
+
Use the "USE_SYSTEM_GECODE" environment variable when installing to
|
46
|
+
make dep-selector-libgecode use the system version, instead of
|
47
|
+
downloading the source and building its own copy:
|
48
|
+
|
49
|
+
$ USE_SYSTEM_GECODE=1 gem install dep-selector-libgecode
|
50
|
+
|
51
|
+
*WARNING:* Ensure that your system packages provide Gecode version 3 and
|
52
|
+
not version 4. Version 4 does not work with dep-selector.
|
53
|
+
|
34
54
|
## Usage
|
35
55
|
|
36
56
|
`DepSelectorLibgecode` provides helper functions for locating the
|
data/ext/libgecode3/extconf.rb
CHANGED
@@ -47,6 +47,10 @@ module GecodeBuild
|
|
47
47
|
if windows?
|
48
48
|
ENV['CC'] = 'gcc'
|
49
49
|
ENV['CXX'] = 'g++'
|
50
|
+
# Older versions of CentOS and RHEL need to use this
|
51
|
+
elsif File.exist?('/usr/bin/gcc44')
|
52
|
+
ENV['CC'] = 'gcc44'
|
53
|
+
ENV['CXX'] = 'g++44'
|
50
54
|
end
|
51
55
|
|
52
56
|
# Configure the gecode libraries to look for other gecode libraries in the
|
@@ -81,7 +85,8 @@ module GecodeBuild
|
|
81
85
|
system(*configure_cmd) &&
|
82
86
|
system("make", "clean") &&
|
83
87
|
system("make", "-j", "5") &&
|
84
|
-
system("make", "install")
|
88
|
+
system("make", "install") &&
|
89
|
+
system("make", "distclean")
|
85
90
|
end
|
86
91
|
|
87
92
|
def self.run
|
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.
|
4
|
+
version: 1.0.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-
|
11
|
+
date: 2014-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -47,6 +47,7 @@ extensions:
|
|
47
47
|
extra_rdoc_files: []
|
48
48
|
files:
|
49
49
|
- .gitignore
|
50
|
+
- CHANGELOG.md
|
50
51
|
- CONTRIBUTING.md
|
51
52
|
- Gemfile
|
52
53
|
- LICENSE.txt
|
@@ -873,7 +874,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
873
874
|
version: '0'
|
874
875
|
requirements: []
|
875
876
|
rubyforge_project:
|
876
|
-
rubygems_version: 2.
|
877
|
+
rubygems_version: 2.2.2
|
877
878
|
signing_key:
|
878
879
|
specification_version: 4
|
879
880
|
summary: Installs a vendored copy of Gecode suitable for use with dep-selector
|