aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2012-10-21 13:03:46 -0700
committerAdam Vandenberg2012-10-21 13:24:03 -0700
commita23c73520e9b15ef782e03a3940c6c23debbdc5a (patch)
treee54225d11da780bc747c3636f7641afa462d8e0a /Library
parenta8345b244bfc66467c7b7fbafc8b2f246dc60e6d (diff)
downloadhomebrew-a23c73520e9b15ef782e03a3940c6c23debbdc5a.tar.bz2
luajit: fix audit
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/luajit.rb13
1 files changed, 4 insertions, 9 deletions
diff --git a/Library/Formula/luajit.rb b/Library/Formula/luajit.rb
index 95d047d99..20eda6554 100644
--- a/Library/Formula/luajit.rb
+++ b/Library/Formula/luajit.rb
@@ -7,8 +7,7 @@ class Luajit < Formula
head 'http://luajit.org/git/luajit-2.0.git'
- # Skip cleaning both empty folders and bin/libs so external symbols still work.
- skip_clean :all
+ skip_clean 'lib/lua/5.1', 'share/lua/5.1'
option "enable-debug", "Build with debugging symbols"
@@ -24,7 +23,7 @@ class Luajit < Formula
end
ENV.O2 # Respect the developer's choice.
- args = [ "PREFIX=#{prefix}" ]
+ args = ["PREFIX=#{prefix}"]
if build.include? 'enable-debug' then
ENV.Og if ENV.compiler == :clang
args << 'CCDEBUG=-g'
@@ -37,11 +36,7 @@ class Luajit < Formula
system 'make', *args # Build requires args during install
# Non-versioned symlink
- if build.head?
- version = "2.0.0-beta10"
- else
- version = @version
- end
- ln_s bin+"luajit-#{version}", bin+"luajit"
+ version = build.head? ? "2.0.0-beta10" : @version
+ ln_s bin/"luajit-#{version}", bin/"luajit"
end
end