dev-python/mock: Properly use patching with distutils-r1.eclass
authorJustin Lecher <jlec@gentoo.org>
Thu, 14 Jan 2016 09:11:08 +0000 (10:11 +0100)
committerJustin Lecher <jlec@gentoo.org>
Thu, 14 Jan 2016 09:53:37 +0000 (10:53 +0100)
Package-Manager: portage-2.2.26
Signed-off-by: Justin Lecher <jlec@gentoo.org>
dev-python/mock/mock-1.0.1-r2.ebuild

index fac96bfeb4d180a76586801626f303c342534be6..282c79c345cc0ae8a68d73826322c0b60e92b6c8 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -25,9 +25,7 @@ DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
        )"
 RDEPEND=""
 
-src_prepare() {
-       epatch "${FILESDIR}"/${P}-fix-python3.4.patch
-}
+PATCHES=( "${FILESDIR}"/${P}-fix-python3.4.patch )
 
 python_test() {
        nosetests || die "Tests fail with ${EPYTHON}"