Use ENV shortcut methods where applicable
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
7c648d9732
commit
5bd598db36
9 changed files with 9 additions and 9 deletions
|
@ -67,7 +67,7 @@ class Boost < Formula
|
|||
|
||||
# Force boost to compile using the appropriate GCC version
|
||||
open("user-config.jam", "a") do |file|
|
||||
file.write "using darwin : : #{ENV['CXX']} ;\n"
|
||||
file.write "using darwin : : #{ENV.cxx} ;\n"
|
||||
file.write "using mpi ;\n" if ARGV.include? '--with-mpi'
|
||||
end
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ class Dcal < Formula
|
|||
version '0.1.0'
|
||||
|
||||
def install
|
||||
system "#{ENV['CXX']}", "dcal.c", "-o", "dcal"
|
||||
system ENV.cxx, "dcal.c", "-o", "dcal"
|
||||
bin.install 'dcal'
|
||||
end
|
||||
end
|
||||
|
|
|
@ -9,7 +9,7 @@ class Ddrescue < Formula
|
|||
def install
|
||||
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
||||
"--prefix=#{prefix}",
|
||||
"CXX=#{ENV['CXX']}"
|
||||
"CXX=#{ENV.cxx}"
|
||||
system "make install"
|
||||
end
|
||||
end
|
||||
|
|
|
@ -36,7 +36,7 @@ class Hllib < Formula
|
|||
inreplace 'Main.c', 'HLExtract.exe', 'hlextract'
|
||||
# Make the binary build path and build
|
||||
bin.mkpath
|
||||
system ENV['CC'], 'Main.c', "-I#{include}", "-L#{lib}", '-lhl', '-o', bin+'hlextract'
|
||||
system ENV.cc, 'Main.c', "-I#{include}", "-L#{lib}", '-lhl', '-o', bin+'hlextract'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -14,7 +14,7 @@ class Jack < Formula
|
|||
end
|
||||
|
||||
def install
|
||||
ENV['LINKFLAGS'] = ENV['LDFLAGS']
|
||||
ENV['LINKFLAGS'] = ENV.ldflags
|
||||
system "./waf","configure","--prefix=#{prefix}"
|
||||
system "./waf","build"
|
||||
system "./waf","install"
|
||||
|
|
|
@ -12,7 +12,7 @@ class Malbolge < Formula
|
|||
end
|
||||
|
||||
def install
|
||||
system "#{ENV['CXX']}", "malbolge.c", "-o", "malbolge"
|
||||
system ENV.cxx, "malbolge.c", "-o", "malbolge"
|
||||
bin.install 'malbolge'
|
||||
end
|
||||
end
|
||||
|
|
|
@ -9,6 +9,6 @@ class Ocrad < Formula
|
|||
def install
|
||||
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
||||
"--prefix=#{prefix}"
|
||||
system "make", "install", "CXXFLAGS=#{ENV['CXXFLAGS']}"
|
||||
system "make", "install", "CXXFLAGS=#{ENV.cxxflags}"
|
||||
end
|
||||
end
|
||||
|
|
|
@ -7,7 +7,7 @@ class Pngrewrite < Formula
|
|||
|
||||
def install
|
||||
ENV.libpng
|
||||
system "#{ENV.cc} #{ENV['CFLAGS']} #{ENV['CPPFLAGS']} -o pngrewrite pngrewrite.c #{ENV['LDFLAGS']} -lpng"
|
||||
system "#{ENV.cc} #{ENV.cflags} #{ENV.cppflags} -o pngrewrite pngrewrite.c #{ENV.ldflags} -lpng"
|
||||
bin.install 'pngrewrite'
|
||||
end
|
||||
end
|
||||
|
|
|
@ -76,7 +76,7 @@ class Qt < Formula
|
|||
end
|
||||
|
||||
# Needed for Qt 4.8.1 due to attempting to link moc with gcc.
|
||||
ENV['LD'] = ENV['CXX']
|
||||
ENV['LD'] = ENV.cxx
|
||||
|
||||
system "./configure", *args
|
||||
system "make"
|
||||
|
|
Loading…
Reference in a new issue