Skip to content

Commit f52a581

Browse files
authored
bali-phy: 4.0-beta17 (#1971)
1 parent f39d7b7 commit f52a581

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

Formula/bali-phy.rb

+19-8
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ class BaliPhy < Formula
44
desc "Bayesian co-estimation of phylogenies and multiple alignments"
55
homepage "https://www.bali-phy.org/"
66
url "https://github.com/bredelings/BAli-Phy.git",
7-
tag: "4.0-beta15",
8-
regision: "5ae1a597b6b594357b044bbab34920606084997e"
7+
tag: "4.0-beta17",
8+
regision: "33285a20bf37b12fa61344d36fb1668c850b43d0"
99
license "GPL-2.0-or-later"
1010
head "https://github.com/bredelings/BAli-Phy.git", branch: "master"
1111

@@ -30,14 +30,25 @@ class BaliPhy < Formula
3030
depends_on "cairo"
3131
depends_on "gcc" unless OS.mac? # for C++20
3232

33-
# C++20
34-
fails_with gcc: "5"
35-
fails_with gcc: "6"
36-
fails_with gcc: "7"
37-
fails_with gcc: "8"
38-
fails_with gcc: "9"
33+
on_macos do
34+
depends_on "llvm" if DevelopmentTools.clang_build_version <= 1500
35+
end
36+
37+
fails_with :clang do
38+
build 1500
39+
cause "Requires C++20 support"
40+
end
41+
42+
fails_with :gcc do
43+
version "11"
44+
cause "Requires C++20 support"
45+
end
3946

4047
def install
48+
ENV.llvm_clang if OS.mac? && DevelopmentTools.clang_build_version <= 1500
49+
ENV["CXX"] = Formula["llvm"].opt_bin/"clang++" if OS.mac? && DevelopmentTools.clang_build_version <= 1500
50+
ENV["BOOST_ROOT"] = Formula["boost"].opt_prefix
51+
4152
flags = %w[-C build install]
4253
system "meson", "build", "--prefix=#{prefix}", "--buildtype=release", "-Db_ndebug=true"
4354
system "ninja", *flags

0 commit comments

Comments
 (0)