# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-text/mftrace/mftrace-1.2.13.ebuild,v 1.9 2009/09/08 18:15:26 nyhm Exp $ EAPI="2" inherit python multilib toolchain-funcs eutils DESCRIPTION="traces TeX fonts to PFA or PFB fonts (formerly pktrace)" HOMEPAGE="http://lilypond.org/download/sources/mftrace/" SRC_URI="http://lilypond.org/download/sources/mftrace/${P}.tar.gz" LICENSE="GPL-2" KEYWORDS="alpha amd64 ia64 ppc sparc x86" # SLOT 1 was used in pktrace ebuild SLOT="1" IUSE="truetype" DEPEND=">=dev-lang/python-2.2.2 || ( media-gfx/potrace >=media-gfx/autotrace-0.30 )" RDEPEND="${DEPEND} virtual/latex-base >=app-text/t1utils-1.25 truetype? ( media-gfx/fontforge )" src_prepare() { epatch "${FILESDIR}/${P}-python-2.6.patch" } src_configure() { python_version tc-export CC econf --datadir=/usr/$(get_libdir)/python${PYVER}/site-packages || \ die "econf failed" } src_compile() { emake CFLAGS="-Wall ${CFLAGS}" || die "emake failed" } src_install () { python_version emake DESTDIR="${D}" install || die "make install failed" dodoc README.txt ChangeLog }