INNER CODE UNIT · Ruby
args
davidchall/homebrew-hep · Formula/apfel.rb:29
args = %W[
-DCMAKE_INSTALL_PREFIX=#{prefix}
-DAPFEL_Python_SITEARCH=#{prefix/Language::Python.site_packages(python)}
]
system "cmake", buildpath, *args
system "make"
system "make", "test" if build.with? "test"
system "make", "install"
end
end
test do
assert_equal prefix.to_s, shell_output(bin/"apfel-config --prefix").strip
system Formula["python@3.10"].opt_bin/python, "-c", "import apfel"
end
end