gentoo/dev-libs/libkdumpfile/libkdumpfile-0.5.5-r2.ebuild
Michał Górny 7215a6a587
*/*: Add := to virtual/zlib deps
Done via:

```
git grep -l 'virtual/zlib ' |
  xargs sed -i -e 's@virtual/zlib @virtual/zlib:= @g'
```

with some manual reverts.

Signed-off-by: Michał Górny <mgorny@gentoo.org>
2025-11-04 10:45:41 +01:00

49 lines
1.1 KiB
Bash

# Copyright 2024-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Kernel coredump file access"
HOMEPAGE="https://github.com/ptesarik/libkdumpfile"
SRC_URI="https://github.com/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}"/${P}-bfd-include.patch
"${FILESDIR}"/${P}-parallel-tests.patch
)
src_configure() {
local myeconfargs=(
# The Python bindings within libkdumpfile are deprecated
# and don't work w/ PEP517. There's a new CFFI bindings
# project we can use if anyone asks for them.
--without-python
$(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
}