Skip to content

Commit

Permalink
iqtree2 2.3.3 (#1671)
Browse files Browse the repository at this point in the history
  • Loading branch information
YoshitakaMo authored Apr 22, 2024
1 parent 5c4d8d8 commit 7b22d64
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions Formula/iqtree2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ class Iqtree2 < Formula
# cite Nguyen_2015: "https://doi.org/10.1093/molbev/msu300"
desc "Efficient phylogenomic software by maximum likelihood"
homepage "http://www.iqtree.org/"
url "https://github.com/Cibiv/IQ-TREE/archive/refs/tags/v2.0.7.tar.gz"
sha256 "e0c00c040c9dd448aa15b8e17964a414b86eaeb024bef0b13767fe0c68730ae5"
license "GPL-2.0"
# pull from git tag to get submodules
url "https://github.com/iqtree/iqtree2.git",
tag: "v.2.3.3",
revision: "dbd102a38662f6d2337f40b0064e26c6a6b3d3b0"
license "GPL-2.0-only"
head "https://github.com/iqtree/iqtree2.git", branch: "master"

bottle do
root_url "https://ghcr.io/v2/brewsci/bio"
Expand All @@ -14,19 +17,15 @@ class Iqtree2 < Formula

depends_on "boost" => :build
depends_on "cmake" => :build
depends_on "eigen" => :build # header only C++ library
depends_on "gsl" => :build # static linking
depends_on "gcc" if OS.mac? # needs openmp

depends_on "eigen" => :build
depends_on "gsl" => :build
depends_on "libomp" if OS.mac?
depends_on "llvm" if OS.mac?
uses_from_macos "zlib"

fails_with :clang # needs openmp

def install
# Should be fixed in 2.0.8
inreplace "CMakeLists.txt", "--target=x86_64-apple-macos10.7", "-mmacosx-version-min=10.7"

mkdir "build" do
ENV.append_path "PREFIX_PATH", buildpath/"lsd2"
system "cmake", "..", *std_cmake_args
system "make", "install"
end
Expand Down

0 comments on commit 7b22d64

Please sign in to comment.