From da60f365021188bb096b28c5c1a5d9941ba72cdd Mon Sep 17 00:00:00 2001 From: Luis Felipe Strano Moraes Date: Mon, 31 Oct 2011 17:19:03 -0200 Subject: 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 --- Library/Formula/noweb.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Library') 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 -- cgit v1.2.3