aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2012-08-09 21:55:01 -0700
committerAdam Vandenberg2012-08-09 21:55:01 -0700
commit7ce827e36d20c815c6753f8a8700779d7ab315ed (patch)
tree985f49ed98386754bc84efc2913b546139f74bd1 /Library
parent0f302052c897ccb72f768acf714f6f6eae1b144a (diff)
downloadhomebrew-7ce827e36d20c815c6753f8a8700779d7ab315ed.tar.bz2
gsl: use options dsl
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/gsl.rb11
1 files changed, 5 insertions, 6 deletions
diff --git a/Library/Formula/gsl.rb b/Library/Formula/gsl.rb
index 7ab5b7304..985e8d753 100644
--- a/Library/Formula/gsl.rb
+++ b/Library/Formula/gsl.rb
@@ -1,19 +1,18 @@
require 'formula'
class Gsl < Formula
+ homepage 'http://www.gnu.org/software/gsl/'
url 'http://ftpmirror.gnu.org/gsl/gsl-1.15.tar.gz'
mirror 'http://ftp.gnu.org/gnu/gsl/gsl-1.15.tar.gz'
- homepage 'http://www.gnu.org/software/gsl/'
md5 '494ffefd90eef4ada678c306bab4030b'
- def options
- [["--universal", "Build a universal binary."]]
- end
+ option :universal
def install
- ENV.universal_binary if ARGV.build_universal?
+ ENV.universal_binary if build.universal?
- system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
+ system "./configure", "--disable-dependency-tracking",
+ "--prefix=#{prefix}"
system "make" # A GNU tool which doesn't support just make install! Shameful!
system "make install"
end