Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use ENV shortcut methods where applicable

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
  • Loading branch information...
commit be48f383bf0673ee23f5911c820422121f42076b 1 parent 417d788
@jacknagel jacknagel authored
View
2  Library/Formula/boost.rb
@@ -67,7 +67,7 @@ def install
# 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
View
2  Library/Formula/dcal.rb
@@ -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
View
2  Library/Formula/ddrescue.rb
@@ -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
View
2  Library/Formula/hllib.rb
@@ -36,7 +36,7 @@ def install
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
View
2  Library/Formula/jack.rb
@@ -14,7 +14,7 @@ def patches
end
def install
- ENV['LINKFLAGS'] = ENV['LDFLAGS']
+ ENV['LINKFLAGS'] = ENV.ldflags
system "./waf","configure","--prefix=#{prefix}"
system "./waf","build"
system "./waf","install"
View
2  Library/Formula/malbolge.rb
@@ -12,7 +12,7 @@ def patches
end
def install
- system "#{ENV['CXX']}", "malbolge.c", "-o", "malbolge"
+ system ENV.cxx, "malbolge.c", "-o", "malbolge"
bin.install 'malbolge'
end
end
View
2  Library/Formula/ocrad.rb
@@ -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
View
2  Library/Formula/pngrewrite.rb
@@ -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
View
2  Library/Formula/qt.rb
@@ -76,7 +76,7 @@ def install
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"
Please sign in to comment.
Something went wrong with that request. Please try again.