summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-text/mftrace/mftrace-1.2.18.ebuild')
-rw-r--r--app-text/mftrace/mftrace-1.2.18.ebuild53
1 files changed, 53 insertions, 0 deletions
diff --git a/app-text/mftrace/mftrace-1.2.18.ebuild b/app-text/mftrace/mftrace-1.2.18.ebuild
new file mode 100644
index 000000000000..d41aa2d5f531
--- /dev/null
+++ b/app-text/mftrace/mftrace-1.2.18.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+PYTHON_DEPEND="2"
+
+inherit python toolchain-funcs
+
+DESCRIPTION="Traces TeX fonts to PFA or PFB fonts (formerly pktrace)"
+HOMEPAGE="http://lilypond.org/mftrace/"
+SRC_URI="http://lilypond.org/download/sources/mftrace/${P}.tar.gz"
+LICENSE="GPL-2"
+KEYWORDS="amd64 ~hppa ppc x86 ~x86-fbsd"
+# SLOT 1 was used in pktrace ebuild
+SLOT="1"
+IUSE="test truetype"
+
+RDEPEND=">=app-text/t1utils-1.25
+ || ( media-gfx/potrace >=media-gfx/autotrace-0.30 )
+ truetype? ( media-gfx/fontforge )
+ virtual/latex-base"
+DEPEND="${RDEPEND}
+ test? ( media-gfx/fontforge )"
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_configure() {
+ tc-export CC
+ econf \
+ --datadir="$(python_get_sitedir)" \
+ PYTHON="$(PYTHON)"
+}
+
+src_compile() {
+ emake CFLAGS="-Wall ${CFLAGS}"
+}
+
+src_install () {
+ emake DESTDIR="${D}" PYC_MODULES="" install
+ dodoc README.txt ChangeLog
+}
+
+pkg_postinst() {
+ python_mod_optimize mftrace
+}
+
+pkg_postrm() {
+ python_mod_cleanup mftrace
+}