Skip to content

Commit dde2442

Browse files
committed
Fix RuboCop style: remove trailing whitespace and shorten long line
1 parent d0bb8c9 commit dde2442

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

packaging/homebrew/mfc.rb

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,13 @@ def install
5858
# Include both SDK include path and C++ header path for scons' configuration checks
5959
sdk_inc_path = "#{sdk_path}/usr/include"
6060
cxx_flags_with_includes = "#{ENV.fetch("CXXFLAGS", nil)} -I#{sdk_inc_path} -I#{cxx_inc_path}"
61-
61+
6262
# Run scons build - output config.log if it fails
63+
sundials_inc = Formula["sundials"].opt_include
64+
yamlcpp_inc = Formula["yaml-cpp"].opt_include
65+
sundials_lib = Formula["sundials"].opt_lib
66+
yamlcpp_lib = Formula["yaml-cpp"].opt_lib
67+
6368
unless system venv/"bin/python", "-m", "SCons", "build",
6469
"CC=#{ENV.cc}",
6570
"CXX=#{ENV.cxx}",
@@ -70,8 +75,8 @@ def install
7075
"system_sundials=y",
7176
"system_yamlcpp=y",
7277
"system_fmt=n",
73-
"extra_inc_dirs=#{cxx_inc_path}:#{Formula["sundials"].opt_include}:#{Formula["yaml-cpp"].opt_include}",
74-
"extra_lib_dirs=#{Formula["sundials"].opt_lib}:#{Formula["yaml-cpp"].opt_lib}",
78+
"extra_inc_dirs=#{cxx_inc_path}:#{sundials_inc}:#{yamlcpp_inc}",
79+
"extra_lib_dirs=#{sundials_lib}:#{yamlcpp_lib}",
7580
"prefix=#{libexec}/cantera",
7681
"python_cmd=#{venv}/bin/python",
7782
"-j#{ENV.make_jobs}"

0 commit comments

Comments
 (0)