50 lines
1.7 KiB
Ruby
50 lines
1.7 KiB
Ruby
class RaxmlNg < Formula
|
|
desc "RAxML Next Generation: faster, easier-to-use and more flexible"
|
|
homepage "https://sco.h-its.org/exelixis/web/software/raxml/"
|
|
url "https://github.com/amkozlov/raxml-ng.git",
|
|
tag: "1.1.0",
|
|
revision: "9b8150852c21fd0caa764752797e17382fc03aa0"
|
|
license "AGPL-3.0-or-later"
|
|
|
|
bottle do
|
|
sha256 cellar: :any, monterey: "bc14e35183077c0a9bf381aea75f73d08e9acbf3c02e8285c558c4dc1ea4f42b"
|
|
sha256 cellar: :any, big_sur: "fff2eeb8aa6e98b22debfb85bbc87ada14144223ca252e5ece4a7197c1771adf"
|
|
sha256 cellar: :any, catalina: "14a55e52a083ded0b9c9c35778c73303f1d968a9826ac2049457a319ae823c5d"
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "17a1c0ffcb195cdcf3d3ed4aa70f7de5b863452b3139e9b01851a3a25b939ef5"
|
|
end
|
|
|
|
depends_on "autoconf" => :build
|
|
depends_on "automake" => :build
|
|
depends_on "cmake" => :build
|
|
depends_on "libtool" => :build
|
|
depends_on "gmp"
|
|
depends_on "open-mpi"
|
|
|
|
uses_from_macos "bison" => :build
|
|
uses_from_macos "flex" => :build
|
|
|
|
resource "homebrew-example" do
|
|
url "https://sco.h-its.org/exelixis/resource/download/hands-on/dna.phy"
|
|
sha256 "c2adc42823313831b97af76b3b1503b84573f10d9d0d563be5815cde0effe0c2"
|
|
end
|
|
|
|
def install
|
|
args = std_cmake_args + ["-DUSE_GMP=ON"]
|
|
mkdir "build" do
|
|
system "cmake", "..", *args
|
|
system "make", "install"
|
|
end
|
|
mkdir "build_mpi" do
|
|
ENV["CC"] = "mpicc"
|
|
ENV["CXX"] = "mpicxx"
|
|
system "cmake", "..", *args, "-DUSE_MPI=ON", "-DRAXML_BINARY_NAME=raxml-ng-mpi"
|
|
system "make", "install"
|
|
end
|
|
end
|
|
|
|
test do
|
|
testpath.install resource("homebrew-example")
|
|
system "#{bin}/raxml-ng", "--msa", "dna.phy", "--start", "--model", "GTR"
|
|
end
|
|
end
|