mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-30 22:48:07 -07:00
53 lines
963 B
Bash
53 lines
963 B
Bash
# Copyright 2024-2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit autotools
|
|
|
|
DESCRIPTION="Kernel coredump file access"
|
|
HOMEPAGE="https://codeberg.org/ptesarik/libkdumpfile"
|
|
SRC_URI="https://codeberg.org/ptesarik/libkdumpfile/releases/download/v${PV}/${P}.tar.bz2"
|
|
|
|
LICENSE="|| ( LGPL-3+ GPL-2+ )"
|
|
SLOT="0/1"
|
|
KEYWORDS="~amd64"
|
|
IUSE="lzo snappy zlib zstd"
|
|
|
|
DEPEND="
|
|
sys-libs/binutils-libs:=
|
|
lzo? ( dev-libs/lzo )
|
|
snappy? ( app-arch/snappy:= )
|
|
zlib? ( virtual/zlib:= )
|
|
zstd? ( app-arch/zstd:= )
|
|
"
|
|
RDEPEND="${DEPEND}"
|
|
BDEPEND="virtual/pkgconfig"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}"/${PN}-0.5.6-binutils-2.46.patch
|
|
)
|
|
|
|
src_prepare() {
|
|
default
|
|
|
|
# for binutils-2.46 patch
|
|
eautoreconf
|
|
}
|
|
|
|
src_configure() {
|
|
local myeconfargs=(
|
|
$(use_with lzo lzo2)
|
|
$(use_with snappy)
|
|
$(use_with zlib)
|
|
$(use_with zstd libzstd)
|
|
)
|
|
|
|
econf "${myeconfargs[@]}"
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
find "${D}" -name '*.la' -delete || die
|
|
}
|