summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenda Xu <heroxbd@gentoo.org>2016-12-23 21:04:43 +0900
committerBenda Xu <heroxbd@gentoo.org>2016-12-23 21:05:14 +0900
commitd7a5e7c24835ae6f6fa8c4642746fac58b17dd19 (patch)
treefe4a8201572b23b9adf1c161cd39d1681f8589dc
parentapp-crypt/heimdal: fix cross-compiling - bug 603554 (diff)
downloadgentoo-d7a5e7c24835ae6f6fa8c4642746fac58b17dd19.tar.gz
gentoo-d7a5e7c24835ae6f6fa8c4642746fac58b17dd19.tar.bz2
gentoo-d7a5e7c24835ae6f6fa8c4642746fac58b17dd19.zip
dev-python/python-lzo: support Prefix.
Package-Manager: portage-2.3.2
-rw-r--r--dev-python/python-lzo/python-lzo-1.08-r1.ebuild10
1 files 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 01540f45a66..ddfebfd56f0 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)"
+}