mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-13 21:47:44 +00:00
Update done using: ``` git grep -l sys-libs/zlib sys-* | xargs sed -i -e s@sys-libs/zlib@virtual/zlib@g git grep -l virtual/zlib-ng sys-* | xargs sed -i -e s@virtual/zlib-ng@sys-libs/zlib-ng@g git diff --name-only | xargs copybump git diff --name-only | xargs grep -l PYTHON_COMPAT | xargs gpy-impl -@dead pkgcheck scan --commits -c SourcingCheck,VisibilityCheck --exit error ``` Plus reverts in sys-libs/minizip-ng and sys-libs/zlib-ng. Signed-off-by: Michał Górny <mgorny@gentoo.org>
58 lines
1.3 KiB
Bash
58 lines
1.3 KiB
Bash
# Copyright 2016-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit autotools flag-o-matic
|
|
|
|
DESCRIPTION="FUSE filesystem to mount squashfs archives"
|
|
HOMEPAGE="https://github.com/vasi/squashfuse"
|
|
SRC_URI="https://github.com/vasi/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="BSD-2"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 ~riscv ~x86 ~amd64-linux ~x86-linux"
|
|
IUSE="lz4 lzma lzo static-libs +zlib zstd"
|
|
REQUIRED_USE="|| ( lz4 lzma lzo zlib zstd )"
|
|
RESTRICT="test" # Tests require access to /dev/fuse.
|
|
|
|
DEPEND="
|
|
sys-fs/fuse:=
|
|
|| (
|
|
>=sys-fs/fuse-3.2:3
|
|
>=sys-fs/fuse-2.8.6:0
|
|
)
|
|
lzma? ( >=app-arch/xz-utils-5.0.4:= )
|
|
zlib? ( >=virtual/zlib-1.2.5-r2:= )
|
|
lzo? ( >=dev-libs/lzo-2.06:= )
|
|
lz4? ( >=app-arch/lz4-0_p106:= )
|
|
zstd? ( app-arch/zstd:= )
|
|
"
|
|
RDEPEND="${DEPEND}"
|
|
BDEPEND="virtual/pkgconfig"
|
|
|
|
src_prepare() {
|
|
default
|
|
eautoreconf
|
|
}
|
|
|
|
src_configure() {
|
|
filter-lto
|
|
filter-flags -fwhole-program -fno-common
|
|
|
|
local econfargs=(
|
|
$(use_enable static-libs static)
|
|
$(use lz4 || echo --without-lz4)
|
|
$(use lzma || echo --without-xz)
|
|
$(use lzo || echo --without-lzo)
|
|
$(use zlib || echo --without-zlib)
|
|
$(use zstd || echo --without-zstd)
|
|
)
|
|
|
|
econf "${econfargs[@]}"
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
find "${ED}" -name "*.la" -type f -delete || die
|
|
}
|