diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2008-09-22 13:09:21 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2008-09-22 13:09:21 +0000 |
commit | a149a9db357a0e19d8316326610eda46d61db063 (patch) | |
tree | 0b83c037104ce54e9bdd810f48f51cef78e4daf3 | |
parent | Change herd from commonbox to desktop-wm. (diff) | |
download | gentoo-2-a149a9db357a0e19d8316326610eda46d61db063.tar.gz gentoo-2-a149a9db357a0e19d8316326610eda46d61db063.tar.bz2 gentoo-2-a149a9db357a0e19d8316326610eda46d61db063.zip |
Add a package to quickly add support for DocBook 5 to nxml (whether standalone or included in emacs).
(Portage version: 2.2_rc9/cvs/Linux 2.6.26-gentoo-r1 x86_64)
6 files changed, 74 insertions, 0 deletions
diff --git a/app-emacs/nxml-docbook5-schemas/ChangeLog b/app-emacs/nxml-docbook5-schemas/ChangeLog new file mode 100644 index 000000000000..11818c04d2f5 --- /dev/null +++ b/app-emacs/nxml-docbook5-schemas/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for app-emacs/nxml-docbook5-schemas +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-emacs/nxml-docbook5-schemas/ChangeLog,v 1.1 2008/09/22 13:09:20 flameeyes Exp $ + +*nxml-docbook5-schemas-20080922 (22 Sep 2008) + + 22 Sep 2008; Diego Pettenò <flameeyes@gentoo.org> + +files/60nxml-docbook5-schemas-gentoo.el, +files/schemas.xml, + +metadata.xml, +nxml-docbook5-schemas-20080922.ebuild: + Add a package to quickly add support for DocBook 5 to nxml (whether + standalone or included in emacs). + diff --git a/app-emacs/nxml-docbook5-schemas/Manifest b/app-emacs/nxml-docbook5-schemas/Manifest new file mode 100644 index 000000000000..7639f5a3cf23 --- /dev/null +++ b/app-emacs/nxml-docbook5-schemas/Manifest @@ -0,0 +1,6 @@ +AUX 60nxml-docbook5-schemas-gentoo.el 256 RMD160 9017f6769079363f65ceb9fa9a2a3627db64d242 SHA1 0ab03958e67de8814eeaf45b4498f4fd2161c760 SHA256 a71492c07211d155244a8d1810f5dbd07472d44841f9d526bce3a8583837a7ae +AUX schemas.xml 198 RMD160 479875bda10cf9544ca706f954a41880568a8ee2 SHA1 60113560d9d3b57430c56b3e6bc60855ca71004d SHA256 906de2746de56838db3ff67ba8568e4d2800010e886a1132aaebbe629be8a9cd +DIST docbookxi.rnc 292523 RMD160 222636f8fceb3feffd12444e4ab8af0a68141f23 SHA1 3c79cac01923fe61b8197ed52d6baf7190eda1f6 SHA256 cf4360946a2a7120b463721b6379f73e7a9589e08943e5d3eb20244e4b22a336 +EBUILD nxml-docbook5-schemas-20080922.ebuild 1083 RMD160 1e17e4d96fe97006e559efcc081b6c0e4ba590d2 SHA1 a9518a525ed8f3ad63942f41d3e0355089b6a613 SHA256 df3bbb73e608131540a7eb82af06ca7f7a79d74306d784432ca7ca18351db109 +MISC ChangeLog 460 RMD160 43291a821c5a0d1d723a4cfe3939e9858d8b3f91 SHA1 5460aee757fb7863b66473eb9b62fc26b88aaf99 SHA256 a757525b8243df22fac4a0389ae47f5d0d4be224af781f88247d299ec1e128d5 +MISC metadata.xml 233 RMD160 da5a1d3b7836dcebb5fec29696b5bfb583fe346c SHA1 1c7142c677598358888a6cfc6f6f65df2e8b6901 SHA256 4d1294dc1b2a6f96aa637a0b8d340bc67191103af0f15197d07fc62446b4a709 diff --git a/app-emacs/nxml-docbook5-schemas/files/60nxml-docbook5-schemas-gentoo.el b/app-emacs/nxml-docbook5-schemas/files/60nxml-docbook5-schemas-gentoo.el new file mode 100644 index 000000000000..0d51b11da328 --- /dev/null +++ b/app-emacs/nxml-docbook5-schemas/files/60nxml-docbook5-schemas-gentoo.el @@ -0,0 +1,8 @@ + +;;; nxml-gentoo-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-docbook5-schemas/files/schemas.xml b/app-emacs/nxml-docbook5-schemas/files/schemas.xml new file mode 100644 index 000000000000..c114447627a9 --- /dev/null +++ b/app-emacs/nxml-docbook5-schemas/files/schemas.xml @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="utf-8"?> +<locatingRules xmlns="http://thaiopensource.com/ns/locating-rules/1.0"> + <namespace ns="http://docbook.org/ns/docbook" uri="docbookxi.rnc"/> +</locatingRules> diff --git a/app-emacs/nxml-docbook5-schemas/metadata.xml b/app-emacs/nxml-docbook5-schemas/metadata.xml new file mode 100644 index 000000000000..2d083ce3bc66 --- /dev/null +++ b/app-emacs/nxml-docbook5-schemas/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>no-herd</herd> + <maintainer> + <email>flameeyes@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/app-emacs/nxml-docbook5-schemas/nxml-docbook5-schemas-20080922.ebuild b/app-emacs/nxml-docbook5-schemas/nxml-docbook5-schemas-20080922.ebuild new file mode 100644 index 000000000000..90dc14cb3831 --- /dev/null +++ b/app-emacs/nxml-docbook5-schemas/nxml-docbook5-schemas-20080922.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emacs/nxml-docbook5-schemas/nxml-docbook5-schemas-20080922.ebuild,v 1.1 2008/09/22 13:09:20 flameeyes Exp $ + +inherit elisp + +DESCRIPTION="Add support for DocBook 5 schemas to NXML" +HOMEPAGE="http://www.docbook.org/schemas/5x.html" +SRC_URI="http://www.docbook.org/xml/5.0/rng/docbookxi.rnc" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="|| ( >=app-emacs/nxml-mode-20041004-r3 >=virtual/emacs-23 )" + +SITEFILE=60${PN}-gentoo.el + +src_compile() { :; } + +src_install() { + insinto ${SITEETC}/${PN} + doins "${FILESDIR}"/schemas.xml "${DISTDIR}"/docbookxi.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 +} |