diff options
| author | Adam Vandenberg | 2012-08-27 22:07:27 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-08-27 22:07:27 -0700 |
| commit | f4b705824b53ad0e423c030a8ee601d484e94b21 (patch) | |
| tree | 2829071158db6bd47237123336807a15ff4643e0 /Library/Formula | |
| parent | 7e5bc89e3541cea898bc366c2da587b810f59dba (diff) | |
| download | homebrew-f4b705824b53ad0e423c030a8ee601d484e94b21.tar.bz2 | |
luajit: use new dsl
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/luajit.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Library/Formula/luajit.rb b/Library/Formula/luajit.rb index b8406dc57..95d047d99 100644 --- a/Library/Formula/luajit.rb +++ b/Library/Formula/luajit.rb @@ -10,9 +10,7 @@ class Luajit < Formula # Skip cleaning both empty folders and bin/libs so external symbols still work. skip_clean :all - def options - [["--enable-debug", "Build with debugging symbols."]] - end + option "enable-debug", "Build with debugging symbols" def install # 1 - Remove the '-O2' so we can set Og if needed. Leave the -fomit part. @@ -27,7 +25,7 @@ class Luajit < Formula ENV.O2 # Respect the developer's choice. args = [ "PREFIX=#{prefix}" ] - if ARGV.include? '--enable-debug' then + if build.include? 'enable-debug' then ENV.Og if ENV.compiler == :clang args << 'CCDEBUG=-g' end @@ -39,7 +37,7 @@ class Luajit < Formula system 'make', *args # Build requires args during install # Non-versioned symlink - if ARGV.build_head? + if build.head? version = "2.0.0-beta10" else version = @version |
