blob: 299fe8ca98286647812463a28e7dc462f8d2d530 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
# Set to 1 for older versions of bash (that are hence slotted)
SLOTTED_BASH=1
if [[ ${SLOTTED_BASH} == 1 ]] ; then
MANGLED_PV="${PV:0:3}"
else
MANGLED_PV="0"
fi
MY_P="${PN}-${PV:0:3}-${PV:4}"
DESCRIPTION="bash source code debugging"
HOMEPAGE="http://bashdb.sourceforge.net/"
if [[ ${PV} == *_pre* ]] ; then
inherit autotools
# bashdb for newer bash versions doesn't (yet?) have tags, so we
# take snapshots. Make sure to pick the right branch.
BASHDB_COMMIT="11150b3bee22215632143942ade99b5f2441c4ca"
SRC_URI="
https://github.com/Trepan-Debuggers/bashdb/archive/${BASHDB_COMMIT}.tar.gz -> ${P}.gh.tar.gz
"
S="${WORKDIR}"/${PN}-${BASHDB_COMMIT}
else
SRC_URI="
https://downloads.sourceforge.net/bashdb/${MY_P}.tar.bz2
"
S="${WORKDIR}/${MY_P}"
fi
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
DEPEND=">=app-shells/bash-${MANGLED_PV}:${MANGLED_PV}"
RDEPEND="${DEPEND}"
# test-bug-loc fails with formatting differences
RESTRICT="test"
src_prepare() {
default
[[ ${PV} == *_pre* ]] && eautoreconf
# We don't install this, so don't bother building it. #468044
sed -i 's:texi2html:true:' doc/Makefile.in || die
}
src_configure() {
local bash_suffix
if [[ ${SLOTTED_BASH} == 1 ]] ; then
bash_suffix="-${MANGLED_PV}"
fi
# This path matches the bash sources. If we ever change bash,
# we'll probably have to change this to match (bug #591994).
CONFIG_SHELL="${BROOT}"/bin/bash econf \
--with-bash="${EPREFIX}"/bin/bash${bash_suffix} \
--with-dbg-main='$(PKGDATADIR)/bashdb-main.inc'
}
|