# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-tex/latex2rtf/latex2rtf-2.3.8.ebuild,v 1.2 2014/12/05 09:44:26 aballier Exp $ EAPI=5 inherit toolchain-funcs eutils 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 ~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_prepare() { epatch "${FILESDIR}/texinfo5.patch" } 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 }