mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-06 22:24:12 -05:00
* Update buildsystems, update jq, add jq to core for arm. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Only report build options if they exist. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Fix overeager sed replacement. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * workflow debugging Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add logging for build errors. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Revert to function in each package file. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Update jq since it needs gcc14 to build. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add built packages for linux/386 to buildsystems * remove deprecated gfbgraph Signed-off-by: Satadru Pramanik <satadru@gmail.com> * fix git tag for gnome_maps Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Update llvm20 package file. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Update gnome_maps deps. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Abstract out buildsystems_methods reporting. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Keep LIBC_VERSION const from being empty. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Update crew_profile_base and libxml2 Signed-off-by: Satadru Pramanik <satadru@gmail.com> * clarify Signed-off-by: Satadru Pramanik <satadru@gmail.com> * lint Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Update libarchive Signed-off-by: Satadru Pramanik <satadru@gmail.com> * update libavif Signed-off-by: Satadru Pramanik <satadru@gmail.com> * more updates Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add libxml2 build comment. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add build comment to libarchive. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Don't warn for missing directory during package removal. Signed-off-by: Satadru Pramanik <satadru@gmail.com> --------- Signed-off-by: Satadru Pramanik <satadru@gmail.com> Co-authored-by: Satadru Pramanik <satadru@gmail.com> Co-authored-by: satmandu <satmandu@users.noreply.github.com>
49 lines
2.0 KiB
Ruby
49 lines
2.0 KiB
Ruby
require 'buildsystems/autotools'
|
|
|
|
class Bashdb < Autotools
|
|
description 'The Bash Debugger Project is a source-code debugger for bash that follows the gdb command syntax.'
|
|
homepage 'https://bashdb.sourceforge.net/'
|
|
version '5.0-1.1.2-1f1118d'
|
|
license 'GPL-2'
|
|
compatibility 'all'
|
|
source_url 'https://git.code.sf.net/p/bashdb/code'
|
|
git_hashtag '1f1118dd73f3d3d450d2b644b5b871d545ea0473'
|
|
binary_compression 'tar.zst'
|
|
|
|
binary_sha256({
|
|
aarch64: 'ed1f102778d653fca7f36933c0e7b0be6170c23b356613fccc3b4b772f134ed5',
|
|
armv7l: 'ed1f102778d653fca7f36933c0e7b0be6170c23b356613fccc3b4b772f134ed5',
|
|
i686: '70302e22dd1b703ed550c3a15366449f7a9e42b7c62a5cf370e598bf6dc64a17',
|
|
x86_64: '468e44a71a027b55dba4f996b5f4b7e548282933d30356f55a3c7ee1b89cdbcd'
|
|
})
|
|
|
|
def self.patch
|
|
# There is no way to programatically get the plaintext diff from a sourceforge pr, so we embed https://sourceforge.net/p/bashdb/code/merge-requests/11/ here.
|
|
File.write '11.patch', <<~EOF
|
|
diff --git a/configure.ac b/configure.ac
|
|
index 71cf2b7..eb59941 100644
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -107,7 +107,7 @@ bash_version=`$SH_PROG --version`
|
|
[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' | '5.1')
|
|
+ 'OK_BASH_VERS' | '5.0' | '5.1' | '5.2')
|
|
bash_5_or_greater=yes
|
|
;;
|
|
*)
|
|
EOF
|
|
system 'git apply 11.patch'
|
|
end
|
|
|
|
depends_on 'bash'
|
|
depends_on 'texinfo' => :build
|
|
|
|
# Setting --with-dbg-main works, but looking at configure.ac reveals that collaboration with upstream is probably required
|
|
# i.e. why does setting a variable described as "location of dbg-main.sh" to the location of bashdb-main.inc fix things?
|
|
# It seems like DBGR_MAIN is confused with BASHDB_MAIN, among other things.
|
|
autotools_configure_options "--with-dbg-main=#{CREW_PREFIX}/share/bashdb-main.inc --with-bash=#{CREW_PREFIX}/bin/bash"
|
|
run_tests
|
|
end
|