From d7a5e7c24835ae6f6fa8c4642746fac58b17dd19 Mon Sep 17 00:00:00 2001 From: Benda Xu Date: Fri, 23 Dec 2016 21:04:43 +0900 Subject: [PATCH] dev-python/python-lzo: support Prefix. Package-Manager: portage-2.3.2 --- dev-python/python-lzo/python-lzo-1.08-r1.ebuild | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/dev-python/python-lzo/python-lzo-1.08-r1.ebuild b/dev-python/python-lzo/python-lzo-1.08-r1.ebuild index 01540f45a666f..ddfebfd56f025 100644 --- a/dev-python/python-lzo/python-lzo-1.08-r1.ebuild +++ b/dev-python/python-lzo/python-lzo-1.08-r1.ebuild @@ -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)" +}