mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-27 16:41:11 +02:00
eclass/gnome.org: Sync with Gentoo
It's from Gentoo commit c25d7587a0c8f7aeef7fb39f99abca0e34ea0f51.
This commit is contained in:
parent
0f53c152c8
commit
cb9db2a6f6
@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# @ECLASS: gnome.org.eclass
|
||||
@ -7,22 +7,19 @@
|
||||
# @AUTHOR:
|
||||
# Authors: Spidler <spidler@gentoo.org> with help of carparski.
|
||||
# eclass variable additions and documentation: Gilles Dartiguelongue <eva@gentoo.org>
|
||||
# @SUPPORTED_EAPIS: 5 6 7 8
|
||||
# @SUPPORTED_EAPIS: 7 8
|
||||
# @BLURB: Helper eclass for gnome.org hosted archives
|
||||
# @DESCRIPTION:
|
||||
# Provide a default SRC_URI for tarball hosted on gnome.org mirrors.
|
||||
|
||||
case ${EAPI} in
|
||||
5|6|7|8) ;;
|
||||
7|8) ;;
|
||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||
esac
|
||||
|
||||
if [[ -z ${_GNOME_ORG_ECLASS} ]] ; then
|
||||
_GNOME_ORG_ECLASS=1
|
||||
|
||||
# versionator inherit kept for older EAPIs due to ebuilds (potentially) relying on it
|
||||
[[ ${EAPI} == [56] ]] && inherit eapi7-ver versionator
|
||||
|
||||
# @ECLASS_VARIABLE: GNOME_TARBALL_SUFFIX
|
||||
# @PRE_INHERIT
|
||||
# @DESCRIPTION:
|
||||
@ -33,19 +30,13 @@ _GNOME_ORG_ECLASS=1
|
||||
|
||||
# Even though xz-utils are in @system, they must still be added to BDEPEND; see
|
||||
# https://archives.gentoo.org/gentoo-dev/msg_a0d4833eb314d1be5d5802a3b710e0a4.xml
|
||||
if [[ ${GNOME_TARBALL_SUFFIX} == "xz" ]]; then
|
||||
if [[ ${EAPI} != [56] ]]; then
|
||||
BDEPEND="app-arch/xz-utils"
|
||||
else
|
||||
DEPEND="app-arch/xz-utils"
|
||||
fi
|
||||
fi
|
||||
[[ ${GNOME_TARBALL_SUFFIX} == "xz" ]] && BDEPEND="app-arch/xz-utils"
|
||||
|
||||
# @ECLASS_VARIABLE: GNOME_ORG_MODULE
|
||||
# @DESCRIPTION:
|
||||
# Name of the module as hosted on gnome.org mirrors.
|
||||
# Leave unset if package name matches module name.
|
||||
: "${GNOME_ORG_MODULE:=$PN}"
|
||||
: "${GNOME_ORG_MODULE:=${PN}}"
|
||||
|
||||
# @ECLASS_VARIABLE: GNOME_ORG_RELEASE
|
||||
# @INTERNAL
|
||||
|
Loading…
x
Reference in New Issue
Block a user