aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/lua.rb
AgeCommit message (Collapse)Author
2011-12-24Add option for advanced readline support in LuaPeter Aronoff
Lua can be patched to provide better readline support.[1] On OSX the patch will use libedit. I am new to Lua, so I can't say how popular this patch is, but it builds cleanly and easily with Homebrew, and I'm already finding that it makes Lua's REPL much more friendly. [1] See http://lua-users.org/wiki/LuaPowerPatches, under 'Advanced readline support'. Closes #9255. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2011-12-09lua: use correct install name when generating dylibJack Nagel
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-15Lua: Ensure liblua.dylib is createdPop Qvarnstròˆm
Adding versionless soft link in INSTALL_LIB to allow linking with -llua (see homebrew issue #6350 for an example) (Related to name change in commit 9228a05f98). Fixes #7642. Fixes #6648. Closes #7561. Closes #7517. Closes #6235. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2011-09-02Don't fails_with_llvm if MacOS.lion?Max Howell
Not sure how I failed so badly at logic. This should be rewritten so that the build info has a tested MacOS version too. However it seems unlikely that the same LLVM versions on different platforms would have different compile errors. So we'll risk it, and it'll be informative for us too.
2011-09-01LUA builds with LLVMMax Howell
Closes #7360.
2011-08-31lua: install a dylib rather than a static liblua.Gary V. Vaughan
Although other loadable lua modules (such as those from luarocks) should not link against even a dynamic liblua and tie themselves to a particular release and runtime (e.g. breaking luajit capability): Having a statically linked non-pic liblua in the lua binary can and does cause hard to track memory allocation failure aborts due to some minutae of the way '-bundle -undefined dynamic_lookup' objects dlopened by the interpreter interact with the symbols resolved in the static binary. The solution is to always build and install liblua.dylib. It appears that this issue is confined to Snow Leopard and/or the version of gcc it ships with. This thread on the lua list contains the explanation and patch: http://lua-users.org/lists/lua-l/2009-10/msg00145.html Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-08-05Make luarocks "just work" with luaMax Howell
Fixes #5735. Our default install now doesn't make `/usr/local` group writable in an attempt to "play nicely", this caused luarocks to refuse to install anything because it would assume a non-writable prefix would mean it couldn't write any files. Which is an incorrect check since it only installs files to `prefix/lib`. So the check is removed with a patch if Homebrew is installed to `/usr/local`.
2011-03-25Update fails_with_llvm in formulaeAdam Vandenberg
2011-03-18Lua 5.1.4 patch-level 3Adam Vandenberg
Also, mark lua as "not working with LLVM". This is not strictly true, as Lua itself will compile with llvm, but other software linking to lua (such as gnuplot) may then fail to link. So to be safe, flag Lua itself.
2011-03-12Use ruby style for inheritance.Adam Vandenberg
2010-12-26lua: use safe_system for calling patchCamillo Lugaresi
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-08-10Update formulae to use ENV.cflagsAdam Vandenberg
2010-08-07Update formulae for version 0.7Adam Vandenberg
* Use new "url" features * Use keg_only DSL * Use "skip_clean :all" DSL * Whitespace and style cleanups * Make bash invocations less silly * Use new man2-man8 helpers * Remove "FileUtils." since it is included in Formula * Use real names for deps instead of aliases * ENV.x11 now updates path, so remove that from individual brews
2010-07-16Fix lua.pcAdam Vandenberg
Fixes #1876
2010-06-29lua - don't strip symbolsAdam Vandenberg
2010-06-23Simplify Lua brewAdam Vandenberg
* Replace the wodgy patch with use of inreplace and ENV vars. * Keep the (initially empty) share/lua and lib/lua folders around, so that lua package managers can put modules there.
2010-03-16Remove modification of lua man page location.Ali Asad Lotia
The man page was being installed in #{prefix}/share/share/man. The default value in the makefile installs to #{prefix}/share/man which is fine. I removed the "inreplace" block that changes the location from the default. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-02-21Use more inreplace features.Adam Vandenberg
Update formulas to make more idiomatic use of "inreplace", including its new ability to take a list of files to act on.
2009-12-17Update Lua to install pkg-config info.Adam Vandenberg
2009-12-12Reformat lua formula.Adam Vandenberg
2009-10-15s/require 'brewkit'/require 'formula'/gMax Howell
brewkit.rb changes ENV destructively, so lets not do that everytime a formula is required. Now it's possible for other tools to require a formula description without worrying about side-effects.
2009-09-30Fix the Lua formula to properly load libraries installed in HOMEBREW_PREFIXJames Whitehead II
2009-09-16Default to patch level 1Max Howell
Having gone through our patches it's clear that p1 is more standard. Also fixed a bug where returning DATA outside of an array would fail to patch.
2009-09-16Use __END__ patch rather than github gistMax Howell
Also there was seemingly some bug where if you didn't read the pipe for the patch commmand the exit status was non-zero.
2009-09-16Fix up Lua formula a bitBen Alpert
2009-09-01Lua formulaSean Wolfe
Lua is a powerful, fast, lightweight, embeddable scripting language.