diff options
| author | Adam Vandenberg | 2012-08-09 22:12:30 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-08-09 22:12:30 -0700 |
| commit | d88b0e29a4a1d4d33a978ae5eba63f62eb93e045 (patch) | |
| tree | 06433ca6d2bf48dda1ac68c22cca0e0632f32fcc | |
| parent | d3e27ec74cb6618e8d3a194e8db7ba8bb083cbb0 (diff) | |
| download | homebrew-d88b0e29a4a1d4d33a978ae5eba63f62eb93e045.tar.bz2 | |
jasper: use options dsl
| -rw-r--r-- | Library/Formula/jasper.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Library/Formula/jasper.rb b/Library/Formula/jasper.rb index 27d982917..be695a17f 100644 --- a/Library/Formula/jasper.rb +++ b/Library/Formula/jasper.rb @@ -5,6 +5,8 @@ class Jasper < Formula url 'http://www.ece.uvic.ca/~frodo/jasper/software/jasper-1.900.1.zip' sha1 '9c5735f773922e580bf98c7c7dfda9bbed4c5191' + option :universal + depends_on 'jpeg' fails_with :llvm do @@ -12,10 +14,6 @@ class Jasper < Formula cause "Undefined symbols when linking" end - def options - [["--universal", "Build a universal binary."]] - end - # The following patch fixes a bug (still in upstream as of jasper 1.900.1) # where an assertion fails when Jasper is fed certain JPEG-2000 files with # an alpha channel. See: @@ -23,7 +21,7 @@ class Jasper < Formula def patches; DATA; end def install - ENV.universal_binary if ARGV.build_universal? + ENV.universal_binary if build.universal? system "./configure", "--disable-debug", "--disable-dependency-tracking", "--enable-shared", |
