aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorLuis Felipe Strano Moraes2011-10-31 17:19:03 -0200
committerJack Nagel2011-11-07 16:51:58 -0600
commitda60f365021188bb096b28c5c1a5d9941ba72cdd (patch)
tree20f8e2f0893dee12ccd235cf39a861b520a176ca /Library
parentbda7046198446a1b035eca2c0cc1e915eb1bc434 (diff)
downloadhomebrew-da60f365021188bb096b28c5c1a5d9941ba72cdd.tar.bz2
noweb: Lion compatibility fixes
- Included CFLAGS needed to avoid conflict between getline defined by noweb and the one available on MacOSX by default - Call the awkname script so it replaces the awk version used to one that exists by default in MacOSX. Closes #8395. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/noweb.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Formula/noweb.rb b/Library/Formula/noweb.rb
index 6fb42820e..2dee5d0db 100644
--- a/Library/Formula/noweb.rb
+++ b/Library/Formula/noweb.rb
@@ -10,13 +10,15 @@ class Noweb < Formula
def install
Dir.chdir "src" do
- system "make LIBSRC=icon ICONC=icont"
+ system "bash", "awkname", "awk"
+ system "make LIBSRC=icon ICONC=icont CFLAGS='-U_POSIX_C_SOURCE -D_POSIX_C_SOURCE=1'"
kpse = `which kpsewhich`
if kpse == ''
ohai 'No TeX installation found. Installing TeX support files in the noweb Cellar.'
texmf = "#{prefix}"
else
+ ohai 'TeX installation found. Installing TeX support files there might fail if your user does not have permission'
texmf = "`kpsewhich -var-value=TEXMFLOCAL`"
end