Skip to content

Commit

Permalink
Merge pull request #169885 from Homebrew/spades-newer-head
Browse files Browse the repository at this point in the history
spades: switch to next branch for HEAD
  • Loading branch information
chenrui333 authored Apr 23, 2024
2 parents 20b76ff + 76ac2cd commit 9278faa
Showing 1 changed file with 25 additions and 12 deletions.
37 changes: 25 additions & 12 deletions Formula/s/spades.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,24 @@ class Spades < Formula

desc "De novo genome sequence assembly"
homepage "https://github.com/ablab/spades"
url "https://github.com/ablab/spades/releases/download/v3.15.5/SPAdes-3.15.5.tar.gz"
sha256 "155c3640d571f2e7b19a05031d1fd0d19bd82df785d38870fb93bd241b12bbfa"
license "GPL-2.0-only"
head "https://github.com/ablab/spades.git", branch: "spades_#{version}"

# TODO: Remove stable dependencies and fails_with in the next release.
# Instead, the head dependencies should be used everywhere.
stable do
url "https://github.com/ablab/spades/releases/download/v3.15.5/SPAdes-3.15.5.tar.gz"
sha256 "155c3640d571f2e7b19a05031d1fd0d19bd82df785d38870fb93bd241b12bbfa"

depends_on "python-setuptools"

on_macos do
depends_on "gcc"
end

fails_with :clang do
cause "fails to link with recent `libomp`"
end
end

livecheck do
url :stable
Expand All @@ -21,27 +35,26 @@ class Spades < Formula
sha256 cellar: :any_skip_relocation, x86_64_linux: "3889b1e2c9a0a3f08f9e478cf370e078524fd2155150af7431866f4fca7c0557"
end

head do
url "https://github.com/ablab/spades.git", branch: "next"

on_macos do
depends_on "libomp"
end
end

depends_on "cmake" => :build
depends_on "python-setuptools"
depends_on "[email protected]"

uses_from_macos "bzip2"
uses_from_macos "ncurses"
uses_from_macos "zlib"

on_macos do
depends_on "gcc"
end

on_linux do
depends_on "jemalloc"
depends_on "readline"
end

fails_with :clang do
cause "fails to link with recent `libomp`"
end

def install
system "cmake", "-S", "src", "-B", "build", *std_cmake_args
system "cmake", "--build", "build"
Expand Down

0 comments on commit 9278faa

Please sign in to comment.