-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update version number, switch to cmake
Signed-off-by: Marcel Müller <[email protected]>
- Loading branch information
Showing
1 changed file
with
8 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
class Crest < Formula | ||
desc "Conformer-Rotamer Ensemble Sampling Tool" | ||
homepage "https://xtb-docs.readthedocs.io/en/latest/crest.html" | ||
url "https://github.com/grimme-lab/crest/archive/refs/tags/v2.12.tar.gz" | ||
sha256 "390f0ac0aedafbd6bb75974fcffefe7e0232ad6c4ea0ab4f1a77e656a3ce263d" | ||
url "https://github.com/crest-lab/crest/archive/refs/tags/v3.0.2.tar.gz" | ||
sha256 "f5d00d41c18a6f999ec8c890aa56d4b7ac8b1bf52a8c6d48c1d151c0126f7793" | ||
license "LGPL-3.0-or-later" | ||
revision 1 | ||
|
||
bottle do | ||
root_url "https://github.com/grimme-lab/homebrew-qc/releases/download/crest-2.12_1" | ||
|
@@ -14,11 +13,12 @@ class Crest < Formula | |
end | ||
|
||
depends_on "asciidoctor" => :build | ||
depends_on "meson" => :build | ||
depends_on "cmake" => :build | ||
depends_on "ninja" => :build | ||
depends_on "pkg-config" => :build | ||
depends_on "gcc" | ||
depends_on "openblas" | ||
depends_on "tblite" | ||
depends_on "xtb" | ||
fails_with gcc: "4" | ||
fails_with gcc: "5" | ||
|
@@ -28,13 +28,10 @@ class Crest < Formula | |
|
||
def install | ||
Check failure on line 29 in Formula/crest.rb
|
||
ENV.fortran | ||
meson_args = std_meson_args | ||
meson_args << "-Dla_backend=openblas" | ||
meson_args << "-Dfortran_args=-ffree-line-length-none" | ||
meson_args << "-Dfortran_link_args=-Wl,-stack_size,0x1000000" if OS.mac? | ||
system "meson", "setup", "_build", *meson_args | ||
system "meson", "compile", "-C", "_build" | ||
system "meson", "install", "-C", "_build", "--no-rebuild" | ||
system "cmake", "-B", "_build", "-GNinja", *std_cmake_args | ||
system "ninja", "-C", "_build" | ||
system "ctest", "-C", "_build", "--output-on-failure", "--parallel", "1", "-R", "'^crest/'" | ||
system "ninja", "-C", "_build", "install" | ||
end | ||
|
||
test do | ||
|