1 |
commit: f95bef0949e859f4a4b01242b07343fa79374fba |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 18 05:48:44 2023 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 18 05:53:59 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f95bef09 |
7 |
|
8 |
sys-fs/squashfs-tools: Bump to 4.6 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
sys-fs/squashfs-tools/Manifest | 1 + |
13 |
sys-fs/squashfs-tools/squashfs-tools-4.6.ebuild | 57 +++++++++++++++++++++++++ |
14 |
2 files changed, 58 insertions(+) |
15 |
|
16 |
diff --git a/sys-fs/squashfs-tools/Manifest b/sys-fs/squashfs-tools/Manifest |
17 |
index 74ac243af627..f23877e9773e 100644 |
18 |
--- a/sys-fs/squashfs-tools/Manifest |
19 |
+++ b/sys-fs/squashfs-tools/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST squashfs-tools-4.5.1.tar.gz 270112 BLAKE2B cbd35daf582d284b021911bb754ed548763f2773e1bc02516ca18bab7034e352780c11eb7dfed1f047b70974dcfb716bb1a1d3729e5b25662203cfbf93553b73 SHA512 b3934ea1e26c7508110312711465644a6d9674b6b5332a7d011e191fa3c1d4b8be694214794a0f6005263d0f4e18bab96af2f7ed66a178f8e3bb3a781cd44896 |
22 |
+DIST squashfs-tools-4.6.tar.gz 286409 BLAKE2B 1c04a8f6149863667151e76b3c1ecfdd5e9a181b305bea694af1d4968ac361114c9e926b351dcee2647796a21bc8cfc55b3d95f020ad88c3388007460de26053 SHA512 3a9effb9a5cf46fbb9f393e58bd938874dc4121828b77c67d659117ee84643917998a8503d629f46f1eff1826f6d7ae59ac2d803a5cdc3cfb1006ef2b3abf8c8 |
23 |
|
24 |
diff --git a/sys-fs/squashfs-tools/squashfs-tools-4.6.ebuild b/sys-fs/squashfs-tools/squashfs-tools-4.6.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..896db57a6f33 |
27 |
--- /dev/null |
28 |
+++ b/sys-fs/squashfs-tools/squashfs-tools-4.6.ebuild |
29 |
@@ -0,0 +1,57 @@ |
30 |
+# Copyright 1999-2023 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+inherit flag-o-matic toolchain-funcs |
36 |
+ |
37 |
+DESCRIPTION="Tools to create and extract Squashfs filesystems" |
38 |
+HOMEPAGE="https://github.com/plougher/squashfs-tools/" |
39 |
+SRC_URI=" |
40 |
+ https://github.com/plougher/squashfs-tools/archive/${PV}.tar.gz |
41 |
+ -> ${P}.tar.gz |
42 |
+" |
43 |
+ |
44 |
+LICENSE="GPL-2" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
47 |
+IUSE="debug lz4 lzma lzo xattr zstd" |
48 |
+ |
49 |
+DEPEND=" |
50 |
+ sys-libs/zlib |
51 |
+ lz4? ( app-arch/lz4 ) |
52 |
+ lzma? ( app-arch/xz-utils ) |
53 |
+ lzo? ( dev-libs/lzo ) |
54 |
+ xattr? ( sys-apps/attr ) |
55 |
+ zstd? ( app-arch/zstd ) |
56 |
+" |
57 |
+RDEPEND=${DEPEND} |
58 |
+ |
59 |
+use10() { |
60 |
+ usex "${1}" 1 0 |
61 |
+} |
62 |
+ |
63 |
+src_compile() { |
64 |
+ # set up make command line variables in EMAKE_SQUASHFS_CONF |
65 |
+ local opts=( |
66 |
+ LZMA_XZ_SUPPORT=$(use10 lzma) |
67 |
+ LZO_SUPPORT=$(use10 lzo) |
68 |
+ LZ4_SUPPORT=$(use10 lz4) |
69 |
+ XATTR_SUPPORT=$(use10 xattr) |
70 |
+ XZ_SUPPORT=$(use10 lzma) |
71 |
+ ZSTD_SUPPORT=$(use10 zstd) |
72 |
+ ) |
73 |
+ |
74 |
+ tc-export CC |
75 |
+ use debug && append-cppflags -DSQUASHFS_TRACE |
76 |
+ emake "${opts[@]}" -C squashfs-tools |
77 |
+} |
78 |
+ |
79 |
+src_install() { |
80 |
+ dobin squashfs-tools/{mksquashfs,unsquashfs} |
81 |
+ dodoc ACKNOWLEDGEMENTS CHANGES README* |
82 |
+ doman manpages/*.1 |
83 |
+ |
84 |
+ dosym unsquashfs /usr/bin/sqfscat |
85 |
+ dosym mksquashfs /usr/bin/sqfstar |
86 |
+} |