dev-vcs/hgsubversion: update live ebuild
authorDirkjan Ochtman <dirkjan@ochtman.nl>
Fri, 13 May 2016 10:09:40 +0000 (12:09 +0200)
committerDirkjan Ochtman <dirkjan@ochtman.nl>
Fri, 13 May 2016 10:09:40 +0000 (12:09 +0200)
Package-Manager: portage-2.2.28

dev-vcs/hgsubversion/hgsubversion-9999.ebuild

index 3b08abfa989f49c40aebabb10adc525b347cf6fa..9f901ad67276bafe82f1cb4eb331180fb3ae36a0 100644 (file)
@@ -1,13 +1,11 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI="3"
-PYTHON_DEPEND="2"
-SUPPORT_PYTHON_ABIS="1"
-RESTRICT_PYTHON_ABIS="3.* *-jython"
+EAPI="5"
+PYTHON_COMPAT=( python2_7 )
 
-inherit distutils mercurial
+inherit distutils-r1 mercurial
 
 DESCRIPTION="hgsubversion is a Mercurial extension for working with Subversion repositories"
 HOMEPAGE="https://bitbucket.org/durin42/hgsubversion/wiki/Home https://pypi.python.org/pypi/hgsubversion"
@@ -19,25 +17,12 @@ SLOT="0"
 KEYWORDS=""
 IUSE="test"
 
-RDEPEND="
-       >=dev-vcs/mercurial-1.4
+RDEPEND="dev-vcs/mercurial[${PYTHON_USEDEP}]
        || (
-               dev-python/subvertpy
+               dev-python/subvertpy[${PYTHON_USEDEP}]
                >=dev-vcs/subversion-1.5[python]
-       )
-"
-DEPEND="
-       dev-python/setuptools
-       test? ( dev-python/nose )
-"
+       )"
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+               test? ( dev-python/nose[${PYTHON_USEDEP}] )"
 
-DOCS="README"
-
-src_test() {
-       cd tests
-
-       testing() {
-               PYTHONPATH="../build-${PYTHON_ABI}/lib" "$(PYTHON)" run.py
-       }
-       python_execute_function testing
-}
+DOCS=( README )