aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorIonuČ› G. Stan2013-11-13 20:02:22 +0200
committerAdam Vandenberg2013-11-13 18:46:53 -0800
commit363ec19da788d491c883377737580ea436273d1e (patch)
treefa386aa9dac5d64fe254fec9f14a4be659e7c5df /Library/Formula
parentde6371c2759fd02812daa1bbf16bc75945cec0a9 (diff)
downloadhomebrew-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.rb13
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}")