summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-tex/xmltex/xmltex-0.14-r1.ebuild')
-rw-r--r--dev-tex/xmltex/xmltex-0.14-r1.ebuild52
1 files changed, 52 insertions, 0 deletions
diff --git a/dev-tex/xmltex/xmltex-0.14-r1.ebuild b/dev-tex/xmltex/xmltex-0.14-r1.ebuild
new file mode 100644
index 000000000000..4771d4b7506b
--- /dev/null
+++ b/dev-tex/xmltex/xmltex-0.14-r1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-tex/xmltex/xmltex-0.14-r1.ebuild,v 1.1 2004/02/02 15:39:30 usata Exp $
+
+inherit latex-package
+
+IUSE=""
+
+DESCRIPTION="A non validating namespace aware XML parser implemented in TeX"
+HOMEPAGE="http://www.dcarlisle.demon.co.uk/xmltex/manual.html"
+# Taken from: ftp://www.ctan.org/tex-archive/macros/xmltex.tar.gz
+SRC_URI="http://ftp.debian.org/debian/pool/main/x/xmltex/${P/-/_}.orig.tar.gz"
+
+LICENSE="LPPL-1.2"
+SLOT="0"
+KEYWORDS="~x86"
+
+DEPEND="virtual/tetex"
+
+S=${WORKDIR}/${PN}/base
+
+src_compile() {
+
+ tex -ini -progname=xmltex "&latex" xmltex.ini || die
+ pdftex -ini -progname=pdfxmltex "&pdflatex" pdfxmltex.ini || die
+}
+
+src_install() {
+
+ insinto ${TEXMF}/web2c
+ doins *.fmt || die
+
+ insinto ${TEXMF}/tex/xmltex
+ doins *.{xml,xmt,cfg,tex,ini}
+
+ dodir /usr/bin
+ dosym /usr/bin/tex /usr/bin/xmltex
+ dosym /usr/bin/pdftex /usr/bin/pdfxmltex
+
+ dohtml *.html
+ dodoc readme.txt
+}
+
+pkg_preinst() {
+ if ! grep pdfxmltex ${TEXMF}/web2c/texmf.cnf > /dev/null 2>&1 ; then
+ cat >>${TEXMF}/web2c/texmf.cnf<<-EOF
+
+ ! Automatically added by Portage (dev-tex/xmltex)
+ TEXINPUTS.pdfxmltex = .;\$TEXMF/{pdftex,tex}/{xmltex,plain,generic,}//
+ EOF
+ fi
+}