eclass/preserve-libs: Sync with gentoo

It's from gentoo commit 6762a2adb04570a3d4aff01c519cef323a3622df.
This commit is contained in:
Krzesimir Nowak 2021-12-21 10:51:23 +01:00
parent 3ba5570ef3
commit b5d401dc6b

View File

@ -1,11 +1,17 @@
# Copyright 1999-2018 Gentoo Foundation # Copyright 1999-2021 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: preserve-libs.eclass # @ECLASS: preserve-libs.eclass
# @MAINTAINER: # @MAINTAINER:
# base-system@gentoo.org # base-system@gentoo.org
# @SUPPORTED_EAPIS: 5 6 7
# @BLURB: preserve libraries after SONAME changes # @BLURB: preserve libraries after SONAME changes
case ${EAPI:-0} in
[567]) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
if [[ -z ${_PRESERVE_LIBS_ECLASS} ]]; then if [[ -z ${_PRESERVE_LIBS_ECLASS} ]]; then
_PRESERVE_LIBS_ECLASS=1 _PRESERVE_LIBS_ECLASS=1