gentoo/app-cdr/dumpet/dumpet-2.1_p20140601-r5.ebuild
Alfred Wingate d6cd0e4158
app-cdr/dumpet: add dev-libs/libxml2 subslot op for incoming ABI break
Signed-off-by: Alfred Wingate <parona@protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/41919
Signed-off-by: Sam James <sam@gentoo.org>
2025-06-09 04:09:13 +01:00

46 lines
962 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs vcs-snapshot
COMMIT="8f47670dd582c96ad1b6dd3c9b9da0acebded5d8"
DESCRIPTION="A tool to dump and debug bootable CD-like images"
HOMEPAGE="https://github.com/rhboot/dumpet"
SRC_URI="https://github.com/rhboot/dumpet/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="test"
#Restrict tests since required test file is unavailable
RESTRICT="test"
BDEPEND="virtual/pkgconfig
test? ( dev-debug/valgrind )"
DEPEND="dev-libs/libxml2:=
dev-libs/popt"
RDEPEND="${DEPEND}"
PATCHES=( "${FILESDIR}"/musl-byteswap-fix.patch )
src_prepare() {
sed -i Makefile \
-e "s/^install : all$/install :/" \
-e "s/^CFLAGS:=/CFLAGS?=/" \
-e "s/^CC:=/CC?=/" \
-e '/^LFLAGS/ s/$/$(LDFLAGS)/' \
|| die
default
}
src_compile() {
emake CFLAGS="${CFLAGS}" dumpet
}
pkg_setup() {
tc-export CC
}