mirror of
https://github.com/flatcar/scripts.git
synced 2025-10-02 02:51:06 +02:00
eclass/cmake-multilib: Support EAPI 6
This commit is contained in:
parent
9142c184e9
commit
6229813ce8
@ -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 6.
|
||||||
|
|
||||||
# @ECLASS: cmake-multilib.eclass
|
# @ECLASS: cmake-multilib.eclass
|
||||||
# @MAINTAINER:
|
# @MAINTAINER:
|
||||||
# Michał Górny <mgorny@gentoo.org>
|
# Michał Górny <mgorny@gentoo.org>
|
||||||
# @AUTHOR:
|
# @AUTHOR:
|
||||||
# Author: Michał Górny <mgorny@gentoo.org>
|
# Author: Michał Górny <mgorny@gentoo.org>
|
||||||
# @SUPPORTED_EAPIS: 7 8
|
# @SUPPORTED_EAPIS: 6 7 8
|
||||||
# @PROVIDES: cmake cmake-utils multilib-minimal
|
# @PROVIDES: cmake cmake-utils multilib-minimal
|
||||||
# @BLURB: cmake wrapper for multilib builds
|
# @BLURB: cmake wrapper for multilib builds
|
||||||
# @DESCRIPTION:
|
# @DESCRIPTION:
|
||||||
@ -20,7 +22,7 @@
|
|||||||
# in multilib-minimal, yet they ought to call appropriate cmake
|
# in multilib-minimal, yet they ought to call appropriate cmake
|
||||||
# phase rather than 'default'.
|
# phase rather than 'default'.
|
||||||
|
|
||||||
[[ ${EAPI} == 7 ]] && : ${CMAKE_ECLASS:=cmake-utils}
|
[[ ${EAPI} == [67] ]] && : ${CMAKE_ECLASS:=cmake-utils}
|
||||||
# @ECLASS-VARIABLE: CMAKE_ECLASS
|
# @ECLASS-VARIABLE: CMAKE_ECLASS
|
||||||
# @PRE_INHERIT
|
# @PRE_INHERIT
|
||||||
# @DESCRIPTION:
|
# @DESCRIPTION:
|
||||||
@ -36,7 +38,7 @@
|
|||||||
_CMAKE_ECLASS_IMPL=cmake
|
_CMAKE_ECLASS_IMPL=cmake
|
||||||
|
|
||||||
case ${EAPI} in
|
case ${EAPI} in
|
||||||
7|8)
|
6|7|8)
|
||||||
case ${CMAKE_ECLASS} in
|
case ${CMAKE_ECLASS} in
|
||||||
cmake-utils|cmake) ;;
|
cmake-utils|cmake) ;;
|
||||||
*)
|
*)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user