aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2012-08-30 12:50:28 -0700
committerAdam Vandenberg2012-08-30 12:50:28 -0700
commit15c23a5c97462d963d2a5172f033e87be570d8ea (patch)
tree2c453a8a9ff3eb356876cd082598017d45851ff6 /Library/Formula
parent7f6ab8632e72fb9165bd16cbfbb262a51fe1df8a (diff)
downloadhomebrew-15c23a5c97462d963d2a5172f033e87be570d8ea.tar.bz2
ngspice: add X11 dep
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/ngspice.rb21
1 files changed, 11 insertions, 10 deletions
diff --git a/Library/Formula/ngspice.rb b/Library/Formula/ngspice.rb
index f5cd363a3..7143c12cb 100644
--- a/Library/Formula/ngspice.rb
+++ b/Library/Formula/ngspice.rb
@@ -3,19 +3,20 @@ require 'formula'
class Ngspice < Formula
homepage 'http://ngspice.sourceforge.net/'
url 'http://downloads.sourceforge.net/project/ngspice/ng-spice-rework/24/ngspice-24.tar.gz'
- md5 'e9ed7092da3e3005aebd892996b2bd5f'
+ sha1 'a6bb0e65c1c07d48f1d3e4df44fc17f6262952eb'
- def options
- [["--without-xspice", "Build without x-spice extensions"]]
- end
+ option "without-xspice", "Build without x-spice extensions"
+
+ depends_on :x11
def install
- args = ["--disable-debug",
- "--disable-dependency-tracking",
- "--prefix=#{prefix}",
- "--with-editline=yes",
- "--enable-x"]
- args << "--enable-xspice" unless ARGV.include? "--without-xspice"
+ args = %W[
+ --disable-dependency-tracking
+ --prefix=#{prefix}
+ --with-editline=yes
+ --enable-x
+ ]
+ args << "--enable-xspice" unless build.include? "without-xspice"
system "./configure", *args
system "make install"