gentoo/dev-util/debugedit/debugedit-5.1-r3.ebuild
Fabian Groffen a08c8d1760
*/*: drop *-linux keyword usage references
Bug: https://bugs.gentoo.org/473598
Bug: https://bugs.gentoo.org/720224
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
2025-12-19 10:51:56 +01:00

65 lines
1.4 KiB
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit multiprocessing verify-sig toolchain-funcs
DESCRIPTION="Create debuginfo and source file distributions"
HOMEPAGE="https://sourceware.org/debugedit/"
SRC_URI="
https://sourceware.org/ftp/debugedit/${PV}/${P}.tar.xz
verify-sig? ( https://sourceware.org/ftp/debugedit/${PV}/${P}.tar.xz.sig )
"
LICENSE="GPL-3+ GPL-2+ LGPL-2+"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~sparc x86"
#KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
DEPEND="
>=dev-libs/elfutils-0.176-r1:=
>=dev-libs/xxhash-0.8:=
elibc_musl? ( >=sys-libs/error-standalone-2.0 )
"
RDEPEND="
${DEPEND}
sys-devel/dwz
"
BDEPEND="
sys-apps/help2man
virtual/pkgconfig
verify-sig? (
sec-keys/openpgp-keys-debugedit
)
"
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/debugedit.gpg
src_prepare() {
default
# bashism, https://sourceware.org/bugzilla/show_bug.cgi?id=32321
sed -i -e '/test/s:==:=:' tests/debugedit.at || die
}
src_configure() {
tc-export PKG_CONFIG
if use elibc_musl; then
export CFLAGS="${CFLAGS} $(${PKG_CONFIG} --cflags error-standalone)"
export LIBS="${LIBS} $(${PKG_CONFIG} --libs error-standalone)"
fi
local myconf=(
# avoid BDEP on dwz
DWZ=dwz
ac_cv_dwz_j=yes
)
econf "${myconf[@]}"
}
src_test() {
emake -Onone check TESTSUITEFLAGS="--jobs=$(get_makeopts_jobs)"
}