blob: efeb1a14baf063b4fd62feb55622ac8a0b50d79b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-tex/xmltex/xmltex-1.9.ebuild,v 1.5 2004/10/18 12:31:05 dholm 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="mirror://gentoo/${P}.tar.gz"
LICENSE="LPPL-1.2"
SLOT="0"
KEYWORDS="x86 ~sparc ~ppc"
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
}
|