# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=4 inherit eutils DESCRIPTION="TeX-to-MathML converter" HOMEPAGE="http://gva.noekeon.org/blahtexml" SRC_URI="http://gva.noekeon.org/${PN}/${P}-src.tar.gz" LICENSE="as-is" SLOT="0" KEYWORDS="~amd64" IUSE="doc" RDEPEND="dev-libs/xerces-c" DEPEND="${RDEPEND} virtual/pkgconfig doc? ( app-text/texlive-core dev-libs/libxslt dev-tex/latex2html )" src_prepare() { epatch "${FILESDIR}/${P}-Makefile.patch" } src_compile() { emake blahtex-linux emake blahtexml-linux use doc && emake doc } src_install() { dobin blahtex dobin blahtexml use doc && dodoc Documentation/ }