From 734d2dac3e96161f025c33aa2d518d798cd06580 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 22 Nov 2023 05:13:16 +0000 Subject: gentoo auto-resync : 22:11:2023 - 05:13:16 --- eclass/Manifest.gz | Bin 38941 -> 38933 bytes eclass/toolchain-autoconf.eclass | 18 ++++++++++++++---- 2 files changed, 14 insertions(+), 4 deletions(-) (limited to 'eclass') diff --git a/eclass/Manifest.gz b/eclass/Manifest.gz index dbbc83fb4613..4c6068565f3b 100644 Binary files a/eclass/Manifest.gz and b/eclass/Manifest.gz differ diff --git a/eclass/toolchain-autoconf.eclass b/eclass/toolchain-autoconf.eclass index ed8d5ff1412a..137f0efac159 100644 --- a/eclass/toolchain-autoconf.eclass +++ b/eclass/toolchain-autoconf.eclass @@ -30,7 +30,14 @@ _TOOLCHAIN_AUTOCONF_ECLASS=1 # @ECLASS_VARIABLE: TC_AUTOCONF_INFOPATH # @DESCRIPTION: # Where to install info files if not slotting. -TC_AUTOCONF_INFOPATH="${EPREFIX}/usr/share/autoconf-${PV}/info" +TC_AUTOCONF_INFOPATH="${EPREFIX}/usr/share/${P}/info" + +# @ECLASS_VARIABLE: TC_AUTOCONF_ENVPREFIX +# @DESCRIPTION: +# Prefix number for env.d files produced by this eclass. Defaults to +# 06. Note that the generated env.d filename format is +# "${TC_AUTOCONF_ENVPREFIX}${PN}$((99999-(major*1000+minor)))" +: "${TC_AUTOCONF_ENVPREFIX:=06}" toolchain-autoconf_src_prepare() { find -name Makefile.in -exec sed -i '/^pkgdatadir/s:$:-@VERSION@:' {} + || die @@ -40,15 +47,18 @@ toolchain-autoconf_src_prepare() { toolchain-autoconf_src_configure() { # Disable Emacs in the build system since it is in a separate package. export EMACS=no + + MY_P="${P#autoconf-}" + local myconf=( - --program-suffix="-${PV}" + --program-suffix="-${MY_P}" ) if [[ -z "${TC_AUTOCONF_BREAK_INFOS}" && "${SLOT}" != 0 ]]; then myconf+=( --infodir="${TC_AUTOCONF_INFOPATH}" ) fi - econf "${myconf[@]}" || die + econf "${myconf[@]}" "${@}" || die # econf updates config.{sub,guess} which forces the manpages # to be regenerated which we dont want to do #146621 touch man/*.1 @@ -95,7 +105,7 @@ toolchain-autoconf_src_install() { local major="$(ver_cut 1)" local minor="$(ver_cut 2)" local idx="$((99999-(major*1000+minor)))" - newenvd - "06autoconf${idx}" <<-EOF + newenvd - "${TC_AUTOCONF_ENVPREFIX}${PN}${idx}" <<-EOF INFOPATH="${TC_AUTOCONF_INFOPATH}" EOF -- cgit v1.2.3