commit:     700a98bf7819e75983576c2359407a71c322e2e0
Author:     Brahmajit Das <listout <AT> listout <DOT> xyz>
AuthorDate: Mon Jan 19 16:18:31 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jan 25 03:42:31 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=700a98bf

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

Signed-off-by: Brahmajit Das <listout <AT> listout.xyz>
Part-of: https://github.com/gentoo/gentoo/pull/45444
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-emacs/nxml-libvirt-schemas/Manifest            |  1 +
 .../nxml-libvirt-schemas-12.0.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 054d7e72914e..e9351e53788f 100644
--- a/app-emacs/nxml-libvirt-schemas/Manifest
+++ b/app-emacs/nxml-libvirt-schemas/Manifest
@@ -1 +1,2 @@
 DIST libvirt-11.10.0.tar.xz 10241776 BLAKE2B 
1950b6d5e98e59f605ff5f5af84e71910fb9093b8c8416832d13223f03ef1dc2079ce061b81af2b3fe285bc8e07ceb14d3cdd91b0c76ae9c8e4cc05ef8dee465
 SHA512 
c494aa45c3989a36830d3c8b8d24ef04d5e747ea2187abb61bf72f00ab827847050da361fcf1b173bd3fa29183172798dfb2770ed04e33c2470a28bc4a976cd9
+DIST libvirt-12.0.0.tar.xz 10272864 BLAKE2B 
63424ba5b341e5091ac7956797c9f1d5b7460457ea40e39c619a09da40f215f2a84e1cd93fb02d8153eaf031618129a58a28284cc9ba759e82224676be55b8f7
 SHA512 
5613e4e59865f688fe4cca2734c6de1cf68d0540c6e3013c9c21e583accd4f4fc21ec98e9c794036c5d6d0c8dd05ad1d22dab61f8c7d2934c8cb507b5bee76ad

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