eclass/libtool: Sync with Gentoo

It's from Gentoo commit c263fc4e410d5f260eeb0969a350cf7ef00da6ba.
This commit is contained in:
Flatcar Buildbot 2025-03-17 07:08:27 +00:00 committed by Krzesimir Nowak
parent d53013abbc
commit a2fc6c9fa1

View File

@ -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: