mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-16 09:26:58 +02:00
eclass/gnuconfig: Support EAPI 0 and 4
This commit is contained in:
parent
239110c99a
commit
6c07488fe0
@ -1,12 +1,14 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
# Flatcar: Support EAPI 0 and 4.
|
||||||
|
|
||||||
# @ECLASS: gnuconfig.eclass
|
# @ECLASS: gnuconfig.eclass
|
||||||
# @MAINTAINER:
|
# @MAINTAINER:
|
||||||
# Sam James <sam@gentoo.org>
|
# Sam James <sam@gentoo.org>
|
||||||
# @AUTHOR:
|
# @AUTHOR:
|
||||||
# Will Woods <wwoods@gentoo.org>
|
# Will Woods <wwoods@gentoo.org>
|
||||||
# @SUPPORTED_EAPIS: 5 6 7 8
|
# @SUPPORTED_EAPIS: 0 4 5 6 7 8
|
||||||
# @BLURB: Refresh bundled gnuconfig files (config.guess, config.sub)
|
# @BLURB: Refresh bundled gnuconfig files (config.guess, config.sub)
|
||||||
# @DESCRIPTION:
|
# @DESCRIPTION:
|
||||||
# This eclass is used to automatically update files that typically come with
|
# This eclass is used to automatically update files that typically come with
|
||||||
@ -17,7 +19,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
case ${EAPI:-0} in
|
case ${EAPI:-0} in
|
||||||
5|6|7|8) ;;
|
0|4|5|6|7|8) ;;
|
||||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
@ -26,7 +28,7 @@ if [[ -z ${_GNUCONFIG_ECLASS} ]] ; then
|
|||||||
|
|
||||||
BDEPEND="sys-devel/gnuconfig"
|
BDEPEND="sys-devel/gnuconfig"
|
||||||
|
|
||||||
[[ ${EAPI} == [56] ]] && DEPEND="${BDEPEND}"
|
[[ ${EAPI:-0} == [0456] ]] && DEPEND="${BDEPEND}"
|
||||||
|
|
||||||
# @FUNCTION: gnuconfig_update
|
# @FUNCTION: gnuconfig_update
|
||||||
# @USAGE: [file1 file2 ...]
|
# @USAGE: [file1 file2 ...]
|
||||||
@ -105,8 +107,8 @@ gnuconfig_findnewest() {
|
|||||||
local locations=()
|
local locations=()
|
||||||
local prefix
|
local prefix
|
||||||
|
|
||||||
case ${EAPI} in
|
case ${EAPI:-0} in
|
||||||
5|6)
|
0|4|5|6)
|
||||||
prefix="${EPREFIX}"
|
prefix="${EPREFIX}"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
Loading…
Reference in New Issue
Block a user