blob: 8336f11393c72b0453a11e99368ad9cbe2eb7592 (
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
53
54
55
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-tex/latex2rtf/latex2rtf-1.9.19.ebuild,v 1.4 2008/06/16 16:41:23 armin76 Exp $
inherit eutils toolchain-funcs
DESCRIPTION="LaTeX to RTF converter"
HOMEPAGE="http://latex2rtf.sourceforge.net/"
SRC_URI="mirror://sourceforge/latex2rtf/${P}.tar.gz"
LICENSE="GPL-2"
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~sparc ~x86"
SLOT="0"
IUSE="doc test"
DEPEND="virtual/latex-base
media-gfx/imagemagick
doc? ( || (
dev-texlive/texlive-texinfo
app-text/tetex
app-text/ptex
)
)
test? ( || (
( dev-texlive/texlive-langgerman dev-texlive/texlive-fontsrecommended )
app-text/tetex
app-text/ptex
)
dev-tex/latex2html
)"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${P}-makefile.patch"
}
src_compile() {
export VARTEXFONTS="${T}/fonts"
emake PREFIX="/usr" CC=$(tc-getCC) || die "emake failed"
if use doc; then
cd "${S}/doc"
emake clean || die "cleaning docs failed"
emake || die "generating docs failed"
fi
}
src_install() {
dodoc README ChangeLog doc/credits
emake PREFIX="${D}/usr" MAN_INSTALL="${D}/usr/share/man/man1" SUPPORT_INSTALL="${D}/usr/share/doc/${PF}" install || die "make install failed"
# if doc is not used, only the text version is intalled.
if use doc; then
emake INFO_INSTALL="${D}/usr/share/info" install-info || die "installing info documentation failed"
fi
}
|