summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorArsen Arsenović <arsen@gentoo.org>2023-11-04 01:40:38 +0100
committerSam James <sam@gentoo.org>2023-11-22 00:00:06 +0000
commit3090afd2a0f41d9183f2dbb580df7df9c6e3a0e3 (patch)
tree7837e4e1208f6e427f92f090ce7b526ffca4beb7 /eclass
parentsys-devel/autoconf-vanilla: new package, add 2.13, 2.69, 2.71, 2.72c, 9999 (diff)
downloadgentoo-3090afd2a0f41d9183f2dbb580df7df9c6e3a0e3.tar.gz
gentoo-3090afd2a0f41d9183f2dbb580df7df9c6e3a0e3.tar.bz2
gentoo-3090afd2a0f41d9183f2dbb580df7df9c6e3a0e3.zip
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@gentoo.org> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain-autoconf.eclass9
1 files changed, 8 insertions, 1 deletions
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