summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2009-12-16 19:12:59 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2009-12-16 19:12:59 +0000
commit2d83a32cf6c468bccb07f4cda3e988540ae4da60 (patch)
treeeff59a39dd614273b3d9ccc8d4c54075addef74e /app-emacs
parentVersion bump (diff)
downloadhistorical-2d83a32cf6c468bccb07f4cda3e988540ae4da60.tar.gz
historical-2d83a32cf6c468bccb07f4cda3e988540ae4da60.tar.bz2
historical-2d83a32cf6c468bccb07f4cda3e988540ae4da60.zip
Initial import of nxml-mode schemas for libvirt; it requires patches backported from the upstream tree for the files to properly validate.
Package-Manager: portage-2.2_rc59/cvs/Linux x86_64
Diffstat (limited to 'app-emacs')
-rw-r--r--app-emacs/nxml-libvirt-schemas/ChangeLog13
-rw-r--r--app-emacs/nxml-libvirt-schemas/Manifest18
-rw-r--r--app-emacs/nxml-libvirt-schemas/files/60nxml-libvirt-schemas-gentoo.el8
-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.xml9
-rw-r--r--app-emacs/nxml-libvirt-schemas/nxml-libvirt-schemas-0.7.4.ebuild66
7 files changed, 132 insertions, 0 deletions
diff --git a/app-emacs/nxml-libvirt-schemas/ChangeLog b/app-emacs/nxml-libvirt-schemas/ChangeLog
new file mode 100644
index 000000000000..2e6cd172a30e
--- /dev/null
+++ b/app-emacs/nxml-libvirt-schemas/ChangeLog
@@ -0,0 +1,13 @@
+# ChangeLog for app-emacs/nxml-libvirt-schemas
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-emacs/nxml-libvirt-schemas/ChangeLog,v 1.1 2009/12/16 19:12:59 flameeyes Exp $
+
+*nxml-libvirt-schemas-0.7.4 (16 Dec 2009)
+
+ 16 Dec 2009; Diego E. Pettenò <flameeyes@gentoo.org>
+ +files/60nxml-libvirt-schemas-gentoo.el,
+ +nxml-libvirt-schemas-0.7.4.ebuild, +files/Makefile-trang,
+ +files/schemas.xml, +metadata.xml:
+ Initial import of nxml-mode schemas for libvirt; it requires patches
+ backported from the upstream tree for the files to properly validate.
+
diff --git a/app-emacs/nxml-libvirt-schemas/Manifest b/app-emacs/nxml-libvirt-schemas/Manifest
new file mode 100644
index 000000000000..7eca57f2cbd0
--- /dev/null
+++ b/app-emacs/nxml-libvirt-schemas/Manifest
@@ -0,0 +1,18 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX 60nxml-libvirt-schemas-gentoo.el 253 RMD160 046e546c392b8479d76bd5aeec5e0c377c8ed58f SHA1 8d4ff70ea86cc486a54eaa97cbd8d3a70a421cbc SHA256 a50c35001662139fbb8196a6dc4c5259c6eadae5bbccef6515521a169892a72f
+AUX Makefile-trang 108 RMD160 e3af3ca6aa55804161bc187dbfc18fd46121133b SHA1 3b7735085689483f0a2dc971e132613dd61f4b95 SHA256 e456e90cca7a1cbaf65cb39ae360b17b48fb2178f1ef2c844dabe781b6a8ac83
+AUX schemas.xml 560 RMD160 5bafd91adbfd74610ff01e8a0718be48f87bc424 SHA1 1553dc92a51e73ba713e92d2253735a8b2396d62 SHA256 f29d2f140b62dfc4ed087ee6dc30c428e2f095f5929dd844dec1bd77f2050bec
+DIST libvirt-0.7.4-backports-2.tar.bz2 5981 RMD160 231e2a86bb3e7ac0e68c8cc1e4d2e505073543b1 SHA1 2e1e3a4a46d3e43f29e9e1c3a7ddde1f68e396a5 SHA256 ba8b13b7cf6867b9c3ba6b5d17613ee5d8533582c302b0c340b8fee301994c46
+DIST libvirt-0.7.4.tar.gz 8880507 RMD160 16a6718bf5d71935d4e47524a29671ff03db9ff8 SHA1 0677a9bf365cbf6a5c1b8559e040b4ea4b5b1e59 SHA256 91e3af2f660baa96a3014b2fd3942784df34bafac38b918b6eb325c9e9771316
+EBUILD nxml-libvirt-schemas-0.7.4.ebuild 1760 RMD160 f08b0cd405a1a2cb800af6040051b34c01a8ef18 SHA1 bfd25743c22025013e6dc1177f51770701db063e SHA256 c690b187b0171a579d03cc5ba0a996fd417866890452fdebf8f307309c14a881
+MISC ChangeLog 620 RMD160 6cc2f709a5066655299833388f0ed12d2c1bdd0d SHA1 8b4006ee03f6f99fd477be37f51e41689049739c SHA256 074fd8d1b316c05c81d0e7d5b9dd378735bb442f3f07b9f89fa622865f86ca7b
+MISC metadata.xml 261 RMD160 086e80de4fe7619a5e3adecc0fec1b7a6556faba SHA1 1daf2ac1e90484de03c43ff9caaba0dbd5caf39a SHA256 1560a2b84a21dcdb01f8fd00dd299fa913bc769aea49288e9d9220514da95ef3
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.13 (GNU/Linux)
+
+iEYEARECAAYFAkspMToACgkQAiZjviIA2Xi4HwCfWSmdLX6DHQ/4d6D+xF3XsnvA
+yl8AnR353wxisTSZHtuyxGJc3SBOrYba
+=4My4
+-----END PGP SIGNATURE-----
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..6f41677d3ac0
--- /dev/null
+++ b/app-emacs/nxml-libvirt-schemas/files/60nxml-libvirt-schemas-gentoo.el
@@ -0,0 +1,8 @@
+
+;;; nxml-svg-schemas site-lisp configuration
+
+;; 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..35b21eb5f8de
--- /dev/null
+++ b/app-emacs/nxml-libvirt-schemas/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>emacs</herd>
+ <herd>virtualization</herd>
+ <maintainer>
+ <email>flameeyes@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-emacs/nxml-libvirt-schemas/nxml-libvirt-schemas-0.7.4.ebuild b/app-emacs/nxml-libvirt-schemas/nxml-libvirt-schemas-0.7.4.ebuild
new file mode 100644
index 000000000000..f15370450154
--- /dev/null
+++ b/app-emacs/nxml-libvirt-schemas/nxml-libvirt-schemas-0.7.4.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emacs/nxml-libvirt-schemas/nxml-libvirt-schemas-0.7.4.ebuild,v 1.1 2009/12/16 19:12:59 flameeyes Exp $
+
+BACKPORTS=2
+
+EAPI=2
+
+inherit elisp eutils
+
+MY_P="libvirt-${PV}"
+
+DESCRIPTION="Extension for nxml-mode with libvirt schemas"
+HOMEPAGE="http://www.libvirt.org/"
+
+SRC_URI="http://libvirt.org/sources/${MY_P}.tar.gz
+ 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"
+IUSE=""
+
+RDEPEND="|| ( >=app-emacs/nxml-mode-20041004-r3 >=virtual/emacs-23 )"
+
+# 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"
+
+SITEFILE=60${PN}-gentoo.el
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" EPATCH_SOURCE="${WORKDIR}/patches" epatch
+}
+
+src_compile() {
+ emake -C docs/schemas -f "${FILESDIR}/Makefile-trang" || die "trang failed"
+}
+
+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 || die "install failed"
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die
+}
+
+pkg_postinst () {
+ elisp-site-regen
+
+ if [ $(emacs -batch -q --eval "(princ (fboundp 'nxml-mode))") = nil ]; then
+ ewarn "This package needs nxml-mode. You should either install"
+ ewarn "app-emacs/nxml-mode, or use \"eselect emacs\" to select"
+ ewarn "an Emacs version >= 23."
+ fi
+}