aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/xplanet.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2012-08-09 21:40:59 -0700
committerAdam Vandenberg2012-08-09 21:40:59 -0700
commit08b41c880a3abc97d2aa541e86e841fe5e102450 (patch)
tree4b653d4f132d1f48a5b1e0974da43c4e99679e17 /Library/Formula/xplanet.rb
parentcaae81d9cbda9c3b0aea2428553f8fedd2ba2cf1 (diff)
downloadhomebrew-08b41c880a3abc97d2aa541e86e841fe5e102450.tar.bz2
xplanet: use options dsl
Diffstat (limited to 'Library/Formula/xplanet.rb')
-rw-r--r--Library/Formula/xplanet.rb13
1 files changed, 7 insertions, 6 deletions
diff --git a/Library/Formula/xplanet.rb b/Library/Formula/xplanet.rb
index dcf64a499..d3c54cd1f 100644
--- a/Library/Formula/xplanet.rb
+++ b/Library/Formula/xplanet.rb
@@ -5,19 +5,20 @@ class Xplanet < Formula
url 'http://sourceforge.net/projects/xplanet/files/xplanet/1.3.0/xplanet-1.3.0.tar.gz'
sha1 '7c5208b501b441a0184cbb334a5658d0309d7dac'
+ option "with-x", "Build for X11 instead of Aqua"
+
depends_on 'pkg-config' => :build
depends_on 'jpeg'
depends_on 'giflib'
depends_on 'libtiff'
depends_on :x11
- def options
- [['--with-x', "Build for X11 instead of Aqua."]]
- end
-
def install
- args = ["--disable-dependency-tracking", "--prefix=#{prefix}"]
- if ARGV.include? "--with-x"
+ args = %W[
+ --disable-dependency-tracking
+ --prefix=#{prefix}
+ ]
+ if build.include? "with-x"
args << "--with-x"
else
args << "--with-aqua" << "--without-x"