blob: f673af78e0970649b4114389ccadb32545e40e14 (
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
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
inherit toolchain-funcs
DESCRIPTION="LaTeX to RTF converter"
HOMEPAGE="http://latex2rtf.sourceforge.net/"
SRC_URI="mirror://sourceforge/latex2rtf/${P}a.tar.gz" # 'a' is only for 2.3.11 version for fixing a tarball generation bug
LICENSE="GPL-2"
KEYWORDS="alpha amd64 hppa ~ia64 ppc ppc64 sparc x86"
SLOT="0"
IUSE="test"
S="${WORKDIR}/${P%b}"
RDEPEND="
virtual/latex-base
media-gfx/imagemagick
"
DEPEND="${RDEPEND}
virtual/texi2dvi
test? (
dev-texlive/texlive-langgerman
dev-texlive/texlive-fontsrecommended
dev-texlive/texlive-latexextra
dev-tex/latex2html
)
"
src_compile() {
export VARTEXFONTS="${T}/fonts"
tc-export CC
# Set DESTDIR here too so that compiled-in paths are correct.
emake DESTDIR="${EPREFIX}/usr" || die "emake failed"
cd "${S}/doc"
emake realclean
emake -j1
}
src_install() {
dodoc README* HACKING ToDo ChangeLog doc/credits
emake DESTDIR="${ED}/usr" -j1 install install-info
}
|