Skip to content

Commit

Permalink
add tblite dependency
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Müller <[email protected]>
  • Loading branch information
marcelmbn committed Nov 21, 2024
1 parent f66ed39 commit 852eac2
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions Formula/tblite.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
class Tblite < Formula
desc "Light-weight tight-binding framework"
homepage "https://github.com/tblite/tblite"
url "https://github.com/tblite/tblite/archive/refs/tags/v0.4.0.tar.gz"
sha256 "c4a67dfbe04827095fd7598183e076fa3017a5a475c4f90fd28e78992dc19ea7"
license "LGPL-3.0-or-later"

bottle do
root_url "https://github.com/grimme-lab/homebrew-qc/releases/download/tblite-0.3.0"
sha256 cellar: :any, monterey: "765a780985e332058a0288a6f22623ba06d07115bce7dc8af29037bcb5e92e1a"
sha256 cellar: :any, big_sur: "df658b218a4dbb132f190447638e3fc15f7d9c001eb576e80c13ea46e628274e"
sha256 x86_64_linux: "d07351e809391edca09133abb2d34ff3cf866b3b00d34ed5dc353dc04dc1bdb3"
end

depends_on "asciidoctor" => :build
depends_on "meson" => :build
depends_on "ninja" => :build
depends_on "pkg-config" => :build
depends_on "gcc"
depends_on "openblas"
depends_on "mctc-lib"

Check failure on line 21 in Formula/tblite.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-14)

FormulaAudit/DependencyOrder: dependency "mctc-lib" (line 21) should be put before dependency "openblas" (line 26)

Check failure on line 21 in Formula/tblite.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-15)

FormulaAudit/DependencyOrder: dependency "mctc-lib" (line 21) should be put before dependency "openblas" (line 26)

Check failure on line 21 in Formula/tblite.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

FormulaAudit/DependencyOrder: dependency "mctc-lib" (line 21) should be put before dependency "openblas" (line 26)

Check failure on line 21 in Formula/tblite.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-24.04)

FormulaAudit/DependencyOrder: dependency "mctc-lib" (line 21) should be put before dependency "openblas" (line 26)
depends_on "dftd4"

Check failure on line 22 in Formula/tblite.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-14)

FormulaAudit/DependencyOrder: dependency "dftd4" (line 22) should be put before dependency "openblas" (line 26)

Check failure on line 22 in Formula/tblite.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-15)

FormulaAudit/DependencyOrder: dependency "dftd4" (line 22) should be put before dependency "openblas" (line 26)

Check failure on line 22 in Formula/tblite.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

FormulaAudit/DependencyOrder: dependency "dftd4" (line 22) should be put before dependency "openblas" (line 26)

Check failure on line 22 in Formula/tblite.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-24.04)

FormulaAudit/DependencyOrder: dependency "dftd4" (line 22) should be put before dependency "openblas" (line 26)
depends_on "mstore"

Check failure on line 23 in Formula/tblite.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-14)

FormulaAudit/DependencyOrder: dependency "mstore" (line 23) should be put before dependency "openblas" (line 26)

Check failure on line 23 in Formula/tblite.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-15)

FormulaAudit/DependencyOrder: dependency "mstore" (line 23) should be put before dependency "openblas" (line 26)

Check failure on line 23 in Formula/tblite.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

FormulaAudit/DependencyOrder: dependency "mstore" (line 23) should be put before dependency "openblas" (line 26)

Check failure on line 23 in Formula/tblite.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-24.04)

FormulaAudit/DependencyOrder: dependency "mstore" (line 23) should be put before dependency "openblas" (line 26)
depends_on "multicharge"

Check failure on line 24 in Formula/tblite.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-14)

FormulaAudit/DependencyOrder: dependency "multicharge" (line 24) should be put before dependency "openblas" (line 26)

Check failure on line 24 in Formula/tblite.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-15)

FormulaAudit/DependencyOrder: dependency "multicharge" (line 24) should be put before dependency "openblas" (line 26)

Check failure on line 24 in Formula/tblite.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

FormulaAudit/DependencyOrder: dependency "multicharge" (line 24) should be put before dependency "openblas" (line 26)

Check failure on line 24 in Formula/tblite.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-24.04)

FormulaAudit/DependencyOrder: dependency "multicharge" (line 24) should be put before dependency "openblas" (line 26)
depends_on "s-dftd3"
depends_on "toml-f"
fails_with gcc: "4"
fails_with gcc: "5"
fails_with gcc: "6"
fails_with gcc: "7"
fails_with :clang

def install
ENV.fortran
meson_args = std_meson_args
meson_args << "-Dlapack=openblas"
system "meson", "setup", "_build", *meson_args
system "meson", "compile", "-C", "_build"
system "meson", "test", "-C", "_build", "--no-rebuild", "--num-processes", "1"
system "meson", "install", "-C", "_build", "--no-rebuild"
end

test do
system "#{bin}/tblite", "--version"
end
end

0 comments on commit 852eac2

Please sign in to comment.