Skip to content

Commit

Permalink
app-text/mftrace: python-single-r1, EAPI=6
Browse files Browse the repository at this point in the history
  • Loading branch information
mgorny committed Feb 18, 2017
1 parent 96e149b commit c3ff979
Showing 1 changed file with 8 additions and 21 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
# Copyright 1999-2012 Gentoo Foundation
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI="4"
PYTHON_DEPEND="2"
EAPI=6
PYTHON_COMPAT=( python2_7 )

inherit python toolchain-funcs
inherit python-single-r1 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
Expand All @@ -23,31 +24,17 @@ RDEPEND=">=app-text/t1utils-1.25
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)"
--datadir="$(python_get_sitedir)"
}

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
default
python_optimize
}

0 comments on commit c3ff979

Please sign in to comment.