eclass/autotools: Support EAPI 0 and 4

This commit is contained in:
Krzesimir Nowak 2021-12-21 09:26:52 +01:00
parent fb18341312
commit 907b109ff9

View File

@ -1,10 +1,12 @@
# 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: autotools.eclass # @ECLASS: autotools.eclass
# @MAINTAINER: # @MAINTAINER:
# base-system@gentoo.org # base-system@gentoo.org
# @SUPPORTED_EAPIS: 5 6 7 8 # @SUPPORTED_EAPIS: 0 4 5 6 7 8
# @BLURB: Regenerates auto* build scripts # @BLURB: Regenerates auto* build scripts
# @DESCRIPTION: # @DESCRIPTION:
# This eclass is for safely handling autotooled software packages that need to # This eclass is for safely handling autotooled software packages that need to
@ -26,8 +28,8 @@ fi
if [[ -z ${_AUTOTOOLS_ECLASS} ]] ; then if [[ -z ${_AUTOTOOLS_ECLASS} ]] ; then
_AUTOTOOLS_ECLASS=1 _AUTOTOOLS_ECLASS=1
case ${EAPI} in case ${EAPI:-0} in
5|6) 0|4|5|6)
# Needed for eqawarn # Needed for eqawarn
inherit eutils inherit eutils
;; ;;
@ -129,8 +131,8 @@ RDEPEND=""
# their own DEPEND string. # their own DEPEND string.
: ${AUTOTOOLS_AUTO_DEPEND:=yes} : ${AUTOTOOLS_AUTO_DEPEND:=yes}
if [[ ${AUTOTOOLS_AUTO_DEPEND} != "no" ]] ; then if [[ ${AUTOTOOLS_AUTO_DEPEND} != "no" ]] ; then
case ${EAPI} in case ${EAPI:-0} in
5|6) DEPEND=${AUTOTOOLS_DEPEND} ;; 0|4|5|6) DEPEND=${AUTOTOOLS_DEPEND} ;;
*) BDEPEND=${AUTOTOOLS_DEPEND} ;; *) BDEPEND=${AUTOTOOLS_DEPEND} ;;
esac esac
fi fi
@ -466,8 +468,8 @@ eautopoint() {
config_rpath_update() { config_rpath_update() {
local dst src local dst src
case ${EAPI} in case ${EAPI:-0} in
5|6) 0|4|5|6)
src="${EPREFIX}/usr/share/gettext/config.rpath" src="${EPREFIX}/usr/share/gettext/config.rpath"
;; ;;
*) *)
@ -497,8 +499,8 @@ autotools_env_setup() {
for pv in ${_LATEST_AUTOMAKE[@]/#*:} ; do for pv in ${_LATEST_AUTOMAKE[@]/#*:} ; do
# Break on first hit to respect _LATEST_AUTOMAKE order. # Break on first hit to respect _LATEST_AUTOMAKE order.
local hv_args="" local hv_args=""
case ${EAPI} in case ${EAPI:-0} in
5|6) 0|4|5|6)
hv_args="--host-root" hv_args="--host-root"
;; ;;
7) 7)