diff --git a/Formula/soci.rb b/Formula/soci.rb index 4526655d070..c6add258f73 100644 --- a/Formula/soci.rb +++ b/Formula/soci.rb @@ -21,10 +21,6 @@ class Soci < Formula depends_on "boost" => [:build, :optional] depends_on "sqlite" if MacOS.version <= :snow_leopard - def translate(a) - (a == "pg") ? "postgresql" : a - end - fails_with :clang do build 421 cause "Template oddities" @@ -33,9 +29,10 @@ class Soci < Formula def install args = std_cmake_args + %w[.. -DWITH_SQLITE3:BOOL=ON] - %w[boost mysql oracle odbc pg].each do |a| - bool = build.with?(a) ? "ON" : "OFF" - args << "-DWITH_#{translate(a).upcase}:BOOL=#{bool}" + %w[boost mysql oracle odbc pg].each do |arg| + arg_var = (arg == "pg") ? "postgresql" : arg + bool = build.with?(arg) ? "ON" : "OFF" + args << "-DWITH_#{arg_var.upcase}:BOOL=#{bool}" end mkdir "build" do