aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAustin Seipp2011-08-23 23:31:05 -0500
committerAdam Vandenberg2011-08-31 16:32:24 -0700
commit081f8bf8fa8dcc0fd0afab20742cc89344e1c980 (patch)
tree815852f340e4cbcc0ebbef0ec7efb47965f87671 /Library
parentf56ebc3ac6ac4124a5570d3bdf4187e28c539274 (diff)
downloadhomebrew-081f8bf8fa8dcc0fd0afab20742cc89344e1c980.tar.bz2
luajit2: fix --HEAD build
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/luajit.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/Library/Formula/luajit.rb b/Library/Formula/luajit.rb
index 3f694f096..51531f4a5 100644
--- a/Library/Formula/luajit.rb
+++ b/Library/Formula/luajit.rb
@@ -15,7 +15,9 @@ class Luajit < Formula
# Apply beta8 hotfix #1
def patches
- { :p1 => "http://luajit.org/download/beta8_hotfix1.patch" }
+ if not ARGV.build_head?
+ { :p1 => "http://luajit.org/download/beta8_hotfix1.patch" }
+ end
end
def install
@@ -24,7 +26,13 @@ class Luajit < Formula
else
system "make", "PREFIX=#{prefix}", "install"
end
+
# Non-versioned symlink
+ if ARGV.build_head?
+ version = "2.0.0-beta8"
+ else
+ version = @version
+ end
ln_s bin+"luajit-#{version}", bin+"luajit"
end
end