eclass/ltprune: Sync with gentoo

It's from gentoo commit 38092efc6cdf12267c794a4f9b8a4a656d27af6c.
This commit is contained in:
Krzesimir Nowak 2021-12-21 10:41:05 +01:00
parent afe2775187
commit e6c6bb3e78

View File

@ -1,4 +1,4 @@
# Copyright 1999-2019 Gentoo Authors # Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
# @ECLASS: ltprune.eclass # @ECLASS: ltprune.eclass
@ -6,12 +6,13 @@
# Michał Górny <mgorny@gentoo.org> # Michał Górny <mgorny@gentoo.org>
# @SUPPORTED_EAPIS: 0 1 2 3 4 5 6 # @SUPPORTED_EAPIS: 0 1 2 3 4 5 6
# @BLURB: Smart .la file pruning # @BLURB: Smart .la file pruning
# @DEPRECATED: none
# @DESCRIPTION: # @DESCRIPTION:
# A function to locate and remove unnecessary .la files. # A function to locate and remove unnecessary .la files.
# #
# Discouraged. Whenever possible, please use much simpler: # Discouraged. Whenever possible, please use much simpler:
# @CODE # @CODE
# find "${D}" -name '*.la' -type f -delete || die # find "${ED}" -name '*.la' -delete || die
# @CODE # @CODE
if [[ -z ${_LTPRUNE_ECLASS} ]]; then if [[ -z ${_LTPRUNE_ECLASS} ]]; then