commit: 3090afd2a0f41d9183f2dbb580df7df9c6e3a0e3 Author: Arsen Arsenović <arsen <AT> gentoo <DOT> org> AuthorDate: Sat Nov 4 00:40:38 2023 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed Nov 22 00:00:06 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3090afd2
toolchain-autoconf.eclass: Add TC_AUTOCONF_ENVPREFIX This variable allows packages like autoconf-vanilla to adjust their priority in env.d concatenation. Signed-off-by: Arsen Arsenović <arsen <AT> gentoo.org> Signed-off-by: Sam James <sam <AT> gentoo.org> eclass/toolchain-autoconf.eclass | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/eclass/toolchain-autoconf.eclass b/eclass/toolchain-autoconf.eclass index b2c3a4884282..137f0efac159 100644 --- a/eclass/toolchain-autoconf.eclass +++ b/eclass/toolchain-autoconf.eclass @@ -32,6 +32,13 @@ _TOOLCHAIN_AUTOCONF_ECLASS=1 # Where to install info files if not slotting. 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 default @@ -98,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