commit:     c33263b4e269f14eb076c94c624558c9577e1e63
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 17 20:54:55 2014 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Mar 17 20:54:55 2014 +0000
URL:        
http://git.overlays.gentoo.org/gitweb/?p=proj/emacs.git;a=commit;h=c33263b4

nxml-mode removed 2014-03-17 bug 501234

---
 app-emacs/nxml-mode/ChangeLog                      | 155 +++++++++++++++++++++
 app-emacs/nxml-mode/Manifest                       |  19 +++
 app-emacs/nxml-mode/files/50nxml-mode-gentoo.el    |  10 ++
 .../nxml-mode/files/nxml-mode-info-gentoo.patch    |  13 ++
 .../files/nxml-mode-xmlschema-xpath.patch          |  44 ++++++
 .../nxml-mode/files/xsd-regexp.el.2006-01-26.patch |  22 +++
 app-emacs/nxml-mode/metadata.xml                   |  10 ++
 app-emacs/nxml-mode/nxml-mode-20041004-r3.ebuild   |  45 ++++++
 8 files changed, 318 insertions(+)

diff --git a/app-emacs/nxml-mode/ChangeLog b/app-emacs/nxml-mode/ChangeLog
new file mode 100644
index 0000000..5b16653
--- /dev/null
+++ b/app-emacs/nxml-mode/ChangeLog
@@ -0,0 +1,155 @@
+# ChangeLog for app-emacs/nxml-mode
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-emacs/nxml-mode/ChangeLog,v 1.38 
2013/07/21 09:55:24 pacho Exp $
+
+  21 Jul 2013; Pacho Ramos <pa...@gentoo.org> metadata.xml:
+  Cleanup due http://gentoo.2317880.n4.nabble.com/sgml-herd-has-no-maintainers-
+  again-td259655.html
+
+  25 Sep 2012; Ulrich Müller <u...@gentoo.org> nxml-mode-20041004-r3.ebuild:
+  Fix LICENSE, see etc/schema/README in Emacs repository.
+
+  24 Nov 2009; Christian Faulhammer <fa...@gentoo.org>
+  nxml-mode-20041004-r3.ebuild:
+  convert to EAPI 2
+
+  24 Nov 2009; Christian Faulhammer <fa...@gentoo.org>
+  nxml-mode-20041004-r3.ebuild:
+  import changes from Prefix overlay
+
+  17 Nov 2008; Ulrich Mueller <u...@gentoo.org> nxml-mode-20041004-r3.ebuild:
+  Add as-is and W3C to LICENSE, following Emacs upstream.
+
+  12 May 2008; Ulrich Mueller <u...@gentoo.org> -files/80nxml-mode-gentoo.el,
+  -nxml-mode-20041004.ebuild:
+  Remove old.
+
+  02 Jan 2008; Christian Faulhammer <op...@gentoo.org>
+  nxml-mode-20041004-r3.ebuild:
+  stable amd64, bug 203585
+
+  02 Jan 2008; Christian Faulhammer <op...@gentoo.org>
+  nxml-mode-20041004-r3.ebuild:
+  stable x86, bug 203585
+
+  29 Dec 2007; Raúl Porcel <armi...@gentoo.org>
+  nxml-mode-20041004-r3.ebuild:
+  alpha stable wrt #203585
+
+  28 Dec 2007; nixnut <nix...@gentoo.org> nxml-mode-20041004-r3.ebuild:
+  Stable on ppc wrt bug 203585
+
+  01 Dec 2007; Ulrich Mueller <u...@gentoo.org> files/50nxml-mode-gentoo.el,
+  nxml-mode-20041004-r3.ebuild:
+  Use SITEETC eclass variable.
+
+*nxml-mode-20041004-r3 (23 Nov 2007)
+
+  23 Nov 2007; Ulrich Mueller <u...@gentoo.org> +files/50nxml-mode-gentoo.el,
+  -nxml-mode-20041004-r1.ebuild, -nxml-mode-20041004-r2.ebuild,
+  +nxml-mode-20041004-r3.ebuild:
+  Don't install non-Lisp files in site-lisp. Move site-init file from 80 to 50
+  since it depends on nothing else. Remove old.
+
+  12 Sep 2007; Ulrich Mueller <u...@gentoo.org>
+  files/nxml-mode-xmlschema-xpath.patch:
+  Update patch to fix whitespace handling in xpath regexps, bug #188114.
+
+*nxml-mode-20041004-r2 (09 Sep 2007)
+
+  09 Sep 2007; Ulrich Mueller <u...@gentoo.org>
+  +files/nxml-mode-xmlschema-xpath.patch, +nxml-mode-20041004-r2.ebuild:
+  Fix selector and field regexps in xmlschema.rnc, bug #188114. Patch provided
+  by Martin von Gagern <martin.vgag...@gmx.net>.
+
+*nxml-mode-20041004-r1 (15 Aug 2007)
+
+  15 Aug 2007; Ulrich Mueller <u...@gentoo.org>
+  +files/xsd-regexp.el.2006-01-26.patch, +nxml-mode-20041004-r1.ebuild:
+  Fix "range striding over charsets" error; bug #188112, reported by
+  Martin von Gagern <martin.vgag...@gmx.net>. Other minor changes.
+
+  02 Jul 2007; Christian Faulhammer <op...@gentoo.org>
+  nxml-mode-20041004.ebuild:
+  adjusted DESCRIPTION a bit, added primary HOMEPAGE, added some quotes around
+  variables
+
+  30 Mar 2007; Christian Faulhammer <op...@gentoo.org>
+  -nxml-mode-20040910.ebuild:
+  clean up
+
+  30 Mar 2007; Fabian Groffen <grob...@gentoo.org>
+  nxml-mode-20040910.ebuild, nxml-mode-20041004.ebuild:
+  Dropped ppc-macos keyword, see you in prefix
+
+  12 Mar 2007; Leonardo Boshell <leonar...@gentoo.org> metadata.xml:
+  Replacing text-markup herd with the new sgml herd.
+
+  21 Feb 2007; Piotr Jaroszyński <pe...@gentoo.org> ChangeLog:
+  Transition to Manifest2.
+
+  02 Jan 2007; Diego Pettenò <flamee...@gentoo.org>
+  nxml-mode-20041004.ebuild:
+  Add ~sparc-fbsd keyword.
+
+  31 Dec 2006; Diego Pettenò <flamee...@gentoo.org>
+  nxml-mode-20041004.ebuild:
+  Add ~x86-fbsd keyword.
+
+  21 May 2006; Simon Stelling <bl...@gentoo.org> nxml-mode-20041004.ebuild:
+  stable on amd64
+
+  16 Sep 2005; Ciaran McCreesh <ciar...@gentoo.org> ChangeLog:
+  Converted to UTF-8, fixed encoding screwups
+
+  09 Sep 2005; Aron Griffis <agrif...@gentoo.org> nxml-mode-20041004.ebuild:
+  Mark 20041004 stable on alpha
+
+  02 Sep 2005; Michael Hanselmann <han...@gentoo.org>
+  nxml-mode-20041004.ebuild:
+  Stable on ppc.
+
+  30 Aug 2005; Leonardo Boshell <leonar...@gentoo.org>
+  nxml-mode-20041004.ebuild:
+  Stable on x86.
+
+  01 May 2005; Michael Hanselmann <han...@gentoo.org>
+  nxml-mode-20040910.ebuild:
+  Stable on ppc.
+
+  21 Apr 2005; Simon Stelling <bl...@gentoo.org> nxml-mode-20040910.ebuild:
+  stable on amd64
+
+*nxml-mode-20041004 (01 Nov 2004)
+
+  01 Nov 2004; Mamoru KOMACHI <us...@gentoo.org> -nxml-mode-20031031.ebuild,
+  nxml-mode-20040910.ebuild, +nxml-mode-20041004.ebuild:
+  Version bumped.
+
+  06 Oct 2004; Mamoru KOMACHI <us...@gentoo.org>
+  files/80nxml-mode-gentoo.el:
+  Added .xsd to auto-mode-alist; bug #65836.
+
+*nxml-mode-20040910 (02 Oct 2004)
+
+  02 Oct 2004; Mamoru KOMACHI <us...@gentoo.org>
+  -files/20031031-info-gentoo.patch, +files/nxml-mode-info-gentoo.patch,
+  nxml-mode-20031031.ebuild, +nxml-mode-20040910.ebuild:
+  Version bumped. W3C XML Schema patch was added by Lénaïc Huard
+  <lhu...@ifrance.com>, closing bug #65836.
+
+  03 Sep 2004; Tom Martin <sla...@gentoo.org> nxml-mode-20031031.ebuild:
+  Marked ~amd64; resolves #58260. Thanks to Gabriel Ebner 
<g...@gabrielebner.at>
+  for reporting.
+
+  29 Jun 2004; Aron Griffis <agrif...@gentoo.org> nxml-mode-20031031.ebuild:
+  sync IUSE (missing)
+
+  14 Mar 2004; David Holm <dh...@gentoo.org> nxml-mode-20031031.ebuild:
+  Added to ~ppc.
+
+*nxml-mode-20031031 (13 Feb 2004)
+
+  13 Feb 2004; <mkenn...@gentoo.org> metadata.xml, nxml-mode-20031031.ebuild,
+  files/20031031-info-gentoo.patch, files/80nxml-mode-gentoo.el:
+  Initial port.  Ebuild contributed by Dan Pomohaci <d.pomoh...@moodmedia.ro>

diff --git a/app-emacs/nxml-mode/Manifest b/app-emacs/nxml-mode/Manifest
new file mode 100644
index 0000000..2628932
--- /dev/null
+++ b/app-emacs/nxml-mode/Manifest
@@ -0,0 +1,19 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+AUX 50nxml-mode-gentoo.el 334 SHA256 
8a5cf17c693e5cdbc718b121fd1d06324438dc545a1fe5237c0d6a3afd77b110 SHA512 
35b27af23aa136738adec3d85291fc6dc15e6986b86ce8001832760108bc2ee05bb013cb92cdfcc28f6817ad4692e1e27fbf8e122dfa8499797e2d8321892bda
 WHIRLPOOL 
5a6be199d097517001a8cc0e4e84350518158d1b43879c16dce14006221e221ae9b9ad52832a7aff56a09e7512e1f4b7b7c34ed92a8d578e7098f49eb6aff824
+AUX nxml-mode-info-gentoo.patch 412 SHA256 
482756e6a3f64f078839d4387f0847f9834130ed8ccf5e687c5d18e16a1d9c75 SHA512 
0badc83338e037744cdd2164fabc5d4115fba0099a1b8af9428992b4df8c62b863b48ab6cd1e0757dc8923a5f77388f5a5f2412ee386d4e1a805041397f66685
 WHIRLPOOL 
304a39c7bd1553bcf8e2288e508d62317ed4aa4357cec1070f12e6ec2cc29ec1dd3277023eddd9aff97097e29dcb491a855d5398f4bc51964c140ac1a73badff
+AUX nxml-mode-xmlschema-xpath.patch 2410 SHA256 
9137f3d5754399acfc0c75c54af0f2db030fd4f7eb81276558afa42da91f9ec5 SHA512 
04ee9309494d28d0435ce2e30a798c79ba296944ad842c0ef04e3b44d699acadc8c99e8ae9af731b2711bf84fc1f13a07ca08b9bf024af79304f52286e106fc6
 WHIRLPOOL 
47abef3e93d9710aeddb4cfe2564b17e1607a64118f6d5ebc00bde3444b4d4b214b16a39d1d224034b61a72eccc83b5e233fae61d4850e03b8982d5613561848
+AUX xsd-regexp.el.2006-01-26.patch 768 SHA256 
b2bb3df2b735ffef1ca7409af8231cba8b163e6a3b8ab7c88f77aa1d0773dcd6 SHA512 
ccb39c31134d9b217dfdec92bb30d6ff04e9d28d19e57284b977e7af583902cdd336776ebdbff35b7b48167306744799fc83ed65dee3f8544fe448261b1ddcb9
 WHIRLPOOL 
41006ac8aae8f72250cdb4a37b913e44c5bc5d685817e2eed3044edc321964b71a2c40847f65fbfa07497351246cd153891fd8baae1629bfbeb9fe7ba429c012
+DIST nxml-mode-20040910-xmlschema.patch.gz 9069 SHA256 
66be83896133c7d7e2debd275edb90527b87425bd8c05cf415c905520bc04914 SHA512 
5d995b278c8b5b1c497be4f33485aaf8ad5e12dd0278690298f019445d458728f36d21deaa6b358a7e392b94748e28168da8dabe19833debc97aa0f4ffcdd615
 WHIRLPOOL 
1428cfb85441c7836b221238728af404726f394e8c46b9859fb6cc01e75148f15e5b01251e2507c422cd13a6afecbda1a5fdede8c62774f1d2ab6541c5aee153
+DIST nxml-mode-20041004.tar.gz 443020 SHA256 
8cf71922962b134e08c4ad9048cd66e85c8297372f14dd1f1ada2d26c69c62ae SHA512 
e80e09bc6a516fdeeb7482d9b053fdb546fd0191e8b6f76689c1150367f29312f49258f92b96ef8f39d5cf72d028e91cf2f0d37a93ff5875c3ad17e3c119ea76
 WHIRLPOOL 
c0943287c9f3b856d0ffbceac572f5040b72539cb1e04b62dcc9bec7ed3d690e5ebbe6195b6ad5cae898eba6d187bd240353c2f44530cfd49d75ae51e3ac7a16
+EBUILD nxml-mode-20041004-r3.ebuild 1380 SHA256 
193d6ca4b1e66b943fa5332f177da99e42e14445c78cb323db78d2718c68193e SHA512 
fa6d90adb54dc5461610519af3e21704cf4da69fed0a14befc9b0154617ab6e40c142c257b80af5b928385318e56d614bca1160a8730cf167309cfb32dfa113e
 WHIRLPOOL 
4294cfb9ca09ed3c2f22b49dd724d2025c4c419c73673d6846716b8dd742028e0c76537abf7342eba6e1958d417016eda5ed510e6f942d61e6221da5ef57f95a
+MISC ChangeLog 5496 SHA256 
aae5bafc99b2d4bda42184abd4dac24aa509386a0d476cd8e453bca5693268df SHA512 
9b73c7c7af848c62dce43986defb59e8b2ec9a02078698456382d7e77b4438c9ec507f11fe272832d44d66de82052f6935dcc22a69a807cd916ab233623fa1d8
 WHIRLPOOL 
3e2ecdebef989022ff230f6890a36a3ec1adc9bab6cf0394dfe5f7b21b5681a56ed6412c02d5d1ef5103d9df1cdac1bf8b03c9a4295b903c7fed5c2fe8e3f067
+MISC metadata.xml 400 SHA256 
78373f61279d3338bba46344c4388bdf113881381564be191b44718be3da0d39 SHA512 
ca6327519b27533c17e332464cac18753dc7e4328b87dd0132d7554a8d717c8456a5b4cfb9fbcff36c6d0bfc678f685bf39c1d2bc2921fc4d4ec33bbdd7002a1
 WHIRLPOOL 
6548d23072e2b114e22734d14314a995ce375d18decfe3afaca5f4bbc9389b998ac01de2c48d740e45b39c0deeba0f12223484e9973e4fbf77b5eb5f723e8271
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.20 (GNU/Linux)
+
+iEYEAREIAAYFAlHrsA4ACgkQCaWpQKGI+9QnoACeLScnIjp7HXXV5zUruSFJDzsc
+DVIAn0AFBfSHtM2bvFn+pJadrvitYDdz
+=iRFF
+-----END PGP SIGNATURE-----

diff --git a/app-emacs/nxml-mode/files/50nxml-mode-gentoo.el 
b/app-emacs/nxml-mode/files/50nxml-mode-gentoo.el
new file mode 100644
index 0000000..5f3824f
--- /dev/null
+++ b/app-emacs/nxml-mode/files/50nxml-mode-gentoo.el
@@ -0,0 +1,10 @@
+(add-to-list 'load-path "@SITELISP@")
+(load "rng-auto" nil t)
+
+(setq rng-schema-locating-files-default
+      '("schemas.xml" "@SITEETC@/schema/schemas.xml")
+      rng-schema-locating-file-schema-file
+      "@SITEETC@/schema/locate.rnc")
+
+(add-to-list 'auto-mode-alist
+            '("\\.\\(xml\\|xsl\\|xsd\\|rng\\|xhtml\\)\\'" . nxml-mode))

diff --git a/app-emacs/nxml-mode/files/nxml-mode-info-gentoo.patch 
b/app-emacs/nxml-mode/files/nxml-mode-info-gentoo.patch
new file mode 100644
index 0000000..c00b0e4
--- /dev/null
+++ b/app-emacs/nxml-mode/files/nxml-mode-info-gentoo.patch
@@ -0,0 +1,13 @@
+Only in nxml-mode-20031018: nxml-mode.info
+diff -ur nxml-mode-20031018/nxml-mode.texi nxml-mode-20031018m/nxml-mode.texi
+--- nxml-mode-20031018/nxml-mode.texi     2003-09-29 14:02:46.000000000 +0300
++++ nxml-mode-20031018m/nxml-mode.texi    2003-10-11 20:49:25.000000000 +0300
+@@ -6,7 +6,7 @@
+ 
+ @dircategory Emacs
+ @direntry
+-* nXML Mode: (nxml-mode.info).
++* nXML Mode: (nxml-mode).
+ @end direntry
+ 
+ @node Top

diff --git a/app-emacs/nxml-mode/files/nxml-mode-xmlschema-xpath.patch 
b/app-emacs/nxml-mode/files/nxml-mode-xmlschema-xpath.patch
new file mode 100644
index 0000000..97d81a7
--- /dev/null
+++ b/app-emacs/nxml-mode/files/nxml-mode-xmlschema-xpath.patch
@@ -0,0 +1,44 @@
+Avoid size limit for xpath regular expressions by using two patterns.
+See https://bugs.gentoo.org/show_bug.cgi?id=188114 for discussion
+and references.
+The following bash script will recreate the long patterns:
+
+S="\\s*"
+NCName='[^./|:*@\s]+'
+QName="${NCName}:${NCName}"
+NameTest="(child::${S})?(${NCName}:)?(${NCName}|\\*)"
+Step="${S}(\\.|${NameTest})${S}"
+Path="(${S}\\.${S}//)?${Step}(/${Step})*"
+Selector="${Path}(\\|${Path})*"
+echo "selector: ${Selector}"
+LastStep="${Step}|${S}(@|attribute::)${S}${NameTest}${S}"
+Path="(${S}\\.${S}//)?(${Step}/)*(${LastStep})"
+Selector="${Path}(\\|${Path})*"
+echo "field: ${Selector}"
+
+2007-09-12 Martin von Gagern <martin.vgag...@gmx.net>
+
+--- nxml-mode-20041004.orig/schema/xmlschema.rnc       2007-08-10 
01:56:18.000000000 +0200
++++ nxml-mode-20041004/schema/xmlschema.rnc    2007-09-12 11:31:26.000000000 
+0200
+@@ -809,8 +809,9 @@
+     annotated,
+     attribute xpath {
+       xsd:token {
++        pattern = "[./|:*@\s]*([^\I:][^\C:]*[./|:*@\s]+)*([^\I:][^\C:]*)?"
+         pattern =
+-          
"(\.//)?(((child::)?((\i\c*:)?(\i\c*|\*)))|\.)(/(((child::)?((\i\c*:)?(\i\c*|\*)))|\.))*(\|(\.//)?(((child::)?((\i\c*:)?(\i\c*|\*)))|\.)(/(((child::)?((\i\c*:)?(\i\c*|\*)))|\.))*)*"
++          
"(\s*\.\s*//)?\s*(\.|(child::\s*)?([^./|:*@\s]+:)?([^./|:*@\s]+|\*))\s*(/\s*(\.|(child::\s*)?([^./|:*@\s]+:)?([^./|:*@\s]+|\*))\s*)*(\|(\s*\.\s*//)?\s*(\.|(child::\s*)?([^./|:*@\s]+:)?([^./|:*@\s]+|\*))\s*(/\s*(\.|(child::\s*)?([^./|:*@\s]+:)?([^./|:*@\s]+|\*))\s*)*)*"
+       }
+     }
+   }
+@@ -829,8 +830,9 @@
+     annotated,
+     attribute xpath {
+       xsd:token {
++        pattern = "[./|:*@\s]*([^\I:][^\C:]*[./|:*@\s]+)*([^\I:][^\C:]*)?"
+         pattern =
+-          
"(\.//)?((((child::)?((\i\c*:)?(\i\c*|\*)))|\.)/)*((((child::)?((\i\c*:)?(\i\c*|\*)))|\.)|((attribute::|@)((\i\c*:)?(\i\c*|\*))))(\|(\.//)?((((child::)?((\i\c*:)?(\i\c*|\*)))|\.)/)*((((child::)?((\i\c*:)?(\i\c*|\*)))|\.)|((attribute::|@)((\i\c*:)?(\i\c*|\*)))))*"
++          
"(\s*\.\s*//)?(\s*(\.|(child::\s*)?([^./|:*@\s]+:)?([^./|:*@\s]+|\*))\s*/)*(\s*(\.|(child::\s*)?([^./|:*@\s]+:)?([^./|:*@\s]+|\*))\s*|\s*(@|attribute::)\s*(child::\s*)?([^./|:*@\s]+:)?([^./|:*@\s]+|\*)\s*)(\|(\s*\.\s*//)?(\s*(\.|(child::\s*)?([^./|:*@\s]+:)?([^./|:*@\s]+|\*))\s*/)*(\s*(\.|(child::\s*)?([^./|:*@\s]+:)?([^./|:*@\s]+|\*))\s*|\s*(@|attribute::)\s*(child::\s*)?([^./|:*@\s]+:)?([^./|:*@\s]+|\*)\s*))*"
+       }
+     }
+   }

diff --git a/app-emacs/nxml-mode/files/xsd-regexp.el.2006-01-26.patch 
b/app-emacs/nxml-mode/files/xsd-regexp.el.2006-01-26.patch
new file mode 100644
index 0000000..09820e1
--- /dev/null
+++ b/app-emacs/nxml-mode/files/xsd-regexp.el.2006-01-26.patch
@@ -0,0 +1,22 @@
+--- xsd-regexp.el.orig 2006-01-27 00:31:24.000000000 +0100
++++ xsd-regexp.el      2006-01-27 00:32:20.328529600 +0100
+@@ -290,7 +290,8 @@
+ (defun xsdre-compile-single-char (ch)
+   (if (memq ch '(?. ?* ?+ ?? ?\[ ?\] ?^ ?$ ?\\))
+       (string ?\\ ch)
+-    (string (decode-char 'ucs ch))))
++    (let ((utf-translate-cjk-mode nil))
++      (string (decode-char 'ucs ch)))))
+   
+ (defun xsdre-char-class-to-range-list (cc)
+   "Return a range-list for a symbolic char-class."
+@@ -403,7 +404,8 @@
+       (setq range-list (cdr range-list)))
+     (setq chars
+         (mapcar (lambda (c)
+-                  (decode-char 'ucs c))
++                    (let ((utf-translate-cjk-mode nil))
++                      (decode-char 'ucs c)))
+                 chars))
+     (when caret
+       (setq chars (cons ?^ chars)))

diff --git a/app-emacs/nxml-mode/metadata.xml b/app-emacs/nxml-mode/metadata.xml
new file mode 100644
index 0000000..765b70c
--- /dev/null
+++ b/app-emacs/nxml-mode/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+  <herd>emacs</herd>
+  <longdescription>
+       A new major mode for GNU Emacs for editing XML documents.  It supports
+       editing well-formed XML documents and also provides schema-sensitive 
editing
+       of XML documents using RELAX NG Compact Syntax.
+  </longdescription>
+</pkgmetadata>

diff --git a/app-emacs/nxml-mode/nxml-mode-20041004-r3.ebuild 
b/app-emacs/nxml-mode/nxml-mode-20041004-r3.ebuild
new file mode 100644
index 0000000..315dc0d
--- /dev/null
+++ b/app-emacs/nxml-mode/nxml-mode-20041004-r3.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: 
/var/cvsroot/gentoo-x86/app-emacs/nxml-mode/nxml-mode-20041004-r3.ebuild,v 1.10 
2012/09/25 14:01:47 ulm Exp $
+
+EAPI=2
+
+inherit elisp eutils
+
+DESCRIPTION="A major mode for GNU Emacs for editing XML documents."
+HOMEPAGE="http://www.thaiopensource.com/nxml-mode/
+http://www.emacswiki.org/cgi-bin/wiki/NxmlMode";
+SRC_URI="http://thaiopensource.com/download/${P}.tar.gz
+       mirror://gentoo/${PN}-20040910-xmlschema.patch.gz"
+
+LICENSE="GPL-2+ HPND W3C"
+SLOT="0"
+KEYWORDS="alpha amd64 ppc x86 ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux 
~ppc-macos ~x86-macos ~sparc-solaris"
+IUSE=""
+
+SITEFILE=50${PN}-gentoo.el
+
+src_prepare() {
+       epatch "${FILESDIR}/${PN}-info-gentoo.patch"
+       epatch "${WORKDIR}/${PN}-20040910-xmlschema.patch"
+       epatch "${FILESDIR}/xsd-regexp.el.2006-01-26.patch"             # bug 
#188112
+       epatch "${FILESDIR}/${PN}-xmlschema-xpath.patch"                # bug 
#188114
+}
+
+src_compile() {
+       emacs -batch -l rng-auto.el -f rng-byte-compile-load \
+               || die
+       makeinfo --force nxml-mode.texi || die
+}
+
+src_install() {
+       elisp-install ${PN} *.el *.elc || die
+       elisp-site-file-install "${FILESDIR}/${SITEFILE}" \
+               || die
+       insinto ${SITELISP}/${PN}
+       doins -r char-name || die
+       insinto ${SITEETC}/${PN}
+       doins -r schema || die
+       doinfo nxml-mode.info
+       dodoc README VERSION TODO NEWS || die
+}

Reply via email to