From c03cc2b60e066a40858c5d8b1855a06480a5a4e3 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Sat, 25 Jan 2025 10:55:47 +0000 Subject: [PATCH] diamond 2.1.11 diamond: add build patch Signed-off-by: Rui Chen --- Formula/d/diamond.rb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Formula/d/diamond.rb b/Formula/d/diamond.rb index 251b0bb408cf31..95902862446e1c 100644 --- a/Formula/d/diamond.rb +++ b/Formula/d/diamond.rb @@ -1,8 +1,8 @@ class Diamond < Formula desc "Accelerated BLAST compatible local sequence aligner" homepage "https://www.wsi.uni-tuebingen.de/lehrstuehle/algorithms-in-bioinformatics/software/diamond/" - url "https://github.com/bbuchfink/diamond/archive/refs/tags/v2.1.10.tar.gz" - sha256 "c6ede5df30d9d496af314e740964c35a0e358458d9c8d9b8dd517d69828d9981" + url "https://github.com/bbuchfink/diamond/archive/refs/tags/v2.1.11.tar.gz" + sha256 "e669e74ac4a7e45d86024a6b9bfda0642fabb02a8b6ce90a2ec7fb3aeb0f8233" license "GPL-3.0-or-later" bottle do @@ -18,6 +18,12 @@ class Diamond < Formula uses_from_macos "zlib" + # fix compile issue, upstream pr ref, https://github.com/bbuchfink/diamond/pull/852 + patch do + url "https://github.com/bbuchfink/diamond/commit/a50338f6033f55cbeb2db3526005f649a189c656.patch?full_index=1" + sha256 "67b2998afa133a77497dc2e928af488237d5d8d419bd916df893a318470fd49b" + end + def install system "cmake", "-S", ".", "-B", "build", *std_cmake_args system "cmake", "--build", "build"