mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-05 12:16:41 +02:00
eclass/sgml-catalog-r1: Sync with Gentoo
It's from Gentoo commit 1d1c7ad8baf8e33ce44e30724966890e88d0c349. Signed-off-by: Flatcar Buildbot <buildbot@flatcar-linux.org>
This commit is contained in:
parent
ca337131e1
commit
b716725ead
@ -6,20 +6,20 @@
|
||||
# Michał Górny <mgorny@gentoo.org>
|
||||
# @AUTHOR:
|
||||
# Michał Górny <mgorny@gentoo.org>
|
||||
# @SUPPORTED_EAPIS: 7 8
|
||||
# @SUPPORTED_EAPIS: 7 8 9
|
||||
# @BLURB: Functions for installing SGML catalogs
|
||||
# @DESCRIPTION:
|
||||
# This eclass regenerates /etc/sgml/catalog as necessary for the DocBook
|
||||
# tooling. This is done via exported pkg_postinst and pkg_postrm phases.
|
||||
|
||||
case ${EAPI} in
|
||||
7|8) ;;
|
||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||
esac
|
||||
|
||||
if [[ -z ${_SGML_CATALOG_R1_ECLASS} ]]; then
|
||||
_SGML_CATALOG_R1_ECLASS=1
|
||||
|
||||
case ${EAPI} in
|
||||
7|8|9) ;;
|
||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||
esac
|
||||
|
||||
if [[ ${CATEGORY}/${PN} != app-text/sgml-common ]]; then
|
||||
RDEPEND=">=app-text/sgml-common-0.6.3-r7"
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user