Diff mergerfs-2.36.0 with a mergerfs-2.40.2

/usr/portage/sys-fs/mergerfs/mergerfs-2.40.2.ebuild 2024-12-25 14:59:52.803270183 +0300
1
# Copyright 1999-2023 Gentoo Authors
1
# Copyright 1999-2024 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 6
inherit toolchain-funcs
7 7

  
8 8
DESCRIPTION="A featureful union filesystem"
9 9
HOMEPAGE="https://github.com/trapexit/mergerfs"
10

  
11 10
SRC_URI="https://github.com/trapexit/mergerfs/archive/${PV}.tar.gz -> ${P}.tar.gz"
12
KEYWORDS="amd64 ~riscv x86"
13 11

  
14 12
# Vendorized libfuse that's bundled is under LGPL-2.1.
15 13
LICENSE="ISC LGPL-2.1"
16 14
SLOT="0"
15
KEYWORDS="amd64 ~riscv x86"
17 16
IUSE="+xattr"
18 17

  
19 18
DEPEND="
20 19
	xattr? ( sys-apps/attr )
21 20
"
22

  
23 21
RDEPEND="${DEPEND}"
24

  
25 22
BDEPEND="sys-devel/gettext"
26 23

  
27 24
src_prepare() {
28 25
	default
29 26

  
30
	# Hand made build system at it's finest.
31
	echo -e "#!/bin/sh\ntrue" >tools/update-version || die
32
	echo "#pragma once" >src/version.hpp || die
33
	echo "static const char MERGERFS_VERSION[] = \"${PV}\";" >>src/version.hpp || die
27
	# Hand made build system at its finest.
28
	echo -e "#!/bin/sh\ntrue" > buildtools/update-version || die
29
	cat <<-EOF > src/version.hpp || die
30
	#pragma once
31
	static const char MERGERFS_VERSION[] = "${PV}";
32
	EOF
34 33

  
35 34
	if ! use xattr; then
36
		sed 's%USE_XATTR = 1%USE_XATTR = 0%g' -i Makefile || die
35
		sed -i -e 's%USE_XATTR = 1%USE_XATTR = 0%g' Makefile || die
37 36
	fi
38 37
}
39 38

  
Thank you!