gentoo/app-emacs/nxml-libvirt-schemas/nxml-libvirt-schemas-11.8.0.ebuild
Michal Privoznik 1727cf9a22
app-emacs/nxml-libvirt-schemas: Add 11.8.0, drop 11.4.0
Signed-off-by: Michal Privoznik <michal.privoznik@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44234
Closes: https://github.com/gentoo/gentoo/pull/44234
Signed-off-by: Sam James <sam@gentoo.org>
2025-10-18 10:13:51 +01:00

46 lines
1.1 KiB
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
# Packages which get releases together:
# app-emacs/nxml-libvirt-schemas
# dev-python/libvirt-python
# dev-perl/Sys-Virt
# app-emulation/libvirt
# Please bump them together!
inherit elisp
MY_P="libvirt-${PV}"
DESCRIPTION="Extension for nxml-mode with libvirt schemas"
HOMEPAGE="https://www.libvirt.org/"
SRC_URI="https://download.libvirt.org/${MY_P}.tar.xz"
S="${WORKDIR}/${MY_P%-rc*}/src/conf/schemas"
# This is the license of the package, but the schema files are
# provided without license, maybe it's bad.
LICENSE="LGPL-2.1+"
SLOT="0"
KEYWORDS="~amd64"
# Yes this requires Java, but I'd rather not repackage this, if you
# know something better in C, I'll be glad to use that.
BDEPEND="app-text/trang"
SITEFILE="60${PN}-gentoo.el"
src_compile() {
emake -f - <<'EOF'
all: $(patsubst %.rng,%.rnc,$(wildcard *.rng))
%.rnc: %.rng
trang -I rng -O rnc $< $@
EOF
}
src_install() {
insinto "${SITEETC}/${PN}"
doins "${FILESDIR}"/schemas.xml *.rnc
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
}