dev-python/python-lzo: support Prefix.
authorBenda Xu <heroxbd@gentoo.org>
Fri, 23 Dec 2016 12:04:43 +0000 (21:04 +0900)
committerBenda Xu <heroxbd@gentoo.org>
Fri, 23 Dec 2016 12:05:14 +0000 (21:05 +0900)
Package-Manager: portage-2.3.2

dev-python/python-lzo/python-lzo-1.08-r1.ebuild

index 01540f45a666f01147c84add7a57831260dc86a1..ddfebfd56f025a663dbc68720f996263a0b72d94 100644 (file)
@@ -1,11 +1,11 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
 EAPI=5
 PYTHON_COMPAT=( python2_7 )
 
-inherit distutils-r1
+inherit distutils-r1 eutils prefix
 
 DESCRIPTION="Python interface to lzo"
 HOMEPAGE="http://www.oberhumer.com/opensource/lzo/"
@@ -19,8 +19,10 @@ IUSE=""
 DEPEND="dev-libs/lzo:2"
 RDEPEND="${DEPEND}"
 
-PATCHES=( "${FILESDIR}/lzo2compat.patch" )
-
 python_test() {
        "${PYTHON}" tests/test.py || die "tests failed"
 }
+
+src_prepare() {
+       epatch "$(prefixify_ro "${FILESDIR}"/lzo2compat.patch)"
+}