cmake-heroku-dyn 2.8.11.2.0
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.
- data/Rakefile +9 -0
- data/ext/cmake/extconf.rb +41 -0
- data/lib/cmake.rb +1 -0
- data/lib/cmake/version.rb +4 -0
- metadata +50 -0
data/Rakefile
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
require 'fileutils'
|
2
|
+
require 'mkmf'
|
3
|
+
require 'rbconfig'
|
4
|
+
$:.unshift File.expand_path('../../../lib', __FILE__)
|
5
|
+
require 'cmake/version'
|
6
|
+
|
7
|
+
ob_num_ver = Cmake::VERSION
|
8
|
+
ob_ver = "cmake-"+ob_num_ver
|
9
|
+
|
10
|
+
RUBY=File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name'])
|
11
|
+
|
12
|
+
main_dir = File.expand_path(File.join(File.dirname(__FILE__),"..",".."))
|
13
|
+
src_dir = File.join main_dir, ob_ver
|
14
|
+
build_dir = File.join main_dir, "build"
|
15
|
+
install_dir = main_dir
|
16
|
+
install_lib_dir = File.join install_dir, "lib"
|
17
|
+
|
18
|
+
cmake_dir = File.join main_dir, ob_ver
|
19
|
+
|
20
|
+
begin
|
21
|
+
nr_processors = `grep processor /proc/cpuinfo | wc -l` # speed up compilation, Linux only
|
22
|
+
rescue
|
23
|
+
nr_processors = 1
|
24
|
+
end
|
25
|
+
|
26
|
+
begin
|
27
|
+
|
28
|
+
Dir.chdir main_dir do
|
29
|
+
FileUtils.rm_rf src_dir
|
30
|
+
system "curl -L 'http://www.cmake.org/files/v2.8/#{ob_ver}.tar.gz' | tar xz"
|
31
|
+
|
32
|
+
Dir.chdir cmake_dir do
|
33
|
+
system "./bootstrap", "--prefix=#{main_dir}"
|
34
|
+
system "make"
|
35
|
+
system "make install"
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
39
|
+
|
40
|
+
create_makefile "cmake"
|
41
|
+
end
|
data/lib/cmake.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'cmake/version'
|
metadata
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: cmake-heroku-dyn
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.8.11.2.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Dominic Lütjohann
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-09-27 00:00:00.000000000 Z
|
13
|
+
dependencies: []
|
14
|
+
description:
|
15
|
+
email:
|
16
|
+
executables: []
|
17
|
+
extensions:
|
18
|
+
- ext/cmake/extconf.rb
|
19
|
+
extra_rdoc_files: []
|
20
|
+
files:
|
21
|
+
- Rakefile
|
22
|
+
- lib/cmake.rb
|
23
|
+
- lib/cmake/version.rb
|
24
|
+
- ext/cmake/extconf.rb
|
25
|
+
homepage:
|
26
|
+
licenses:
|
27
|
+
- GPL-3
|
28
|
+
post_install_message:
|
29
|
+
rdoc_options: []
|
30
|
+
require_paths:
|
31
|
+
- lib
|
32
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
44
|
+
requirements: []
|
45
|
+
rubyforge_project:
|
46
|
+
rubygems_version: 1.8.25
|
47
|
+
signing_key:
|
48
|
+
specification_version: 3
|
49
|
+
summary: cmake-heroku-dyn
|
50
|
+
test_files: []
|