ngspice: add HEAD option. (#4374)
This commit is contained in:
parent
eaab6d42d8
commit
5f892cfbc8
1 changed files with 11 additions and 0 deletions
|
@ -4,6 +4,15 @@ class Ngspice < Formula
|
||||||
url "https://downloads.sourceforge.net/project/ngspice/ng-spice-rework/26/ngspice-26.tar.gz"
|
url "https://downloads.sourceforge.net/project/ngspice/ng-spice-rework/26/ngspice-26.tar.gz"
|
||||||
sha256 "51e230c8b720802d93747bc580c0a29d1fb530f3dd06f213b6a700ca9a4d0108"
|
sha256 "51e230c8b720802d93747bc580c0a29d1fb530f3dd06f213b6a700ca9a4d0108"
|
||||||
|
|
||||||
|
head do
|
||||||
|
url "git://ngspice.git.sourceforge.net/gitroot/ngspice/ngspice"
|
||||||
|
|
||||||
|
depends_on "autoconf" => :build
|
||||||
|
depends_on "automake" => :build
|
||||||
|
depends_on "bison" => :build
|
||||||
|
depends_on "libtool" => :build
|
||||||
|
end
|
||||||
|
|
||||||
bottle do
|
bottle do
|
||||||
sha256 "b508b0ca4f88db18b48796715a9de16ee5e7c119b13809ce01a87685f3a9393e" => :el_capitan
|
sha256 "b508b0ca4f88db18b48796715a9de16ee5e7c119b13809ce01a87685f3a9393e" => :el_capitan
|
||||||
sha256 "ea1f0b65fcb3bb926124694d210e14800be6e47e73dcbf47a8e2baaac5314f44" => :yosemite
|
sha256 "ea1f0b65fcb3bb926124694d210e14800be6e47e73dcbf47a8e2baaac5314f44" => :yosemite
|
||||||
|
@ -17,6 +26,8 @@ class Ngspice < Formula
|
||||||
depends_on :x11 => :optional
|
depends_on :x11 => :optional
|
||||||
|
|
||||||
def install
|
def install
|
||||||
|
system "./autogen.sh" if build.head?
|
||||||
|
|
||||||
args = %W[
|
args = %W[
|
||||||
--disable-dependency-tracking
|
--disable-dependency-tracking
|
||||||
--prefix=#{prefix}
|
--prefix=#{prefix}
|
||||||
|
|
Loading…
Reference in a new issue