app-text/mftrace: python-single-r1, EAPI=6
authorMichał Górny <mgorny@gentoo.org>
Sat, 18 Feb 2017 08:46:54 +0000 (09:46 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sat, 18 Feb 2017 09:44:56 +0000 (10:44 +0100)
app-text/mftrace/mftrace-1.2.18-r1.ebuild [moved from app-text/mftrace/mftrace-1.2.18.ebuild with 63% similarity]

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 d41aa2d5f53140e5b44e901054738ad09a27486a..b9f5707a3fb56a4115a19017d2d22940dc937b08 100644 (file)
@@ -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
 }