Diff gentoo-functions-0.19 with a gentoo-functions-1.7.6
| /usr/portage/sys-apps/gentoo-functions/gentoo-functions-1.7.6.ebuild 2026-02-19 11:18:08.267969534 +0300 | ||
|---|---|---|
| 1 |
# Copyright 2014-2025 Gentoo Authors |
|
| 1 |
# Copyright 2014-2026 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" |
| ... | ... | |
| 11 | 16 |
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~arm64-macos ~x64-macos ~x64-solaris" |
| 12 | 17 |
fi |
| 13 | 18 | |
| 14 |
inherit toolchain-funcs flag-o-matic |
|
| 19 |
LICENSE="GPL-2 MIT" |
|
| 20 |
SLOT="0" |
|
| 21 |
IUSE="test" |
|
| 22 |
RESTRICT="!test? ( test )" |
|
| 15 | 23 | |
| 16 |
DESCRIPTION="Base functions required by all Gentoo systems" |
|
| 17 |
HOMEPAGE="https://gitweb.gentoo.org/proj/gentoo-functions.git" |
|
| 24 |
src_configure() {
|
|
| 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 |
) |
|
| 18 | 31 | |
| 19 |
LICENSE="GPL-2" |
|
| 20 |
SLOT="0" |
|
| 32 |
meson_src_configure |
|
| 33 |
} |
|
| 21 | 34 | |
| 22 |
# Specifically needs GNU find, as well. |
|
| 23 |
RDEPEND=">=sys-apps/findutils-4.9" |
|
| 35 |
src_install() {
|
|
| 36 |
meson_src_install |
|
| 24 | 37 | |
| 25 |
src_configure() {
|
|
| 26 |
tc-export CC |
|
| 27 |
append-lfs-flags |
|
| 28 |
export ROOTPREFIX="${EPREFIX}"
|
|
| 29 |
export PREFIX="${EPREFIX}/usr"
|
|
| 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 |
} |