mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-13 21:47:44 +00:00
Done via: ``` git grep -l 'virtual/zlib:0=' | xargs sed -i -e 's@virtual/zlib:0=@virtual/zlib:=@g' ``` Signed-off-by: Michał Górny <mgorny@gentoo.org>
63 lines
1.4 KiB
Bash
63 lines
1.4 KiB
Bash
# Copyright 2021-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit autotools
|
|
|
|
DESCRIPTION="Userspace tools for EROFS"
|
|
HOMEPAGE="https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git"
|
|
|
|
SRC_URI="https://git.kernel.org/pub/scm/linux/kernel/git/xiang/${PN}.git/snapshot/${P}.tar.gz"
|
|
|
|
LICENSE="GPL-2+"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~arm64 ~loong"
|
|
|
|
IUSE="fuse libdeflate +lz4 +lzma selinux static-libs +threads +uuid +zlib +zstd"
|
|
|
|
RDEPEND="
|
|
dev-libs/xxhash:0=
|
|
fuse? ( sys-fs/fuse:0 )
|
|
lz4? ( app-arch/lz4:0= )
|
|
lzma? ( >=app-arch/xz-utils-5.4.0:0= )
|
|
selinux? ( sys-libs/libselinux:0= )
|
|
uuid? ( sys-apps/util-linux )
|
|
zlib? (
|
|
libdeflate? ( app-arch/libdeflate:0= )
|
|
!libdeflate? ( virtual/zlib:= )
|
|
)
|
|
zstd? ( app-arch/zstd:0= )
|
|
"
|
|
DEPEND="${RDEPEND}"
|
|
BDEPEND="virtual/pkgconfig"
|
|
|
|
PATCHES=(
|
|
)
|
|
|
|
src_prepare() {
|
|
default
|
|
eautoreconf
|
|
}
|
|
|
|
src_configure() {
|
|
local myeconfargs=(
|
|
--disable-werror
|
|
$(use_enable fuse)
|
|
$(use_with libdeflate)
|
|
$(use_enable lz4)
|
|
$(use_enable lzma)
|
|
$(use_with selinux)
|
|
$(use_enable static-libs static-fuse)
|
|
$(use_enable threads multithreading)
|
|
$(use_with uuid)
|
|
$(use_with zlib)
|
|
$(use_with zstd libzstd)
|
|
--without-qpl # not packaged
|
|
# do not use bundled xxhash; also upstream says "expected to be
|
|
# faster than the internal one"
|
|
--with-xxhash
|
|
)
|
|
|
|
econf "${myeconfargs[@]}"
|
|
}
|