aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2013-01-04 08:56:55 -0800
committerAdam Vandenberg2013-01-04 08:56:55 -0800
commit265a7bcf337810dee3234e47b167da0aff8af7cc (patch)
tree099f0a122f8307a887157dfd6d1f0e093a5158a6 /Library
parentf73d9422c49ff2d29faddcb392ee75eee87c437a (diff)
downloadhomebrew-265a7bcf337810dee3234e47b167da0aff8af7cc.tar.bz2
lua: add universal option
Closes #16888.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/lua.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Formula/lua.rb b/Library/Formula/lua.rb
index db920e282..d2fd1145e 100644
--- a/Library/Formula/lua.rb
+++ b/Library/Formula/lua.rb
@@ -12,6 +12,7 @@ class Lua < Formula
cause "Lua itself compiles with LLVM, but may fail when other software tries to link."
end
+ option :universal
option 'completion', 'Enables advanced readline support'
# Be sure to build a dylib, or else runtime modules will pull in another static copy of liblua = crashy
@@ -27,6 +28,8 @@ class Lua < Formula
end
def install
+ ENV.universal_binary if build.universal?
+
# Apply patch-level 2
curl "https://trac.macports.org/export/90538/trunk/dports/lang/lua/files/patch-lua-5.1.4-3", "-O"
safe_system '/usr/bin/patch', '-d', 'src', '-i', '../patch-lua-5.1.4-3'