Diff squashfs-tools-4.5.1-r1 with a squashfs-tools-4.6

/usr/portage/sys-fs/squashfs-tools/squashfs-tools-4.6.ebuild 2023-10-09 14:52:35.524368502 +0300
1
# Copyright 1999-2022 Gentoo Authors
1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
5

  
5 6
inherit flag-o-matic toolchain-funcs
6 7

  
7
DESCRIPTION="tools to create and extract Squashfs filesystems"
8
DESCRIPTION="Tools to create and extract Squashfs filesystems"
8 9
HOMEPAGE="https://github.com/plougher/squashfs-tools/"
9 10
SRC_URI="
10 11
	https://github.com/plougher/squashfs-tools/archive/${PV}.tar.gz
11
		-> ${P}.tar.gz"
12
		-> ${P}.tar.gz
13
"
12 14

  
13 15
LICENSE="GPL-2"
14 16
SLOT="0"
15
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
17
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
16 18
IUSE="debug lz4 lzma lzo xattr zstd"
17 19

  
18
RDEPEND="
20
DEPEND="
19 21
	sys-libs/zlib
20 22
	lz4? ( app-arch/lz4 )
21 23
	lzma? ( app-arch/xz-utils )
......
23 25
	xattr? ( sys-apps/attr )
24 26
	zstd? ( app-arch/zstd )
25 27
"
26
DEPEND=${RDEPEND}
28
RDEPEND=${DEPEND}
27 29

  
28
use10() { usex "${1}" 1 0; }
30
use10() {
31
	usex "${1}" 1 0
32
}
29 33

  
30
src_configure() {
34
src_compile() {
31 35
	# set up make command line variables in EMAKE_SQUASHFS_CONF
32
	EMAKE_SQUASHFS_CONF=(
36
	local opts=(
33 37
		LZMA_XZ_SUPPORT=$(use10 lzma)
34 38
		LZO_SUPPORT=$(use10 lzo)
35 39
		LZ4_SUPPORT=$(use10 lz4)
......
40 44

  
41 45
	tc-export CC
42 46
	use debug && append-cppflags -DSQUASHFS_TRACE
43
}
44

  
45
src_compile() {
46
	emake "${EMAKE_SQUASHFS_CONF[@]}" -C squashfs-tools
47
	emake "${opts[@]}" -C squashfs-tools
47 48
}
48 49

  
49 50
src_install() {
50 51
	dobin squashfs-tools/{mksquashfs,unsquashfs}
51 52
	dodoc ACKNOWLEDGEMENTS CHANGES README*
52
	dodoc -r RELEASE-READMEs
53 53
	doman manpages/*.1
54 54

  
55 55
	dosym unsquashfs /usr/bin/sqfscat
Thank you!