gentoo-ebuilds/app-arch/wimlib/wimlib-1.14.4-r1.ebuild
Mike Gilbert ae41cdcbd7
app-arch/wimlib: add slot-operator for sys-fs/fuse
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
2025-03-26 13:22:08 -04:00

52 lines
905 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools pax-utils
DESCRIPTION="The open source Windows Imaging (WIM) library"
HOMEPAGE="https://wimlib.net"
SRC_URI="https://wimlib.net/downloads/${P}.tar.gz"
LICENSE="|| ( GPL-3+ LGPL-3+ ) MIT"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="fuse iso ntfs test yasm"
RESTRICT="!test? ( test )"
RDEPEND="
fuse? ( sys-fs/fuse:3= )
iso? (
app-arch/cabextract
app-cdr/cdrtools
)
ntfs? ( sys-fs/ntfs3g:= )
"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
src_prepare() {
default
eautoreconf
}
src_configure() {
local myeconfargs=(
$(use_with ntfs ntfs-3g)
$(use_with fuse)
$(use_enable test test-support)
)
econf "${myeconfargs[@]}"
}
src_compile() {
default
pax-mark m "${S}"/.libs/wimlib-imagex
}
src_install() {
default
find "${ED}" -name '*.la' -delete || die
}