commit: 8117093d88113f7830975df515ea7d21e795b035 Author: Alfred Wingate <parona <AT> protonmail <DOT> com> AuthorDate: Tue Mar 25 21:44:46 2025 +0000 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> CommitDate: Tue Mar 25 22:22:17 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8117093d
sys-fs/squashfuse: add 0.6.0 * Let tests work with test_priviledged. * Remove unexplained flag filtering. * Use "usev !flag option" notation instead of "use flag || echo option". Bug: https://bugs.gentoo.org/952056 Signed-off-by: Alfred Wingate <parona <AT> protonmail.com> Closes: https://github.com/gentoo/gentoo/pull/41291 Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> sys-fs/squashfuse/Manifest | 1 + sys-fs/squashfuse/squashfuse-0.6.0.ebuild | 63 +++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) diff --git a/sys-fs/squashfuse/Manifest b/sys-fs/squashfuse/Manifest index 1cfe976f0a6b..b5ae88695919 100644 --- a/sys-fs/squashfuse/Manifest +++ b/sys-fs/squashfuse/Manifest @@ -1 +1,2 @@ DIST squashfuse-0.5.2.tar.gz 75404 BLAKE2B bb0005395ad993932d27eccbf0aa57d587af19054e16cb2cb4cce13f9d97be011b70c3cffa5b21c4fbef294686b64dfa45e941e8a0fa10a6bea1e9264abf6b8b SHA512 4380d73afa47105e2188a4eebc6b54c5961a2ba38e5986865b7fd762ed0aea7d24b0d9f5b674abd9c29f73a336bd69142db7869a548560723f60559859cdd7f3 +DIST squashfuse-0.6.0.tar.gz 76068 BLAKE2B dea168bb7b282d18170657948daedaadeb0bd8a046f643b59d5ddf9d6c5e030f36307ed7386edb83a2feec6b827a97213081f147e4d817552c7e771a78dab144 SHA512 48475860d28f571f76890753828eeddf947516fa3dc9e863f799be059b01233d10cb0af44ae22e9c4f4112ddf2586add5c4b9fac9654481fce5e2ef55fadb8e6 diff --git a/sys-fs/squashfuse/squashfuse-0.6.0.ebuild b/sys-fs/squashfuse/squashfuse-0.6.0.ebuild new file mode 100644 index 000000000000..10b2410ff0d0 --- /dev/null +++ b/sys-fs/squashfuse/squashfuse-0.6.0.ebuild @@ -0,0 +1,63 @@ +# Copyright 2016-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +DESCRIPTION="FUSE filesystem to mount squashfs archives" +HOMEPAGE="https://github.com/vasi/squashfuse" +SRC_URI="https://github.com/vasi/squashfuse/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 )" + +# Tests require access to /dev/fuse. +RESTRICT="test" +PROPERTIES="test_privileged" + +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? ( >=sys-libs/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() { + local econfargs=( + $(use_enable static-libs static) + $(usev !lz4 --without-lz4) + $(usev !lzma --without-xz) + $(usev !lzo --without-lzo) + $(usev !zlib --without-zlib) + $(usev !zstd --without-zstd) + ) + + econf "${econfargs[@]}" +} + +src_test() { + addwrite /dev/fuse + default +} + +src_install() { + default + find "${ED}" -name "*.la" -type f -delete || die +}
