commit:     bc288325ca547ae34a0268da9d1eae2ee52b5f7d
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 10 05:28:22 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Nov 10 05:28:22 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc288325

sys-fs/squashfs-tools: Bump to 4.7.4

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 sys-fs/squashfs-tools/Manifest                    |  1 +
 sys-fs/squashfs-tools/squashfs-tools-4.7.4.ebuild | 57 +++++++++++++++++++++++
 2 files changed, 58 insertions(+)

diff --git a/sys-fs/squashfs-tools/Manifest b/sys-fs/squashfs-tools/Manifest
index 332b69651593..59ed14419df7 100644
--- a/sys-fs/squashfs-tools/Manifest
+++ b/sys-fs/squashfs-tools/Manifest
@@ -1,2 +1,3 @@
 DIST squashfs-tools-4.7.2.tar.gz 638262 BLAKE2B 
7501a0ea11ae057b297d1dedcd1a4c1475a641102c0662614c820f7bed6d9437e282303d0e35b50185aa74b22d3cf8bffb4424e1e20b398ef068ef822fcb7097
 SHA512 
4ef134935e97267544837806d8494f7eab14bae834afdb5caf4862703652c6f33bd38ade45e3a276927bfdb4877d5474c1d5b8c14090cc3a63a80aa931e6b25f
 DIST squashfs-tools-4.7.3.tar.gz 396304 BLAKE2B 
f514187dee5141f10ae626880dc6d9101b46e480eaa94602307d6e5132fc7dc46d3db24ab041d6f200cdb1f46d325bf89868b708af0891bdb92e6c7ff44d5f92
 SHA512 
8b334b765d0426acdc3df4d3afc0c197368f81f01a6dd79acf9f894155b60d972bccd198d7652000cf81479084ba45ff2a82611949cc4aa1a71e43317b836ca2
+DIST squashfs-tools-4.7.4.tar.gz 408882 BLAKE2B 
2488f2d953c53bbf25d18242b4cb315ebe67f336bb07003d52622f701c9ee8409330fe16a5782737777cbbd62228181973005e66c4e56f28900769dad94df51e
 SHA512 
16943b331723c301d7e65c14e5946d3fa27f974ba509a412ab6182a48d83a935d445feb80a27d89a5b5ba5cf86e55835f12d28c2b2b57f5623e1151cb2966376

diff --git a/sys-fs/squashfs-tools/squashfs-tools-4.7.4.ebuild 
b/sys-fs/squashfs-tools/squashfs-tools-4.7.4.ebuild
new file mode 100644
index 000000000000..2ff2b7dc6fc1
--- /dev/null
+++ b/sys-fs/squashfs-tools/squashfs-tools-4.7.4.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit flag-o-matic toolchain-funcs
+
+DESCRIPTION="Tools to create and extract Squashfs filesystems"
+HOMEPAGE="https://github.com/plougher/squashfs-tools/";
+SRC_URI="
+       https://github.com/plougher/squashfs-tools/archive/${PV}.tar.gz
+               -> ${P}.tar.gz
+"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86"
+IUSE="debug lz4 lzma lzo xattr zstd"
+
+DEPEND="
+       virtual/zlib:=
+       lz4? ( app-arch/lz4 )
+       lzma? ( app-arch/xz-utils )
+       lzo? ( dev-libs/lzo )
+       xattr? ( sys-apps/attr )
+       zstd? ( app-arch/zstd )
+"
+RDEPEND=${DEPEND}
+
+use10() {
+       usex "${1}" 1 0
+}
+
+src_compile() {
+       # set up make command line variables in EMAKE_SQUASHFS_CONF
+       local opts=(
+               LZMA_XZ_SUPPORT=$(use10 lzma)
+               LZO_SUPPORT=$(use10 lzo)
+               LZ4_SUPPORT=$(use10 lz4)
+               XATTR_SUPPORT=$(use10 xattr)
+               XZ_SUPPORT=$(use10 lzma)
+               ZSTD_SUPPORT=$(use10 zstd)
+       )
+
+       tc-export CC
+       use debug && append-cppflags -DSQUASHFS_TRACE
+       emake "${opts[@]}" -C squashfs-tools
+}
+
+src_install() {
+       dobin squashfs-tools/{mksquashfs,unsquashfs}
+       dodoc ACKNOWLEDGEMENTS CHANGES README*
+       doman Documentation/manpages/*.1
+
+       dosym unsquashfs /usr/bin/sqfscat
+       dosym mksquashfs /usr/bin/sqfstar
+}

Reply via email to