Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 14 additions & 42 deletions Formula/b/bashdb.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
class Bashdb < Formula
desc "Bash shell debugger"
homepage "https://bashdb.sourceforge.net/"
url "https://downloads.sourceforge.net/project/bashdb/bashdb/5.0-1.1.2/bashdb-5.0-1.1.2.tar.bz2"
version "5.0-1.1.2"
sha256 "30176d2ad28c5b00b2e2d21c5ea1aef8fbaf40a8f9d9f723c67c60531f3b7330"
url "https://downloads.sourceforge.net/project/bashdb/bashdb/5.2-1.2.0/bashdb-5.2-1.2.0.tar.bz2"
version "5.2-1.2.0"
sha256 "96fe0c8ffc12bc478c9dc41bb349ae85135da71b692069b8b7f62b27967ce534"
license "GPL-2.0-or-later"

# We check the "bashdb" directory page because the bashdb project contains
Expand All @@ -15,29 +15,24 @@ class Bashdb < Formula
strategy :page_match
end

no_autobump! because: :requires_manual_review
no_autobump! because: :incompatible_version_format

bottle do
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_sequoia: "8f2ec4abf07b97ccf17dd28f503864ff00ea05049a9b844de637612b85478aa7"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "8f2ec4abf07b97ccf17dd28f503864ff00ea05049a9b844de637612b85478aa7"
sha256 cellar: :any_skip_relocation, arm64_ventura: "8f2ec4abf07b97ccf17dd28f503864ff00ea05049a9b844de637612b85478aa7"
sha256 cellar: :any_skip_relocation, sonoma: "a66264c4831ecc61cf6ea6fbebfa335cf2152742017132ca9309068a0870b8ac"
sha256 cellar: :any_skip_relocation, ventura: "a66264c4831ecc61cf6ea6fbebfa335cf2152742017132ca9309068a0870b8ac"
sha256 cellar: :any_skip_relocation, arm64_linux: "1c3880ed9494d5dbe3a1dbebf971e66fbdf4edabdad128cc44ece337d906c28c"
sha256 cellar: :any_skip_relocation, x86_64_linux: "8f2ec4abf07b97ccf17dd28f503864ff00ea05049a9b844de637612b85478aa7"
sha256 cellar: :any_skip_relocation, arm64_sequoia: "2aedb1af38194b056e6f3a31ff73c2995782f41d714955991a5d749abe53eb14"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "2aedb1af38194b056e6f3a31ff73c2995782f41d714955991a5d749abe53eb14"
sha256 cellar: :any_skip_relocation, arm64_ventura: "2aedb1af38194b056e6f3a31ff73c2995782f41d714955991a5d749abe53eb14"
sha256 cellar: :any_skip_relocation, sonoma: "ce33c2ad50ddabd3cbff0c1a2b6e0f9ebaf8ff28609df48fafd6d7e8e1c8962d"
sha256 cellar: :any_skip_relocation, ventura: "ce33c2ad50ddabd3cbff0c1a2b6e0f9ebaf8ff28609df48fafd6d7e8e1c8962d"
sha256 cellar: :any_skip_relocation, arm64_linux: "2aedb1af38194b056e6f3a31ff73c2995782f41d714955991a5d749abe53eb14"
sha256 cellar: :any_skip_relocation, x86_64_linux: "2aedb1af38194b056e6f3a31ff73c2995782f41d714955991a5d749abe53eb14"
end

depends_on "autoconf" => :build # due to patch
depends_on "automake" => :build # due to patch
depends_on "bash"

# Bypass error with Bash 5.1: "error: This package is only known to work with Bash 5.0"
# Upstream ref: https://sourceforge.net/p/bashdb/code/ci/6daffb5c7337620b429f5e94c282b75a0777fc82/
patch :DATA

def install
system "autoreconf", "--force", "--install", "--verbose"
# Update configure to support Bash 5.3 by replacing `'5.2' | '5.0' | '5.1'`
inreplace "configure", /(?:'5\.\d+'(?:\s+\|\s+)?)+/, "'#{Formula["bash"].version.major_minor}'"

system "./configure", "--with-bash=#{HOMEBREW_PREFIX}/bin/bash", *std_configure_args
system "make", "install"
end
Expand All @@ -46,26 +41,3 @@ def install
assert_match version.to_s, pipe_output("#{bin}/bashdb --version 2>&1")
end
end

__END__
--- a/configure.ac
+++ b/configure.ac
@@ -107,7 +107,7 @@
[bash_minor=`$SH_PROG -c 'echo ${BASH_VERSINFO[1]}'`]
bash_5_or_greater=no
case "${bash_major}.${bash_minor}" in
- 'OK_BASH_VERS' | '5.0')
+ 'OK_BASH_VERS' | '5.0' | '5.1' | '5.2')
bash_5_or_greater=yes
;;
*)
@@ -118,7 +118,8 @@

AC_ARG_WITH(dbg-main, AC_HELP_STRING([--with-dbg-main],
[location of dbg-main.sh]),
- DBGR_MAIN=$withval)
+ [DBGR_MAIN=$withval]
+ [DBGR_MAIN=${ac_default_prefix/prefix}/bashdb/bashdb-main.inc])
AC_SUBST(DBGR_MAIN)

mydir=$(dirname $0)
Loading