summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-07-16 23:20:05 +0100
committerSam James <sam@gentoo.org>2023-11-22 00:00:05 +0000
commit5bc696cb73b16a50be83fede86c06282d0abe963 (patch)
treeffe72118172c8d186b8e6c67bb3101a5aa03538f /eclass/toolchain-autoconf.eclass
parentdev-qt/qtgui: Stabilize 5.15.11-r1 arm, #916753 (diff)
downloadgentoo-5bc696cb73b16a50be83fede86c06282d0abe963.tar.gz
gentoo-5bc696cb73b16a50be83fede86c06282d0abe963.tar.bz2
gentoo-5bc696cb73b16a50be83fede86c06282d0abe963.zip
toolchain-autoconf.eclass: handle different PN
Prepare for autoconf-vanilla. Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass/toolchain-autoconf.eclass')
-rw-r--r--eclass/toolchain-autoconf.eclass7
1 files changed, 5 insertions, 2 deletions
diff --git a/eclass/toolchain-autoconf.eclass b/eclass/toolchain-autoconf.eclass
index ed8d5ff1412a..0211d810f6a2 100644
--- a/eclass/toolchain-autoconf.eclass
+++ b/eclass/toolchain-autoconf.eclass
@@ -30,7 +30,7 @@ _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"
toolchain-autoconf_src_prepare() {
find -name Makefile.in -exec sed -i '/^pkgdatadir/s:$:-@VERSION@:' {} + || die
@@ -40,8 +40,11 @@ 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+=(