File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ class Nwchem < Formula
55 version "7.2.3"
66 sha256 "7788e6af9be8681e6384b8df4df5ac57d010b2c7aa50842d735c562d92f94c25"
77 license "ECL-2.0"
8- revision 1
8+ revision 2
99
1010 livecheck do
1111 url :stable
@@ -36,6 +36,10 @@ class Nwchem < Formula
3636
3737 uses_from_macos "libxcrypt"
3838
39+ on_macos do
40+ depends_on "libomp"
41+ end
42+
3943 # fix download url in build_dftd3a.sh, upstream pr ref, https://github.com/nwchemgit/nwchem/pull/1054
4044 patch do
4145 url "https://github.com/nwchemgit/nwchem/commit/65ce7726d9fa418f7c01665bebfc1e2181f15adf.patch?full_index=1"
@@ -46,6 +50,9 @@ def install
4650 pkgshare . install "QA"
4751
4852 cd "src" do
53+ # Workaround to link to LLVM OpenMP (libomp) with gfortran
54+ inreplace "config/makefile.h" , /(\b LDOPTIONS *\+ = *)-fopenmp$/ , "\\ 1-lomp" if OS . mac?
55+
4956 ( prefix /"etc" ) . mkdir
5057 ( prefix /"etc/nwchemrc" ) . write <<~EOS
5158 nwchem_basis_library #{ pkgshare } /libraries/
You can’t perform that action at this time.
0 commit comments