Сравнение gentoo-functions-0.19 с gentoo-functions-9999

/usr/portage/sys-apps/gentoo-functions/gentoo-functions-9999.ebuild 2024-12-25 14:59:52.767270182 +0300
1
# Copyright 2014-2023 Gentoo Authors
1
# Copyright 2014-2024 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 meson
7

  
8
DESCRIPTION="Base functions required by all Gentoo systems"
9
HOMEPAGE="https://gitweb.gentoo.org/proj/gentoo-functions.git"
10

  
6 11
if [[ ${PV} == 9999* ]]; then
7 12
	inherit git-r3
8 13
	EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/gentoo-functions.git"
9 14
else
10 15
	SRC_URI="https://gitweb.gentoo.org/proj/gentoo-functions.git/snapshot/${P}.tar.bz2"
11
	KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
16
	KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
12 17
fi
13 18

  
14
inherit toolchain-funcs flag-o-matic
15

  
16
DESCRIPTION="Base functions required by all Gentoo systems"
17
HOMEPAGE="https://gitweb.gentoo.org/proj/gentoo-functions.git"
18

  
19 19
LICENSE="GPL-2"
20 20
SLOT="0"
21

  
22
# Specifically needs GNU find, as well.
23
RDEPEND=">=sys-apps/findutils-4.9"
21
IUSE="test"
22
RESTRICT="!test? ( test )"
24 23

  
25 24
src_configure() {
26
	tc-export CC
27
	append-lfs-flags
28
	export ROOTPREFIX="${EPREFIX}"
29
	export PREFIX="${EPREFIX}/usr"
25
	local emesonargs=(
26
		# Deliberately avoid /usr as consumers assume we're at /lib/gentoo.
27
		--prefix="${EPREFIX:-/}"
28
		--mandir="${EPREFIX}/usr/share/man"
29
		$(meson_use test tests)
30
	)
31

  
32
	meson_src_configure
33
}
34

  
35
src_install() {
36
	meson_src_install
37

  
38
	if [[ ${EPREFIX} ]]; then
39
		while read -r; do
40
			if [[ ${REPLY} == $'\t'genfun_prefix= ]]; then
41
				printf '\tgenfun_prefix=%q\n' "${EPREFIX}"
42
			else
43
				printf '%s\n' "${REPLY}"
44
			fi || ! break
45
		done < "${ED}/lib/gentoo/functions.sh" > "${T}/functions.sh" \
46
		&& mv -- "${T}/functions.sh" "${ED}/lib/gentoo/functions.sh" \
47
		|| die
48
	fi
30 49
}
Спасибо!