# Copyright 1999-2008 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.6 2008/01/02 10:23:17 opfer Exp $ 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" SLOT="0" KEYWORDS="alpha amd64 ppc ~sparc-fbsd x86 ~x86-fbsd" IUSE="" SITEFILE=50${PN}-gentoo.el src_unpack() { unpack ${A} cd "${S}" 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 "byte compilation failed" makeinfo --force nxml-mode.texi || die "makeinfo failed" } src_install() { elisp-install ${PN} *.el *.elc || die "elisp-install failed" elisp-site-file-install "${FILESDIR}/${SITEFILE}" \ || die "elisp-site-file-install failed" insinto ${SITELISP}/${PN} doins -r char-name || die "doins char-name failed" insinto ${SITEETC}/${PN} doins -r schema || die "doins schema failed" doinfo nxml-mode.info dodoc README VERSION TODO NEWS || die "dodoc failed" }