diff options
| author | Adam Vandenberg | 2012-08-09 21:48:41 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-08-09 21:48:41 -0700 |
| commit | 4466cc1811a33d92b001a07e81d90f16355c1854 (patch) | |
| tree | d292838492d0208d8bab8256649e4b38f82a0259 /Library/Formula | |
| parent | 2716b4cb63d69210089b55a0ef1c493f4cbff8b9 (diff) | |
| download | homebrew-4466cc1811a33d92b001a07e81d90f16355c1854.tar.bz2 | |
swig: use options dsl
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/swig.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Library/Formula/swig.rb b/Library/Formula/swig.rb index a298f5499..adf95efcf 100644 --- a/Library/Formula/swig.rb +++ b/Library/Formula/swig.rb @@ -5,14 +5,12 @@ class Swig < Formula url 'http://downloads.sourceforge.net/project/swig/swig/swig-2.0.7/swig-2.0.7.tar.gz' sha1 '307020fb6437092e32c9c1bd9af8bccb1645b529' - depends_on 'pcre' + option :universal - def options - [['--universal', 'Build swig as a universal binary']] - end + depends_on 'pcre' def install - ENV.universal_binary if ARGV.build_universal? + ENV.universal_binary if build.universal? system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}" system "make" |
