commit:     4842cf27fdb30a34be93f35ab65a89cb5d95dcec
Author:     Michal Privoznik <michal.privoznik <AT> gmail <DOT> com>
AuthorDate: Wed Jun  4 08:51:02 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jun  4 12:09:50 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4842cf27

app-emacs/nxml-libvirt-schemas: Add 11.4.0

Signed-off-by: Michal Privoznik <michal.privoznik <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/42439
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-emacs/nxml-libvirt-schemas/Manifest            |  1 +
 .../nxml-libvirt-schemas-11.4.0.ebuild             | 45 ++++++++++++++++++++++
 2 files changed, 46 insertions(+)

diff --git a/app-emacs/nxml-libvirt-schemas/Manifest 
b/app-emacs/nxml-libvirt-schemas/Manifest
index 31e215df2d49..f30f5be589f5 100644
--- a/app-emacs/nxml-libvirt-schemas/Manifest
+++ b/app-emacs/nxml-libvirt-schemas/Manifest
@@ -2,3 +2,4 @@ DIST libvirt-10.10.0.tar.xz 9673792 BLAKE2B 
8042ce1493c3ffd6e6deeb7d94d0744da188
 DIST libvirt-11.0.0.tar.xz 9700388 BLAKE2B 
0fc248bfcc505e143fa56560a216ed62ddeb8f8def5eaf32772bc5f0c1ca87f92dc530d9290f6349dc8727590f6148ffb6627e119f1e89fb0e151f1e6346b645
 SHA512 
ac5fd17d3f488c241017d967364e0441373e9ab0457dab1acfe84fd0b90353dc5d185cc7fcd2b0d7995af4137a3fa18371abb5511686456a9e720f7ec7829da9
 DIST libvirt-11.1.0.tar.xz 9775904 BLAKE2B 
81ce8d537d6d069d44b3e24f2091729acd8b04ceea14e5c56188cffa300015aa5215fa64324718cede93d1bf84ae5409936bf7f6c8505b071b8dcc47094da78c
 SHA512 
f491b3c0b0e4b6a96456eba26d72e820141c231fa44f34f2d153b805b046ca869b5d0286cd7e2867ae938e5eab5e04f2995c097d41227914bc87a76800e89bc8
 DIST libvirt-11.2.0.tar.xz 9766976 BLAKE2B 
dc6288c2e61ab2730a8fa907b52061abb5bd3ca2ab28aa6e1e4142ddc00e9f0f4747240cae7dffed87c88fb4c14913a12f1fb3bad6d4079785e397ff78e2cc4c
 SHA512 
78fdc0e7cc09687eb9fdb3d43ceab63018fb06d931669e4a461ddb2612a2367d885f59de14b7770ff164e5a30e487a0dc8c8bdcc778a14c4cf37e0e7db162792
+DIST libvirt-11.4.0.tar.xz 9849020 BLAKE2B 
54d2b9cb35394184d2ce22670623849ecfb54abd1c8e48135ec735ed6b30fa9fa22261cf847a66269a0f3918f164954fcc0a5d7eec1e0d759831925f3ac6b546
 SHA512 
88888b0cf80c1c4350a834d9f462c030235878a57d8723ca13775872cc8d4034c8360536513d8117ab542fd045287f3af0e3f2b70ae26f3af6acaaf3fc3f4c01

diff --git a/app-emacs/nxml-libvirt-schemas/nxml-libvirt-schemas-11.4.0.ebuild 
b/app-emacs/nxml-libvirt-schemas/nxml-libvirt-schemas-11.4.0.ebuild
new file mode 100644
index 000000000000..a08694d1726a
--- /dev/null
+++ b/app-emacs/nxml-libvirt-schemas/nxml-libvirt-schemas-11.4.0.ebuild
@@ -0,0 +1,45 @@
+# 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}"
+}

Reply via email to