aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2010-06-29 13:15:10 -0700
committerAdam Vandenberg2010-06-29 13:17:47 -0700
commita09ec5e2bbb4ebe7bd4b96a254bd5b4618b15dc4 (patch)
tree9546e91b9d6d6c91c7bd3376f67fbf2e55202a4d /Library/Formula
parent48f57002b66289bc9607f5ebd961fc6e821d437f (diff)
downloadhomebrew-a09ec5e2bbb4ebe7bd4b96a254bd5b4618b15dc4.tar.bz2
lua - don't strip symbols
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/lua.rb9
1 files changed, 3 insertions, 6 deletions
diff --git a/Library/Formula/lua.rb b/Library/Formula/lua.rb
index 696c5ac9b..657e3afa3 100644
--- a/Library/Formula/lua.rb
+++ b/Library/Formula/lua.rb
@@ -5,11 +5,8 @@ class Lua <Formula
homepage 'http://www.lua.org/'
md5 'd0870f2de55d59c1c8419f36e8fac150'
- # Don't skip share and lib folders; that's where
- # lua modules will get installed to.
- def skip_clean? path
- [share+'lua', share+'lua/5.1', lib+'lua', lib+'lua/5.1'].include? path
- end
+ # Skip cleaning both empty folders and bin/libs so external symbols still work.
+ def skip_clean? path; true; end
def install
# Use our CC/CFLAGS to compile.
@@ -24,7 +21,7 @@ class Lua <Formula
# Fix paths in the .pc
inreplace 'etc/lua.pc' do |s|
s.gsub! "prefix= /usr/local", "prefix=#{HOMEBREW_PREFIX}"
- s.gsub! "INSTALL_MAN= ${prefix}/man/man1", "INSTALL_MAN= ${prefix}/share/man/man1"
+ s.gsub! "INSTALL_MAN= ${prefix}/man/man1", "INSTALL_MAN= ${man1}"
end
# Apply patch-level 2