| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-tex/latex2rtf/latex2rtf-2.2.1b.ebuild,v 1.6 2012/08/20 15:55:17 johu Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
inherit toolchain-funcs
|
| 8 |
|
| 9 |
DESCRIPTION="LaTeX to RTF converter"
|
| 10 |
HOMEPAGE="http://latex2rtf.sourceforge.net/"
|
| 11 |
SRC_URI="mirror://sourceforge/latex2rtf/${P}.tar.gz"
|
| 12 |
|
| 13 |
LICENSE="GPL-2"
|
| 14 |
KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86"
|
| 15 |
SLOT="0"
|
| 16 |
IUSE="doc test"
|
| 17 |
S="${WORKDIR}/${P%b}"
|
| 18 |
|
| 19 |
RDEPEND="virtual/latex-base
|
| 20 |
media-gfx/imagemagick"
|
| 21 |
DEPEND="${RDEPEND}
|
| 22 |
doc? ( virtual/texi2dvi )
|
| 23 |
test? (
|
| 24 |
dev-texlive/texlive-langgerman
|
| 25 |
dev-texlive/texlive-fontsrecommended
|
| 26 |
dev-texlive/texlive-latexextra
|
| 27 |
dev-tex/latex2html
|
| 28 |
)"
|
| 29 |
|
| 30 |
src_prepare() {
|
| 31 |
# We are case sensitive...
|
| 32 |
mv copyright Copyright || die
|
| 33 |
}
|
| 34 |
|
| 35 |
src_compile() {
|
| 36 |
export VARTEXFONTS="${T}/fonts"
|
| 37 |
# Set DESTDIR here too so that compiled-in paths are correct.
|
| 38 |
emake DESTDIR="${EPREFIX}/usr" CC="$(tc-getCC)" || die "emake failed"
|
| 39 |
if use doc; then
|
| 40 |
cd "${S}/doc"
|
| 41 |
emake realclean
|
| 42 |
emake -j1
|
| 43 |
fi
|
| 44 |
}
|
| 45 |
|
| 46 |
src_install() {
|
| 47 |
dodoc README* HACKING ToDo ChangeLog doc/credits
|
| 48 |
emake DESTDIR="${ED}/usr" install
|
| 49 |
# if doc is not used, only the text version is intalled.
|
| 50 |
if use doc; then
|
| 51 |
emake DESTDIR="${ED}/usr" install-info
|
| 52 |
fi
|
| 53 |
}
|