diff options
| author | IonuČ› G. Stan | 2013-11-13 20:02:22 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2013-11-13 18:46:53 -0800 |
| commit | 363ec19da788d491c883377737580ea436273d1e (patch) | |
| tree | fa386aa9dac5d64fe254fec9f14a4be659e7c5df /Library/Formula | |
| parent | de6371c2759fd02812daa1bbf16bc75945cec0a9 (diff) | |
| download | homebrew-363ec19da788d491c883377737580ea436273d1e.tar.bz2 | |
nu: fix build patches
Closes #24267.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/nu.rb | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/Library/Formula/nu.rb b/Library/Formula/nu.rb index ed253f20c..8fde4e59c 100644 --- a/Library/Formula/nu.rb +++ b/Library/Formula/nu.rb @@ -19,19 +19,9 @@ class Nu < Formula end def install - ENV['PREFIX'] = prefix - inreplace "Makefile" do |s| - cflags = s.get_make_var "CFLAGS" - s.change_make_var! "CFLAGS", "#{cflags} #{ENV.cppflags}" - # nu hardcodes its compiler paths to a location which no longer works - # This should work for both Xcode-only and CLT-only systems - s.gsub! "$(DEVROOT)/usr/bin/clang", ENV.cc - end - inreplace "Nukefile" do |s| - s.gsub!'"#{DEVROOT}/usr/bin/clang"', "\"#{ENV.cc}\"" case Hardware.cpu_type when :intel arch = :i386 @@ -39,9 +29,8 @@ class Nu < Formula arch = :ppc end arch = :x86_64 if arch == :i386 && Hardware.is_64_bit? - s.sub!(/^;;\(set @arch '\("i386"\)\)$/, "(set @arch '(\"#{arch}\"))") unless arch.nil? s.gsub!('(SH "sudo ', '(SH "') # don't use sudo to install - s.gsub!('#{@destdir}/Library/Frameworks', '#{@prefix}/Library/Frameworks') + s.gsub!('#{@destdir}/Library/Frameworks', '#{@prefix}/Frameworks') s.sub! /^;; source files$/, <<-EOS ;; source files (set @framework_install_path "#{frameworks}") |
