Commit Graph
23 Commits
Author SHA1 Message Date
Max Howell b6aa338e6f Don't fails_with_llvm if MacOS.lion?
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-02 12:12:30 +01:00
Max Howell 677f1b391c LUA builds with LLVM
Closes #7360.
2011-09-01 12:52:56 +01:00
Gary V. Vaughan 9228a05f98 lua: install a dylib rather than a static liblua.
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-31 15:04:48 -07:00
Max Howell 8fc3cc59a3 Make luarocks "just work" with lua
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-08-05 13:55:25 +01:00
Adam Vandenberg f4a925da5a Update fails_with_llvm in formulae 2011-03-25 23:31:30 -07:00
Adam Vandenberg f7127a851f Lua 5.1.4 patch-level 3
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-18 21:18:15 -07:00
Adam Vandenberg 0476235ce0 Use ruby style for inheritance. 2011-03-12 11:55:09 -08:00
Camillo Lugaresi 1c271e0aab lua: use safe_system for calling patch
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-12-26 13:38:33 -08:00
Adam Vandenberg 29af47c81d Update formulae to use ENV.cflags 2010-08-10 08:30:19 -07:00
Adam Vandenberg d0efd9ee94 Update formulae for version 0.7
* 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-08-07 18:08:53 -07:00
Adam Vandenberg 5f6a9f510e Fix lua.pc
Fixes #1876
2010-07-16 14:19:14 -07:00
Adam Vandenberg a09ec5e2bb lua - don't strip symbols 2010-06-29 13:17:47 -07:00
Adam Vandenberg be4732ab40 Simplify Lua brew
* 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-06-23 12:10:40 -07:00
Ali Asad Lotia ab0a6f8a8c Remove modification of lua man page location.
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-03-16 20:08:38 -07:00
Adam Vandenberg aad4dc23ec Use more inreplace features.
Update formulas to make more idiomatic use of "inreplace", including
its new ability to take a list of files to act on.
2010-02-21 23:37:49 -08:00
Adam Vandenberg fa52de9bba Update Lua to install pkg-config info. 2009-12-17 19:19:24 +00:00
Adam Vandenberg 52600c0ef5 Reformat lua formula. 2009-12-12 16:24:18 +00:00
Max Howell a82e823935 s/require 'brewkit'/require 'formula'/g
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-10-15 16:48:03 +01:00
James Whitehead II ff6020ad93 Fix the Lua formula to properly load libraries installed in HOMEBREW_PREFIX 2009-09-30 01:24:36 +01:00
Max Howell 4fe374dafd Default to patch level 1
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-16 17:08:32 +01:00
Max Howell c8c2cb2dd3 Use __END__ patch rather than github gist
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-16 14:49:06 +01:00
Ben Alpert cfaf813b66 Fix up Lua formula a bit 2009-09-16 14:49:06 +01:00
Sean Wolfe 70518ce8ec Lua formula
Lua is a powerful, fast, lightweight, embeddable scripting language.
2009-09-01 10:32:34 +01:00