Diff Scalar-List-Utils-1.630.0 with a f2fs-tools-1.16.0-r2

/usr/portage/sys-fs/f2fs-tools/f2fs-tools-1.16.0-r2.ebuild 2025-07-29 16:22:17.924470191 +0300
1
# Copyright 1999-2023 Gentoo Authors
1
# Copyright 1999-2025 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5 5

  
6
DIST_AUTHOR=PEVANS
7
DIST_VERSION=1.63
8
inherit perl-module
9

  
10
DESCRIPTION="Common Scalar and List utility subroutines"
11
SLOT="0"
12
KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
6
inherit autotools flag-o-matic
7

  
8
DESCRIPTION="Tools for Flash-Friendly File System (F2FS)"
9
HOMEPAGE="https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git/about/"
10
if [[ ${PV} == *9999 ]]; then
11
	inherit git-r3
12
	EGIT_REPO_URI="https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/${PN}.git"
13
	EGIT_BRANCH="dev"
14
else
15
	SRC_URI="https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/${PN}.git/snapshot/${P}.tar.gz"
16
	KEYWORDS="amd64 arm arm64 ~loong ~mips ppc ppc64 ~riscv x86"
17
fi
18

  
19
LICENSE="GPL-2"
20
SLOT="0/10"
21
IUSE="lz4 lzo selinux"
22

  
23
RDEPEND="
24
	lz4? ( app-arch/lz4:= )
25
	lzo? ( dev-libs/lzo:2 )
26
	sys-apps/util-linux
27
	selinux? ( sys-libs/libselinux )
28
	elibc_musl? ( sys-libs/queue-standalone )
29
"
30
DEPEND="${RDEPEND}"
31

  
32
PATCHES=(
33
	"${FILESDIR}"/${P}-musl-1.2.4-lfs.patch
34
	"${FILESDIR}"/${P}-c23.patch
35
)
36

  
37
src_prepare() {
38
	default
39
	eautoreconf
40
}
41

  
42
src_configure() {
43
	# -Werror=lto-type-mismatch
44
	# https://bugs.gentoo.org/863896
45
	# Sent an email to linux-f2fs-devel@ but it hasn't been accepted yet...
46
	filter-lto
47

  
48
	local myconf=(
49
		# This is required to install to /sbin, bug #481110
50
		--bindir="${EPREFIX}"/sbin
51
		$(use_with lz4)
52
		$(use_with lzo lzo2)
53
		$(use_with selinux)
54
	)
55

  
56
	econf "${myconf[@]}"
57
}
58

  
59
src_install() {
60
	default
61
	find "${ED}" -name "*.la" -delete || die
62
}
Thank you!