commit:     c3ff979cf44a335c8d1a5672e11b259e61a3712c
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 18 08:46:54 2017 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Feb 18 09:44:56 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3ff979c

app-text/mftrace: python-single-r1, EAPI=6

 ...race-1.2.18.ebuild => mftrace-1.2.18-r1.ebuild} | 29 ++++++----------------
 1 file changed, 8 insertions(+), 21 deletions(-)

diff --git a/app-text/mftrace/mftrace-1.2.18.ebuild 
b/app-text/mftrace/mftrace-1.2.18-r1.ebuild
similarity index 63%
rename from app-text/mftrace/mftrace-1.2.18.ebuild
rename to app-text/mftrace/mftrace-1.2.18-r1.ebuild
index d41aa2d5f5..b9f5707a3f 100644
--- a/app-text/mftrace/mftrace-1.2.18.ebuild
+++ b/app-text/mftrace/mftrace-1.2.18-r1.ebuild
@@ -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
@@ -23,16 +24,10 @@ 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() {
@@ -40,14 +35,6 @@ src_compile() {
 }
 
 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
 }

Reply via email to