diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2008-11-23 19:33:41 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2008-11-23 19:33:41 +0000 |
commit | 02e73024836e069e51bd863c461d9f7e49f6691b (patch) | |
tree | 9285b29586960693b82362acc7113f1da5021b93 /app-emacs | |
parent | Patches to fix compilation with gcc-4.3, thanks to Mario Fetka <mario DOT fet... (diff) | |
download | historical-02e73024836e069e51bd863c461d9f7e49f6691b.tar.gz historical-02e73024836e069e51bd863c461d9f7e49f6691b.tar.bz2 historical-02e73024836e069e51bd863c461d9f7e49f6691b.zip |
New ebuild, SVG (1.1 for now) schemas for nxml-mode.
Package-Manager: portage-2.2_rc14/cvs/Linux 2.6.27-gentoo-r2 x86_64
Diffstat (limited to 'app-emacs')
-rw-r--r-- | app-emacs/nxml-svg-schemas/ChangeLog | 11 | ||||
-rw-r--r-- | app-emacs/nxml-svg-schemas/Manifest | 17 | ||||
-rw-r--r-- | app-emacs/nxml-svg-schemas/files/60nxml-svg-schemas-gentoo.el | 8 | ||||
-rw-r--r-- | app-emacs/nxml-svg-schemas/files/Makefile-trang | 6 | ||||
-rw-r--r-- | app-emacs/nxml-svg-schemas/files/schemas.xml | 13 | ||||
-rw-r--r-- | app-emacs/nxml-svg-schemas/metadata.xml | 8 | ||||
-rw-r--r-- | app-emacs/nxml-svg-schemas/nxml-svg-schemas-1.1.20081123.ebuild | 60 |
7 files changed, 123 insertions, 0 deletions
diff --git a/app-emacs/nxml-svg-schemas/ChangeLog b/app-emacs/nxml-svg-schemas/ChangeLog new file mode 100644 index 000000000000..7dc8fd5927ee --- /dev/null +++ b/app-emacs/nxml-svg-schemas/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for app-emacs/nxml-svg-schemas +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-emacs/nxml-svg-schemas/ChangeLog,v 1.1 2008/11/23 19:33:41 flameeyes Exp $ + +*nxml-svg-schemas-1.1.20081123 (23 Nov 2008) + + 23 Nov 2008; Diego E. Pettenò <flameeyes@gentoo.org> + +files/60nxml-svg-schemas-gentoo.el, +files/Makefile-trang, + +files/schemas.xml, +metadata.xml, +nxml-svg-schemas-1.1.20081123.ebuild: + New ebuild, SVG (1.1 for now) schemas for nxml-mode. + diff --git a/app-emacs/nxml-svg-schemas/Manifest b/app-emacs/nxml-svg-schemas/Manifest new file mode 100644 index 000000000000..2bbbecad17ec --- /dev/null +++ b/app-emacs/nxml-svg-schemas/Manifest @@ -0,0 +1,17 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX 60nxml-svg-schemas-gentoo.el 256 RMD160 9017f6769079363f65ceb9fa9a2a3627db64d242 SHA1 0ab03958e67de8814eeaf45b4498f4fd2161c760 SHA256 a71492c07211d155244a8d1810f5dbd07472d44841f9d526bce3a8583837a7ae +AUX Makefile-trang 108 RMD160 e3af3ca6aa55804161bc187dbfc18fd46121133b SHA1 3b7735085689483f0a2dc971e132613dd61f4b95 SHA256 e456e90cca7a1cbaf65cb39ae360b17b48fb2178f1ef2c844dabe781b6a8ac83 +AUX schemas.xml 495 RMD160 1dba5b036b689edf87fb0c6c61f532df71d181a6 SHA1 c10af951cadc9c0037186b362b571a24184b593c SHA256 156eb863393dcab71357a94e32576d5187087eaaae8a73c88c4f9f59d38da458 +DIST w3c-svg-rng-1.1.20081123.zip 48420 RMD160 a117b81d42ea0993e0bbd4e004139486400ec4e2 SHA1 f31793e2a1e3068869a523f0f61f589bb47da9ed SHA256 995d72804ae518363080544999ea3f356fac168e193d0967ce9944fe0f8c31cf +EBUILD nxml-svg-schemas-1.1.20081123.ebuild 1735 RMD160 278bc373422249ba48ec774b3a46a586808e9a02 SHA1 ef0439de3b6aa6d77c44b06da54572b474bfc8f8 SHA256 65decb0e512143f1483575198f8885d8aee41897277a8f50aeb4be07a8893576 +MISC ChangeLog 524 RMD160 e6d67e8bf358708e18bbab531fde964914ff3f52 SHA1 a94a32f6b9184ed235c447422e17fda3f65803f1 SHA256 207bbcf1322b059dd26fcf1a6b2f1e8ed77ae29bfae92afa053bade8cd474632 +MISC metadata.xml 231 RMD160 300c1080e97143c0a879463def84e88006cfddca SHA1 1e5625d91b5880f68327825109162e0ed379a453 SHA256 15f2e9bb26415e0ed249f76708ef53312d5b3f5fea4ee32397ff7930f0b3b03d +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.9 (GNU/Linux) + +iEYEARECAAYFAkkpsBoACgkQAiZjviIA2XipugCgmrs7ZcTsctPC4r55ozdHB6Cu +qnEAn1zCEhQAKgFKYoX95CtZkpU07+4h +=pRIx +-----END PGP SIGNATURE----- diff --git a/app-emacs/nxml-svg-schemas/files/60nxml-svg-schemas-gentoo.el b/app-emacs/nxml-svg-schemas/files/60nxml-svg-schemas-gentoo.el new file mode 100644 index 000000000000..0d51b11da328 --- /dev/null +++ b/app-emacs/nxml-svg-schemas/files/60nxml-svg-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-svg-schemas/files/Makefile-trang b/app-emacs/nxml-svg-schemas/files/Makefile-trang new file mode 100644 index 000000000000..699cf676ff45 --- /dev/null +++ b/app-emacs/nxml-svg-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-svg-schemas/files/schemas.xml b/app-emacs/nxml-svg-schemas/files/schemas.xml new file mode 100644 index 000000000000..baebe4af596c --- /dev/null +++ b/app-emacs/nxml-svg-schemas/files/schemas.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="utf-8"?> +<locatingRules xmlns="http://thaiopensource.com/ns/locating-rules/1.0"> + <!-- This version of the locatingRules does not support having + enough details to distinguish between different SVG versions, + maybe in the future it will. + --> + + <uri pattern="*.svg" typeId="SVG" /> + <namespace ns="http://www.w3.org/2000/svg" typeId="SVG" /> + <documentElement localName="svg" typeId="SVG" /> + + <typeId id="SVG" uri="svg11.rnc" /> +</locatingRules> diff --git a/app-emacs/nxml-svg-schemas/metadata.xml b/app-emacs/nxml-svg-schemas/metadata.xml new file mode 100644 index 000000000000..560b5594999f --- /dev/null +++ b/app-emacs/nxml-svg-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>emacs</herd> + <maintainer> + <email>flameeyes@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/app-emacs/nxml-svg-schemas/nxml-svg-schemas-1.1.20081123.ebuild b/app-emacs/nxml-svg-schemas/nxml-svg-schemas-1.1.20081123.ebuild new file mode 100644 index 000000000000..d17cdf81a109 --- /dev/null +++ b/app-emacs/nxml-svg-schemas/nxml-svg-schemas-1.1.20081123.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emacs/nxml-svg-schemas/nxml-svg-schemas-1.1.20081123.ebuild,v 1.1 2008/11/23 19:33:41 flameeyes Exp $ + +inherit elisp + +DESCRIPTION="Extension for nxml-mode with SVG 1.1 schemas" +HOMEPAGE="http://www.w3.org/TR/SVG11/" + +# original SRC_URI is http://www.w3.org/Graphics/SVG/1.1/rng/rng.zip +# but since it's unversioned, I versioned it and got it locally. +SRC_URI="http://www.flameeyes.eu/gentoo-distfiles/w3c-svg-rng-${PV}.zip" + +# This is truly as-is! +LICENSE="as-is" + +# In a future we might have 1.2 schemas too, but for now we can only +# install this one anyway because the schemas.xml syntax is not +# sophisticated enough. +SLOT="1.1" + +KEYWORDS="~amd64" +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}" + +src_unpack() { + unpack ${A} + + # we don't need the doctype for our work + sed -i -e '/DOCTYPE grammar/d' *.rng || die "sed failed" +} + +src_compile() { + emake -f "${FILESDIR}/Makefile-trang" || die "trang failed" +} + +src_install() { + insinto ${SITEETC}/${PN} + doins "${FILESDIR}/schemas.xml" *.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 +} |