Files
chromebrew/packages/bashdb.rb
Maximilian Downey Twiss ce72f28f24 Update homepages of packages from a-c (#9915)
* Update acpica homepage

* Update aide homepage

* Update aliyun_cli homepage

* Update alpine homepage

* Update anagram source_url

* Update ant homepage

* Update apktool homepage

* Update appres homepage

* Update appstream homepage

* Update apr_iconv homepage

* Update apr_util homepage

* Update armadillo homepage

* Update asciidoc homepage

* Update at_spi2_core homepage

* Update avahi homepage

* Update aview homepage

* Update babl homepage

* Update balena_etcher homepage

* Update banner homepage

* Update bashdb homepage

* Update bdftopcf homepage

* Update bind homepage

* Update bitmap homepage

* Update bitpocket homepage

* Update bluefish homepage

* Update bmon homepage

* Update brackets homepage

* Update broadway homepage

* Update broot homepage

* Update byobu homepage

* Update c_ares homepage

* Update calcurse homepage

* Update ccache homepage

* Update cf homepage

* Update chrome homepage

* Update chrpath homepage

* Update ck4up homepage

* Update ckermit homepage
2024-06-06 20:31:42 -05:00

54 lines
1.8 KiB
Ruby

require 'package'
class Bashdb < Package
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-abac'
license 'GPL-2'
compatibility 'all'
source_url 'SKIP'
binary_compression 'tar.xz'
binary_sha256({
aarch64: 'e94ee67c7eb1e025301f2ab16f5588a1903816fccb6b965e83e28e8a4e13c146',
armv7l: 'e94ee67c7eb1e025301f2ab16f5588a1903816fccb6b965e83e28e8a4e13c146',
i686: '2642a9fcf547fda5b85ce5472f2637f897b92e162b0955e6113080047895f99e',
x86_64: '83b0ce54ea38ea941dba8bdbb5ef5f41884fa6abb5faaed5eae00064989f5ae3'
})
depends_on 'bash'
depends_on 'texinfo' => :build
def self.build
# No releases yet for Bash 5.1 compatible bashdb, so need git version.
# Turn off git warnings.
system 'git config --global advice.detachedHead false'
system 'git config --global init.defaultBranch main'
@git_dir = 'bashdb_git'
@git_hash = 'abac8ee0db03a62d9dc360640e9e5b9648a8fc12'
@git_url = 'https://git.code.sf.net/p/bashdb/code'
FileUtils.rm_rf(@git_dir)
FileUtils.mkdir_p(@git_dir)
Dir.chdir @git_dir do
system 'git init'
system "git remote add origin #{@git_url}"
system "git fetch --depth 1 origin #{@git_hash}"
system 'git checkout FETCH_HEAD'
system '[ -x configure ] || NOCONFIGURE=1 ./autogen.sh'
system './configure --help'
system "env CFLAGS='-pipe -flto=auto' CXXFLAGS='-pipe -flto=auto' \
LDFLAGS='-flto=auto' \
./configure \
#{CREW_OPTIONS} \
--with-bash=#{CREW_PREFIX}/bin/bash \
--disable-dependency-tracking"
end
end
def self.install
Dir.chdir @git_dir do
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end
end