luajit2: fix --HEAD build

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
Austin Seipp 2011-08-23 23:31:05 -05:00 committed by Adam Vandenberg
parent 5c67dad4d5
commit 8b857c6795
1 changed files with 9 additions and 1 deletions

View File

@ -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