blob: 9f0e8a066a56e7fd9d9ebfa7c54fdb2fc1835ceb (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-tex/xmltex/xmltex-1.9-r2.ebuild,v 1.15 2009/03/18 20:48:35 ranger Exp $
inherit latex-package texlive-common
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="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
S=${WORKDIR}/${PN}/base
TEXMF=/usr/share/texmf-site
DEPEND="virtual/latex-base"
RDEPEND="${DEPEND}
!=dev-texlive/texlive-htmlxml-2007*"
src_compile() {
TEXMFHOME="${S}" fmtutil --cnffile "${FILESDIR}/format.${PN}.cnf" --fmtdir "${S}/texmf-var/web2c" --all\
|| die "failed to build format ${PN}"
}
src_install() {
insinto /var/lib/texmf
doins -r texmf-var/* || die "failed to install ${PN} formats"
insinto ${TEXMF}/tex/xmltex/base
doins *.{xmt,cfg,xml,tex}
insinto ${TEXMF}/tex/xmltex/config
doins *.ini
etexlinks "${FILESDIR}/format.${PN}.cnf"
insinto /etc/texmf/fmtutil.d
doins "${FILESDIR}/format.${PN}.cnf"
dohtml *.html
dodoc readme.txt
}
|