packmol: avoid passing -march=native to gfortran

Closes #120723.

Signed-off-by: Rui Chen <rui@chenrui.dev>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
master
Michael Cho 2023-01-16 05:35:54 -08:00 committed by BrewTestBot
parent ca55650dec
commit 6f41be875b
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F
1 changed files with 4 additions and 1 deletions

View File

@ -24,9 +24,12 @@ class Packmol < Formula
end
def install
# Avoid passing -march=native to gfortran
inreplace "Makefile", "-march=native", ENV["HOMEBREW_OPTFLAGS"] if build.bottle?
system "./configure"
system "make"
bin.install("packmol")
bin.install "packmol"
pkgshare.install "solvate.tcl"
(pkgshare/"examples").install resource("examples")
end