commit:     99d04794e4a8e4e89c099bc5048fffac8cb4c3a9
Author:     Michal Privoznik <michal.privoznik <AT> gmail <DOT> com>
AuthorDate: Sat Apr  5 14:39:38 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Apr  8 09:46:00 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99d04794

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

Signed-off-by: Michal Privoznik <michal.privoznik <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-emacs/nxml-libvirt-schemas/Manifest            |  1 +
 .../nxml-libvirt-schemas-11.2.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 ff0e0aa60749..31e215df2d49 100644
--- a/app-emacs/nxml-libvirt-schemas/Manifest
+++ b/app-emacs/nxml-libvirt-schemas/Manifest
@@ -1,3 +1,4 @@
 DIST libvirt-10.10.0.tar.xz 9673792 BLAKE2B 
8042ce1493c3ffd6e6deeb7d94d0744da18850fe416480487a57ffd33bf3390f587849f308aad12fd38c887628f90137ba717ea11ef7e0f73a97b157fa985a6e
 SHA512 
b4e8a5f7d5c15387e5f3e82ac9661feb6e89c6b3b13d869bca63d9686e1e1e8d193a1fc84a19a09b3da1c868837ee76d1b3964a6e5f7ad5d669449b0a6aa4b53
 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

diff --git a/app-emacs/nxml-libvirt-schemas/nxml-libvirt-schemas-11.2.0.ebuild 
b/app-emacs/nxml-libvirt-schemas/nxml-libvirt-schemas-11.2.0.ebuild
new file mode 100644
index 000000000000..a08694d1726a
--- /dev/null
+++ b/app-emacs/nxml-libvirt-schemas/nxml-libvirt-schemas-11.2.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