eclass/tmpfiles: Sync with Gentoo

It's from Gentoo commit 0b999ae3827969168427437e5d1d9aff39e4e56a.

The updated dev-libs/cyrus-sasl started using EAPI 8, and the tmpfiles
eclass did not support it. Update it to gain support for EAPI 8 too.
This commit is contained in:
Krzesimir Nowak 2022-08-18 11:45:29 +02:00
parent 3eb1461237
commit 19633c28d2

View File

@ -1,4 +1,4 @@
# Copyright 2016-2021 Gentoo Authors # Copyright 2016-2022 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: tmpfiles.eclass # @ECLASS: tmpfiles.eclass
@ -8,7 +8,7 @@
# @AUTHOR: # @AUTHOR:
# Mike Gilbert <floppym@gentoo.org> # Mike Gilbert <floppym@gentoo.org>
# William Hubbs <williamh@gentoo.org> # William Hubbs <williamh@gentoo.org>
# @SUPPORTED_EAPIS: 5 6 7 # @SUPPORTED_EAPIS: 5 6 7 8
# @BLURB: Functions related to tmpfiles.d files # @BLURB: Functions related to tmpfiles.d files
# @DESCRIPTION: # @DESCRIPTION:
# This eclass provides functionality related to installing and # This eclass provides functionality related to installing and
@ -52,15 +52,15 @@
# #
# @CODE # @CODE
if [[ -z ${TMPFILES_ECLASS} ]]; then if [[ -z ${_TMPFILES_ECLASS} ]]; then
TMPFILES_ECLASS=1 _TMPFILES_ECLASS=1
case "${EAPI}" in case "${EAPI}" in
5|6|7) ;; 5|6|7|8) ;;
*) die "API is undefined for EAPI ${EAPI}" ;; *) die "API is undefined for EAPI ${EAPI}" ;;
esac esac
# @ECLASS-VARIABLE: TMPFILES_OPTIONAL # @ECLASS_VARIABLE: TMPFILES_OPTIONAL
# @PRE_INHERIT # @PRE_INHERIT
# @DEFAULT_UNSET # @DEFAULT_UNSET
# @DESCRIPTION: # @DESCRIPTION: