summaryrefslogtreecommitdiff
path: root/eclass/libtool.eclass
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2025-03-08 01:47:45 +0000
committerV3n3RiX <venerix@koprulu.sector>2025-03-08 01:47:45 +0000
commit80e87db4d9ed551615eb2d0309bf370e79500716 (patch)
tree01101a9019196096c237c1c2cbdb02f709c05680 /eclass/libtool.eclass
parentf0582d2144b45247a9a3e72569c44ca9539c0f4a (diff)
gentoo auto-resync : 08:03:2025 - 01:47:44
Diffstat (limited to 'eclass/libtool.eclass')
-rw-r--r--eclass/libtool.eclass19
1 files changed, 16 insertions, 3 deletions
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: