-
Notifications
You must be signed in to change notification settings - Fork 1
/
necpp.rb
37 lines (28 loc) · 909 Bytes
/
necpp.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"
class Necpp < Formula
homepage "http://elec.otago.ac.nz/w/index.php/Necpp"
stable do
url "https://github.com/tmolteno/necpp/archive/v1.5.3.tar.gz"
sha256 "e8e898e81de89e426d50758d71cb569c2aceb1b2972cfaaa201ebe0938e22f50"
end
head do
url "https://github.com/tmolteno/necpp.git", :branch => 'master'
end
depends_on 'libtool' => :build
depends_on 'autoconf' => :build
depends_on 'automake' => :build
def install
ENV.deparallelize # fails when building in parallel
# bootstrap
system "make", "-f", "Makefile.git"
system "./configure", "--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}",
"--without-lapack",
"--without-eigen"
system "make", "install"
end
test do
system "nec2++", "-v"
end
end