commit:     ecd4879bcf408a0901985f3d83850fa522a6551e
Author:     Brahmajit Das <listout <AT> listout <DOT> xyz>
AuthorDate: Thu Mar  5 01:05:19 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Mar  5 23:15:59 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ecd4879b

app-emacs/nxml-libvirt-schemas: add 12.1.0

Signed-off-by: Brahmajit Das <listout <AT> listout.xyz>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/218
Merges: https://codeberg.org/gentoo/gentoo/pulls/218
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-emacs/nxml-libvirt-schemas/Manifest            |  1 +
 .../nxml-libvirt-schemas-12.1.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 e9351e53788f..e7f8c555622d 100644
--- a/app-emacs/nxml-libvirt-schemas/Manifest
+++ b/app-emacs/nxml-libvirt-schemas/Manifest
@@ -1,2 +1,3 @@
 DIST libvirt-11.10.0.tar.xz 10241776 BLAKE2B 
1950b6d5e98e59f605ff5f5af84e71910fb9093b8c8416832d13223f03ef1dc2079ce061b81af2b3fe285bc8e07ceb14d3cdd91b0c76ae9c8e4cc05ef8dee465
 SHA512 
c494aa45c3989a36830d3c8b8d24ef04d5e747ea2187abb61bf72f00ab827847050da361fcf1b173bd3fa29183172798dfb2770ed04e33c2470a28bc4a976cd9
 DIST libvirt-12.0.0.tar.xz 10272864 BLAKE2B 
63424ba5b341e5091ac7956797c9f1d5b7460457ea40e39c619a09da40f215f2a84e1cd93fb02d8153eaf031618129a58a28284cc9ba759e82224676be55b8f7
 SHA512 
5613e4e59865f688fe4cca2734c6de1cf68d0540c6e3013c9c21e583accd4f4fc21ec98e9c794036c5d6d0c8dd05ad1d22dab61f8c7d2934c8cb507b5bee76ad
+DIST libvirt-12.1.0.tar.xz 10450056 BLAKE2B 
3093d73049bf1cf6ba2f49eeecc9251f4c0c3338c4124970b821c47bdacb7388fdb0b0d01ef40bde28289a6a506e54d93c6ebdc042df9ef89a2f916bdf43c0ca
 SHA512 
5969f50cb3709a8511add41da9a6d9c19d41c6394ec6f7048668deb6b31303fc5740252f3df49124be9149db50da6109d3b9ccc76a78ddaea3bb311358004b2d

diff --git a/app-emacs/nxml-libvirt-schemas/nxml-libvirt-schemas-12.1.0.ebuild 
b/app-emacs/nxml-libvirt-schemas/nxml-libvirt-schemas-12.1.0.ebuild
new file mode 100644
index 000000000000..9c1294844816
--- /dev/null
+++ b/app-emacs/nxml-libvirt-schemas/nxml-libvirt-schemas-12.1.0.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2026 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