| Age | Commit message (Collapse) | Author |
|
|
|
This PR ‘pythonises’ the Lua setup. There have been requests for us to
do this for a while, and it’s a good idea - It’s just taken me a while
to finish ironing out.
The individual luarocks formula dies entirely, in favour of luarocks
being vendored into the two Lua formulae in Homebrew/homebrew with
versioned trees.
This provides roughly the same experience we deliver with pip
and co from Python.
Luajit is not yet supported, because it’s being a pain, but Luajit
support will land in the semi-near future, as will support for Lua53
in Versions. All 4 installations can sit side-by-side with no non-binary
conflict. Binary conflict is handled roughly the same way Python
handles it sadly, which is regrettable but presently unavoidable.
|
|
|
|
Fix some issues with luarocks looking for the wrong version and cleanup
the lua and lua51 formulae.
Closes #32354.
|
|
1) Fixes the :universal build.
2) Includes the completion patch that we previously killed.
3) Includes the sigaction patch that Lua52 never carried but we carried
for Lua51, so presumably want to here as well.
4) Closes #32437
Closes #32437.
Closes #32460.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
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.
|
|
|
|
Closes #27275.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
|
|
|
|
Closes #26646.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
|
|
|
|
* update option decls to with/without
* apply sigaction powerpatch by default, unless --without-sigaction
is passed.
Closes #20679.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
|
|
Add sigaction powerpatch option.
Closes #20657.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
|
|
Closes #16213.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
|
|
Closes #16888.
|
|
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
Closes #14974.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
Closes #14512.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
|
|
|
|
|
|
This is needed for Xcode-only installations, since the LDFLAGS matter.
Closes #12856.
Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
|
|
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
Closes #10790.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
|
|
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>
|
|
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
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>
|
|
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.
|
|
Closes #7360.
|
|
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>
|
|
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`.
|
|
|
|
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.
|
|
|
|
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
|
|
|
|
* 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
|
|
Fixes #1876
|
|
|
|
* 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.
|
|
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>
|
|
Update formulas to make more idiomatic use of "inreplace", including
its new ability to take a list of files to act on.
|
|
|
|
|
|
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.
|
|
|
|
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.
|
|
Also there was seemingly some bug where if you didn't read the pipe for the
patch commmand the exit status was non-zero.
|
|
|
|
Lua is a powerful, fast, lightweight, embeddable scripting language.
|