Commit Graph

30 Commits (7f6549a24b3f76c3c90c5e964f346ed4eb7dda86)

Author SHA1 Message Date
Adam Vandenberg be8896cffa lua: style nit 2012-06-15 07:51:15 -07:00
samueljohn 45bb14af8b lua: Using our LDFLAGS
This is needed for Xcode-only installations, since the LDFLAGS matter.

Closes Homebrew/homebrew#12856.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2012-06-15 09:31:25 -05:00
Jack Nagel 64afeec6d4 Use new fails_with DSL syntax
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-01 12:39:59 -05:00
Luke Campbell 29a9135a58 Lua: take 5.1.4-3 patch from MacPorts
Closes Homebrew/homebrew#10790.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-03-08 19:50:01 -08:00
Peter Aronoff 5b4e5c4afc Add option for advanced readline support in Lua
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 Homebrew/homebrew#9255.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2011-12-24 18:00:55 -06:00
Jack Nagel 0337d89f9e lua: use correct install name when generating dylib
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-09 17:21:43 -06:00
Pop Qvarnström c73ffcc32b Lua: Ensure liblua.dylib is created
Adding versionless soft link in INSTALL_LIB to allow linking with -llua (see
homebrew issue Homebrew/homebrew#6350 for an example) (Related to name change in commit
9228a05f98).

Fixes Homebrew/homebrew#7642.
Fixes Homebrew/homebrew#6648.
Closes Homebrew/homebrew#7561.
Closes Homebrew/homebrew#7517.
Closes Homebrew/homebrew#6235.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2011-09-15 12:14:19 -07:00
Max Howell 6d5730fa2c 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 a7de7cb6c3 LUA builds with LLVM
Closes Homebrew/homebrew#7360.
2011-09-01 12:52:56 +01:00
Gary V. Vaughan 665162f7a1 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 a94bef9d63 Make luarocks "just work" with lua
Fixes Homebrew/homebrew#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 99b61b9a23 Update fails_with_llvm in formulae 2011-03-25 23:31:30 -07:00
Adam Vandenberg 8fd7ea234c 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 4147b05c57 Use ruby style for inheritance. 2011-03-12 11:55:09 -08:00
Camillo Lugaresi 5d1a762a51 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 620317ca6d Update formulae to use ENV.cflags 2010-08-10 08:30:19 -07:00
Adam Vandenberg 7bd947eb0b 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 ac31e4e60a Fix lua.pc
Fixes Homebrew/homebrew#1876
2010-07-16 14:19:14 -07:00
Adam Vandenberg 2d5f879f59 lua - don't strip symbols 2010-06-29 13:17:47 -07:00
Adam Vandenberg f79432fd32 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 02ffa24ae9 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 193a78de04 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 33fc9469c6 Update Lua to install pkg-config info. 2009-12-17 19:19:24 +00:00
Adam Vandenberg 8685725011 Reformat lua formula. 2009-12-12 16:24:18 +00:00
Max Howell 61b2307139 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 1b3a9df8a2 Fix the Lua formula to properly load libraries installed in HOMEBREW_PREFIX 2009-09-30 01:24:36 +01:00
Max Howell 3b4dac6ddd 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 93b192046f 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 a3a51a4d02 Fix up Lua formula a bit 2009-09-16 14:49:06 +01:00
Sean Wolfe 3d86eaf9e6 Lua formula
Lua is a powerful, fast, lightweight, embeddable scripting language.
2009-09-01 10:32:34 +01:00