aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2012-08-09 21:58:02 -0700
committerAdam Vandenberg2012-08-09 22:00:54 -0700
commitcf6a2ac783291c1bcb6e76fda75fb90d284052db (patch)
tree24ba9dce6db331a40619996b6bcde885c061f261 /Library/Formula
parentb44b4cc4e4c55e64c892548b52bf3c78464ccbc7 (diff)
downloadhomebrew-cf6a2ac783291c1bcb6e76fda75fb90d284052db.tar.bz2
gettext: use options dsl
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/gettext.rb12
1 files changed, 4 insertions, 8 deletions
diff --git a/Library/Formula/gettext.rb b/Library/Formula/gettext.rb
index 3411b79dc..a922a87fa 100644
--- a/Library/Formula/gettext.rb
+++ b/Library/Formula/gettext.rb
@@ -12,18 +12,14 @@ class Gettext < Formula
sha1 'c75fdb192f1b49c9e7e2039c66e24f60f26bc027' => :lion
end
- def options
- [
- ['--with-examples', 'Keep example files.'],
- ['--universal', 'Build universal binaries.']
- ]
- end
+ option :universal
+ option 'with-examples', 'Keep example files'
def patches
# Patch to allow building with Xcode 4; safe for any compiler.
p = {:p0 => ['https://trac.macports.org/export/79617/trunk/dports/devel/gettext/files/stpncpy.patch']}
- unless ARGV.include? '--with-examples'
+ unless build.include? 'with-examples'
# Use a MacPorts patch to disable building examples at all,
# rather than build them and remove them afterwards.
p[:p0] << 'https://trac.macports.org/export/79183/trunk/dports/devel/gettext/files/patch-gettext-tools-Makefile.in'
@@ -34,7 +30,7 @@ class Gettext < Formula
def install
ENV.libxml2
- ENV.universal_binary if ARGV.build_universal?
+ ENV.universal_binary if build.universal?
system "./configure", "--disable-dependency-tracking", "--disable-debug",
"--prefix=#{prefix}",