Skip to content

Commit 887e819

Browse files
BrewTestBotcho-m
authored andcommitted
seqan3 3.4.1
1 parent 5fca2d5 commit 887e819

File tree

1 file changed

+7
-25
lines changed

1 file changed

+7
-25
lines changed

Formula/s/seqan3.rb

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class Seqan3 < Formula
22
desc "Modern C++ library for sequence analysis"
33
homepage "https://www.seqan.de"
4-
url "https://github.com/seqan/seqan3/archive/refs/tags/3.4.0.tar.gz"
5-
sha256 "8e000e6788f1e2ada071b36f64231d56f18e2d687ab4122d86cd3aefc6c87743"
4+
url "https://github.com/seqan/seqan3/releases/download/3.4.1/seqan3-3.4.1-Source.tar.xz"
5+
sha256 "23d061c2a898ea56ddc45ba731e0a80f2f59fefca90977cae3408bde6a8748a3"
66
license all_of: ["BSD-3-Clause", "CC-BY-4.0", "CC0-1.0", "MIT", "Zlib"]
77

88
bottle do
@@ -12,32 +12,12 @@ class Seqan3 < Formula
1212
depends_on "cereal" => :build
1313
depends_on "cmake" => :build
1414

15-
# https://github.com/seqan/seqan3?tab=readme-ov-file#dependencies
16-
fails_with :clang do
17-
build 1699
18-
cause "needs Clang 17 or newer"
19-
end
20-
21-
# https://github.com/seqan/seqan3?tab=readme-ov-file#dependencies
22-
fails_with :gcc do
23-
version "11"
24-
cause "needs GCC 12 or newer"
25-
end
26-
27-
resource "cmake-scripts" do
28-
url "https://github.com/seqan/cmake-scripts.git",
29-
revision: "d2a54ef555b6fc2d496a4c9506dbeb7cf899ce37"
15+
on_macos do
16+
depends_on "gcc" => :test if DevelopmentTools.clang_build_version < 1700
3017
end
3118

3219
def install
33-
resource("cmake-scripts").stage buildpath/"cmake-scripts"
34-
35-
args = %W[
36-
-DCPM_USE_LOCAL_PACKAGES=ON
37-
-DFETCHCONTENT_SOURCE_DIR_USE_CCACHE=#{buildpath}/cmake-scripts
38-
-DUSE_CCACHE=OFF
39-
]
40-
20+
args = %w[-DCPM_LOCAL_PACKAGES_ONLY=ON]
4121
system "cmake", "-S", ".", "-B", "build", *args, *std_cmake_args
4222
system "cmake", "--build", "build"
4323
system "cmake", "--install", "build"
@@ -52,6 +32,8 @@ def install
5232
return 0;
5333
}
5434
CPP
35+
36+
ENV.method("gcc-#{Formula["gcc"].version.major}").call if OS.mac? && DevelopmentTools.clang_build_version < 1700
5537
system ENV.cxx, "-std=c++23", "test.cpp", "-o", "test"
5638
system "./test"
5739
end

0 commit comments

Comments
 (0)