summaryrefslogtreecommitdiff
path: root/app-emacs/nxml-libvirt-schemas
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-emacs/nxml-libvirt-schemas
reinit the tree, so we can have metadata
Diffstat (limited to 'app-emacs/nxml-libvirt-schemas')
-rw-r--r--app-emacs/nxml-libvirt-schemas/Manifest10
-rw-r--r--app-emacs/nxml-libvirt-schemas/files/60nxml-libvirt-schemas-gentoo.el5
-rw-r--r--app-emacs/nxml-libvirt-schemas/files/Makefile-trang6
-rw-r--r--app-emacs/nxml-libvirt-schemas/files/schemas.xml12
-rw-r--r--app-emacs/nxml-libvirt-schemas/metadata.xml12
-rw-r--r--app-emacs/nxml-libvirt-schemas/nxml-libvirt-schemas-0.9.7.ebuild54
-rw-r--r--app-emacs/nxml-libvirt-schemas/nxml-libvirt-schemas-1.2.1.ebuild54
7 files changed, 153 insertions, 0 deletions
diff --git a/app-emacs/nxml-libvirt-schemas/Manifest b/app-emacs/nxml-libvirt-schemas/Manifest
new file mode 100644
index 000000000000..544fc50f9cb7
--- /dev/null
+++ b/app-emacs/nxml-libvirt-schemas/Manifest
@@ -0,0 +1,10 @@
+AUX 60nxml-libvirt-schemas-gentoo.el 206 SHA256 38e8b44242273597c40be36d0b334f130cdf7892f39bfcf0ab1cf3262de65eae SHA512 5592edb5663066fcccaf5b05c3df671b4069d4d259376a8a91ef3f7ae5990687b15dfdf40e6f7aa6cc7d62b7cdaa5090fd851de0ed2718d20ecfe3e3a78530ea WHIRLPOOL 6a30fb0ebb54d3c9ef018c4e108c89e78ff084a9ecc3a58ca72991e989e9c7f148a2e1882258fee2ecf30bafd9e53a466efb251d144f81065444f4d4d9818241
+AUX Makefile-trang 108 SHA256 e456e90cca7a1cbaf65cb39ae360b17b48fb2178f1ef2c844dabe781b6a8ac83 SHA512 3544959cc57ce1b273e4b9de95f51e1e21d23cc35fb48e02f179a055a61ee9092efdc43405f72c3aacb3c74eada7fabf5952eb49e3ff0514fd69a3092268dc4f WHIRLPOOL 9ac3f0bfc60fae61347b74cfb9ecb787512fd8277540ea3c3dd9ca44842f8aaf93ef16119d17a5cd0f2a54d231cf373622e28bbaea51a3845e2a95bbe7e43581
+AUX schemas.xml 560 SHA256 f29d2f140b62dfc4ed087ee6dc30c428e2f095f5929dd844dec1bd77f2050bec SHA512 82ef6189610fc4e1a0d5546ae15f2f315e7c0d460fa141201c43a93e59d147613c7186302fdc3e6b2f0ec5c343e5566966892d4e9f55dc4957e4ad58793fc3ff WHIRLPOOL f16a1337d0da52d789bb33636864cb886df0e44ca46fe643da61e8c4d002a580234af6e5ea88b5d852bc5313538f8abdc762c564ca30f2771214a9ae1e431f12
+DIST libvirt-0.9.7.tar.gz 17853636 SHA256 29ff05bfe5177d6680c02c279ed2573dcfae993f2824bffa192a3a2cdd05af23 SHA512 ac082f3872b37fc7aad891ba3f2a9614bdc85123b3d626fc7a2e43327a7ec346a0ec154c25161592a4337e3f694d9b27d031544190dec7d6086343f15fe9ba2d WHIRLPOOL 1704503c979b20a7bb31da4007724b7fd537d7f4f95dc7c0d8929d24f5f7c297c4d1f4d4d2a541265fa9c87b2bfba1d27a8b61c9ab29b092916dedb7a5a52a23
+DIST libvirt-1.2.1.tar.gz 27228694 SHA256 bc29b5751bf36753c17e2fdbb75e70c7b07df3d9527586d3426e90f5f4abb898 SHA512 6184840623156ca01ee7f59078ebf031bc84c25b37bb110372c7bcf230a79b74e267475f989fb73db5e3c096dcc74f03cb30adfc5de022f756ed2cd6ab05bfd0 WHIRLPOOL 75c2a37b1101950474aad8931d999564ff575512d38c9e8d2cf989cef3ad7057853046b738b20bd77be80c1e6677319aea7227797ae95ce91512dc36bd05a142
+EBUILD nxml-libvirt-schemas-0.9.7.ebuild 1293 SHA256 267be00dca4a4f06fad1a4fd9bb74662f23013b1af322e01eecc0c2f2fcf51a4 SHA512 1cf461b494a820e22b870620dccab37ae225361ab6406b5d22c7b1c04a6291175ef52d081cdffc5146f5865e1b2342d8345e2bf4e36d9eb9e2bc06161627de55 WHIRLPOOL 8a07b56631e5c802a5939efc0cca1dc98530a2c0dc3549320a3553c86917a5bc4d499c51e6ec81b12dcc692dd1a22735a7e4d81e6ad91fe4aa0d8b69309f395a
+EBUILD nxml-libvirt-schemas-1.2.1.ebuild 1293 SHA256 12dd591362596ab31afc2577742b1ccb5ca29482a970f644aad9cf9d9ab54c2b SHA512 265f6a389fc41b15d31fb257a77c7b7fe5e7796988b3aea592c5f2cf09fdcd321e151cd09ec2cbeb2403ddd86cf1029b0598264ff4fa0e764d58a73e813701a6 WHIRLPOOL 530d366e155ed8678961d5bd50bb059d809ae20552cb06e8f7540efdbe30345b654dab0986fb3e0becd04f6ccfa96ac2c6d8fe47b6cd29535561da86191c9073
+MISC ChangeLog 2891 SHA256 371dd2c34946b4fbe7b3f3d411a14ccc562431d26674503e5d78e8eef11ee00c SHA512 9bafc17b500fd3976ce459f0b069960eccb4e8d9f15c542af4b816d1452be7a564833ebe8843da83db44304e16e24c4a35c27e4c3efd7889206c4b64ca3f457c WHIRLPOOL 8d023853db34fa2f7ca47f513631befb0860daabbfa13a3401d52d9d47673a19f1da64cdbb589121ece690aa89d6791385ec06e9c1803adae18381c913540e26
+MISC ChangeLog-2015 2353 SHA256 2ae332a9c59b3d61eea9a002d2b2de018c5f3f1f5469241ab21ebdb278328cc9 SHA512 dee430db82282b44a03392eb7f085f6378a74893fbe23aea313e47bd75128a4ceed4ce7904baf140375d512870e7214819d31ba93799aea9ebf90106100cbd35 WHIRLPOOL 78274eda04215b4bcc52ab22e3a049e4214f662e0a57cccb008f5197ada4d347f82f996df58ec17e167b6161a1cd513976ea35c4c4243499476b252b7ad920a6
+MISC metadata.xml 389 SHA256 3e936d94cc665ddad0d7c0cc29c7439d1e079749eceb90850ee3dedec5e03cef SHA512 5def622fb849779446a7026e11f2f9216c70da203712c4611ac21b0c487adb050159a7775906da34184bed12e4d12033e730722d152670524b4c29bd422f9307 WHIRLPOOL d7497b4b462774581af25ad472c58d5cf38a9071676a1db9a588eb7a658d0e814df32eb3978987cf13508824d76b84f7e5b7ed966985de87902d84c1e78f7538
diff --git a/app-emacs/nxml-libvirt-schemas/files/60nxml-libvirt-schemas-gentoo.el b/app-emacs/nxml-libvirt-schemas/files/60nxml-libvirt-schemas-gentoo.el
new file mode 100644
index 000000000000..c574746e6576
--- /dev/null
+++ b/app-emacs/nxml-libvirt-schemas/files/60nxml-libvirt-schemas-gentoo.el
@@ -0,0 +1,5 @@
+;; This must be executed after rng-schema-locating-files
+;; is set in rng-loc (which is part of nxml-mode).
+(eval-after-load "rng-loc"
+ '(add-to-list 'rng-schema-locating-files
+ "@SITEETC@/schemas.xml"))
diff --git a/app-emacs/nxml-libvirt-schemas/files/Makefile-trang b/app-emacs/nxml-libvirt-schemas/files/Makefile-trang
new file mode 100644
index 000000000000..699cf676ff45
--- /dev/null
+++ b/app-emacs/nxml-libvirt-schemas/files/Makefile-trang
@@ -0,0 +1,6 @@
+# -*- makefile -*-
+
+all: $(patsubst %.rng,%.rnc,$(wildcard *.rng))
+
+%.rnc: %.rng
+ trang -I rng -O rnc $< $@
diff --git a/app-emacs/nxml-libvirt-schemas/files/schemas.xml b/app-emacs/nxml-libvirt-schemas/files/schemas.xml
new file mode 100644
index 000000000000..47936ab24a16
--- /dev/null
+++ b/app-emacs/nxml-libvirt-schemas/files/schemas.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<locatingRules xmlns="http://thaiopensource.com/ns/locating-rules/1.0">
+ <!-- As far as I can see there is no way to apply more than one to
+ search for a file, so we're going to use some very generic
+ locating rules… yes it's bad, but upstream libvirt doesn't
+ intend to change that anytime soon.
+ -->
+
+ <documentElement localName="domain" uri="domain.rnc" />
+ <documentElement localName="pool" uri="storagepool.rnc" />
+ <documentElement localName="network" uri="network.rnc" />
+</locatingRules>
diff --git a/app-emacs/nxml-libvirt-schemas/metadata.xml b/app-emacs/nxml-libvirt-schemas/metadata.xml
new file mode 100644
index 000000000000..95fec7fcdfc1
--- /dev/null
+++ b/app-emacs/nxml-libvirt-schemas/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>gnu-emacs@gentoo.org</email>
+ <name>Gentoo GNU Emacs project</name>
+</maintainer>
+<maintainer type="project">
+ <email>virtualization@gentoo.org</email>
+ <name>Gentoo Virtualization Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/app-emacs/nxml-libvirt-schemas/nxml-libvirt-schemas-0.9.7.ebuild b/app-emacs/nxml-libvirt-schemas/nxml-libvirt-schemas-0.9.7.ebuild
new file mode 100644
index 000000000000..9a8a326fa0db
--- /dev/null
+++ b/app-emacs/nxml-libvirt-schemas/nxml-libvirt-schemas-0.9.7.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+#BACKPORTS=
+
+inherit elisp eutils
+
+MY_P="libvirt-${PV/_rc/-rc}"
+
+DESCRIPTION="Extension for nxml-mode with libvirt schemas"
+HOMEPAGE="http://www.libvirt.org/"
+SRC_URI="http://libvirt.org/sources/${MY_P}.tar.gz
+ ${BACKPORTS:+mirror://gentoo/${MY_P}-backports-${BACKPORTS}.tar.bz2}"
+
+# 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 ~x86"
+
+# 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.
+DEPEND="app-text/trang"
+RDEPEND=""
+
+SITEFILE="60${PN}-gentoo.el"
+S="${WORKDIR}/${MY_P%-rc*}"
+
+src_prepare() {
+ if [[ -d "${WORKDIR}/patches" ]]; then
+ EPATCH_SUFFIX="patch" \
+ EPATCH_FORCE="yes" \
+ EPATCH_SOURCE="${WORKDIR}/patches" \
+ epatch
+ fi
+}
+
+src_compile() {
+ emake -C docs/schemas -f "${FILESDIR}/Makefile-trang"
+}
+
+src_test() {
+ # No we don't need tests here... trang will take care of checking
+ # the well-formedness of the schema files for us
+ :
+}
+
+src_install() {
+ insinto ${SITEETC}/${PN}
+ doins "${FILESDIR}/schemas.xml" docs/schemas/*.rnc
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+}
diff --git a/app-emacs/nxml-libvirt-schemas/nxml-libvirt-schemas-1.2.1.ebuild b/app-emacs/nxml-libvirt-schemas/nxml-libvirt-schemas-1.2.1.ebuild
new file mode 100644
index 000000000000..7c423e6fa2ed
--- /dev/null
+++ b/app-emacs/nxml-libvirt-schemas/nxml-libvirt-schemas-1.2.1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+#BACKPORTS=
+
+inherit elisp eutils
+
+MY_P="libvirt-${PV/_rc/-rc}"
+
+DESCRIPTION="Extension for nxml-mode with libvirt schemas"
+HOMEPAGE="http://www.libvirt.org/"
+SRC_URI="http://libvirt.org/sources/${MY_P}.tar.gz
+ ${BACKPORTS:+mirror://gentoo/${MY_P}-backports-${BACKPORTS}.tar.bz2}"
+
+# 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 ~x86"
+
+# 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.
+DEPEND="app-text/trang"
+RDEPEND=""
+
+SITEFILE="60${PN}-gentoo.el"
+S="${WORKDIR}/${MY_P%-rc*}"
+
+src_prepare() {
+ if [[ -d "${WORKDIR}/patches" ]]; then
+ EPATCH_SUFFIX="patch" \
+ EPATCH_FORCE="yes" \
+ EPATCH_SOURCE="${WORKDIR}/patches" \
+ epatch
+ fi
+}
+
+src_compile() {
+ emake -C docs/schemas -f "${FILESDIR}/Makefile-trang"
+}
+
+src_test() {
+ # No we don't need tests here... trang will take care of checking
+ # the well-formedness of the schema files for us
+ :
+}
+
+src_install() {
+ insinto ${SITEETC}/${PN}
+ doins "${FILESDIR}/schemas.xml" docs/schemas/*.rnc
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+}