blob: 68ad75ab83684fd3ea631b6ca3f1b1078a31697a (
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
|
# Copyright 2025-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Fork of bash enabling integration into pkgcraft"
HOMEPAGE="https://github.com/pkgcraft/bash"
if [[ ${PV} == 9999 ]]; then
EGIT_REPO_URI="https://github.com/pkgcraft/bash.git"
inherit git-r3
else
SRC_URI="https://github.com/pkgcraft/bash/releases/download/${P}/${P}.tar.xz"
KEYWORDS="~amd64 ~arm64"
fi
LICENSE="GPL-3+"
SLOT="0"
PATCHES=(
# bug #971782
"${FILESDIR}"/bash-5.3_p9-general-workaround-aliasing-violation-in-REVERSE_LIS.patch
)
src_unpack() {
if [[ ${PV} == 9999 ]]; then
git-r3_src_unpack
else
default
fi
}
src_configure() {
# load required configure options
local -a myconf
while IFS= read -r line; do
[[ -z ${line} || ${line} =~ ^# ]] && continue
myconf+=( ${line} )
done < configure-scallop-options
econf "${myconf[@]}"
}
src_compile() {
emake libscallop.so
}
# tests rely on functionality that scallop alters
src_test() { :; }
src_install() {
emake DESTDIR="${D}" install-library install-headers
}
|