summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
Diffstat (limited to 'eclass')
-rw-r--r--eclass/Manifest.gzbin40193 -> 40195 bytes
-rw-r--r--eclass/autotools.eclass2
-rw-r--r--eclass/libtool.eclass19
3 files changed, 18 insertions, 3 deletions
diff --git a/eclass/Manifest.gz b/eclass/Manifest.gz
index 689fcb1c7266..745cf0bcddd8 100644
--- a/eclass/Manifest.gz
+++ b/eclass/Manifest.gz
Binary files differ
diff --git a/eclass/autotools.eclass b/eclass/autotools.eclass
index a36b6ba859be..1545b88bc426 100644
--- a/eclass/autotools.eclass
+++ b/eclass/autotools.eclass
@@ -32,6 +32,7 @@ case ${EAPI} in
esac
GNUCONFIG_AUTO_DEPEND=no
+LIBTOOL_AUTO_DEPEND=no
inherit gnuconfig libtool
# @ECLASS_VARIABLE: WANT_AUTOCONF
@@ -152,6 +153,7 @@ fi
# versions in *DEPEND format.
AUTOTOOLS_DEPEND="
${GNUCONFIG_DEPEND}
+ ${LIBTOOL_DEPEND}
${_automake_atom}
${_autoconf_atom}
${_libtool_atom}
diff --git a/eclass/libtool.eclass b/eclass/libtool.eclass
index 8ffc06d6ff98..18596a922307 100644
--- a/eclass/libtool.eclass
+++ b/eclass/libtool.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: libtool.eclass
@@ -22,10 +22,23 @@ case ${EAPI} in
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
-BDEPEND=">=app-portage/elt-patches-20240116"
-
inherit toolchain-funcs
+# @ECLASS_VARIABLE: LIBTOOL_DEPEND
+# @OUTPUT_VARIABLE
+# @DESCRIPTION:
+# Contains dependency on app-portage/elt-patches in *DEPEND format.
+LIBTOOL_DEPEND=">=app-portage/elt-patches-20250306"
+
+# @ECLASS_VARIABLE: LIBTOOL_AUTO_DEPEND
+# @PRE_INHERIT
+# @DESCRIPTION:
+# Set to 'no' to disable automatically adding to DEPEND. This lets
+# ebuilds form conditional depends by using ${LIBTOOL_DEPEND} in
+# their own DEPEND string.
+: "${LIBTOOL_AUTO_DEPEND:=yes}"
+[[ ${LIBTOOL_AUTO_DEPEND} != "no" ]] && BDEPEND=${LIBTOOL_DEPEND}
+
# @FUNCTION: elibtoolize
# @USAGE: [dirs] [--portage] [--reverse-deps] [--patch-only] [--remove-internal-dep=xxx] [--shallow] [--no-uclibc]
# @DESCRIPTION: