From 1fed4927d2fdcee279d8d2c4abb98146b9ada3c7 Mon Sep 17 00:00:00 2001 From: Dominyk Tiller Date: Mon, 15 Sep 2014 15:38:39 +0100 Subject: lua: upgrade to 5.2. Merges Lua52 into the Master branch as the new ‘Lua’ whilst transitioning the old Lua formula to ‘Lua51’, running the two side-by-side in a non-conflicting way. --- Library/Formula/luarocks.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'Library/Formula/luarocks.rb') diff --git a/Library/Formula/luarocks.rb b/Library/Formula/luarocks.rb index 2d581eeaf..8ac77a7d3 100644 --- a/Library/Formula/luarocks.rb +++ b/Library/Formula/luarocks.rb @@ -2,6 +2,7 @@ require 'formula' class Luarocks < Formula homepage 'http://luarocks.org' + revision 1 stable do url 'http://luarocks.org/releases/luarocks-2.1.2.tar.gz' @@ -18,15 +19,15 @@ class Luarocks < Formula head 'https://github.com/keplerproject/luarocks.git' option 'with-luajit', 'Use LuaJIT instead of the stock Lua' - option 'with-lua52', 'Use Lua 5.2 instead of the stock Lua' + option 'with-lua51', 'Use Lua 5.1 instead of the stock Lua' if build.with? "luajit" depends_on 'luajit' # luajit depends internally on lua being installed # and is only 5.1 compatible, see #25954 - depends_on 'lua' - elsif build.with? "lua52" - depends_on 'lua52' + depends_on 'lua51' + elsif build.with? "lua51" + depends_on 'lua51' else depends_on 'lua' end -- cgit v1.2.3