7f24bf06da
These are included in the build artefacts when you pass in the "--debug" flag. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
25 lines
686 B
Ruby
25 lines
686 B
Ruby
require 'formula'
|
|
|
|
class Luajit < Formula
|
|
url 'http://luajit.org/download/LuaJIT-2.0.0-beta7.tar.gz'
|
|
head 'http://luajit.org/git/luajit-2.0.git', :using => :git
|
|
homepage 'http://luajit.org/luajit.html'
|
|
md5 'b845dec15dd9eba2fd17d865601a52e5'
|
|
|
|
# Skip cleaning both empty folders and bin/libs so external symbols still work.
|
|
skip_clean :all
|
|
|
|
def options
|
|
[["--debug", "Build with debugging symbols."]]
|
|
end
|
|
|
|
def install
|
|
if ARGV.include? '--debug'
|
|
system "make", "CCDEBUG=-g", "PREFIX=#{prefix}", "install"
|
|
else
|
|
system "make", "PREFIX=#{prefix}", "install"
|
|
end
|
|
# Non-versioned symlink
|
|
ln_s bin+"luajit-#{version}", bin+"luajit"
|
|
end
|
|
end
|