-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfeelpp-toolboxes.rb
37 lines (31 loc) · 1.08 KB
/
feelpp-toolboxes.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
require 'formula'
# We remove the use of submodules as it makes the checkout step
# fails if we don't have access to them but keep the ones in contrib
class GitNoSubmoduleDownloadStrategy < GitDownloadStrategy
def initialize name, resource
super
end
def update_submodules
safe_system 'git', 'submodule', '--quiet', 'deinit', '-f', '--all'
safe_system 'git', 'submodule', '--quiet', 'update', '--init', '--recursive'
end
end
class FeelppToolboxes < Formula
homepage 'http://www.feelpp.org'
url 'https://github.com/feelpp/feelpp/releases/download/v0.101.1/feelpp-0.101.1.tar.gz'
head 'https://github.com/feelpp/feelpp.git', :using => GitNoSubmoduleDownloadStrategy, :branch => 'develop'
version '0.101.1'
sha256 '70418fb0ce9f5069190fcc1677615663dbca71cea39e2b858356476a9e8627cf'
depends_on 'feelpp'
def install
args=std_cmake_args+ ['-DFEELPP_ENABLE_TESTS=OFF', '-Wno-dev']
Dir.mkdir 'opt'
cd 'opt' do
system "cmake","../toolboxes", *args
system "make", "-j#{ENV.make_jobs}"
system "make","install"
end
end
test do
end
end