media-sound/positron: distutils-r1, EAPI=6
authorMichał Górny <mgorny@gentoo.org>
Fri, 17 Feb 2017 15:40:06 +0000 (16:40 +0100)
committerMichał Górny <mgorny@gentoo.org>
Fri, 17 Feb 2017 16:23:07 +0000 (17:23 +0100)
media-sound/positron/positron-1.1-r1.ebuild [moved from media-sound/positron/positron-1.1.ebuild with 57% similarity]

similarity index 57%
rename from media-sound/positron/positron-1.1.ebuild
rename to media-sound/positron/positron-1.1-r1.ebuild
index 7f435ff1a444005f0d218fc690e33aa2721ef4ff..fe307a9901ccbfb81b8d6ee8840ed6184cef931e 100644 (file)
@@ -1,31 +1,26 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI="3"
-PYTHON_DEPEND="2"
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
 
-inherit distutils
+inherit distutils-r1
 
-DESCRIPTION="Synchronization manager for the Neuros Audio Computer (www.neurosaudio.com) portable music player"
+DESCRIPTION="Synchronization manager for the Neuros Audio Computer"
 HOMEPAGE="http://www.xiph.org/positron"
 SRC_URI="http://www.xiph.org/positron/files/source/${P}.tar.gz"
 
 LICENSE="BSD"
 SLOT="0"
-KEYWORDS="x86 ppc sparc amd64"
+KEYWORDS="amd64 ppc sparc x86"
 IUSE="vorbis"
 
-DEPEND="vorbis? ( dev-python/pyvorbis )"
+DEPEND="vorbis? ( dev-python/pyvorbis[${PYTHON_USEDEP}] )"
 RDEPEND="${DEPEND}"
 
-pkg_setup() {
-       python_set_active_version 2
-       python_pkg_setup
-}
-
-src_prepare() {
-       distutils_src_prepare
+python_prepare_all() {
        # install docs in /usr/share/doc/${PF}, bug #241290
        sed -i -e "s:share/doc/positron:share/doc/${PF}:" setup.py
+       distutils-r1_python_prepare_all
 }