1 |
commit: d7a5e7c24835ae6f6fa8c4642746fac58b17dd19 |
2 |
Author: Benda Xu <heroxbd <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 23 12:04:43 2016 +0000 |
4 |
Commit: Benda XU <heroxbd <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 23 12:05:14 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7a5e7c2 |
7 |
|
8 |
dev-python/python-lzo: support Prefix. |
9 |
|
10 |
Package-Manager: portage-2.3.2 |
11 |
|
12 |
dev-python/python-lzo/python-lzo-1.08-r1.ebuild | 10 ++++++---- |
13 |
1 file changed, 6 insertions(+), 4 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/python-lzo/python-lzo-1.08-r1.ebuild b/dev-python/python-lzo/python-lzo-1.08-r1.ebuild |
16 |
index 01540f4..ddfebfd 100644 |
17 |
--- a/dev-python/python-lzo/python-lzo-1.08-r1.ebuild |
18 |
+++ b/dev-python/python-lzo/python-lzo-1.08-r1.ebuild |
19 |
@@ -1,11 +1,11 @@ |
20 |
-# Copyright 1999-2015 Gentoo Foundation |
21 |
+# Copyright 1999-2016 Gentoo Foundation |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
# $Id$ |
24 |
|
25 |
EAPI=5 |
26 |
PYTHON_COMPAT=( python2_7 ) |
27 |
|
28 |
-inherit distutils-r1 |
29 |
+inherit distutils-r1 eutils prefix |
30 |
|
31 |
DESCRIPTION="Python interface to lzo" |
32 |
HOMEPAGE="http://www.oberhumer.com/opensource/lzo/" |
33 |
@@ -19,8 +19,10 @@ IUSE="" |
34 |
DEPEND="dev-libs/lzo:2" |
35 |
RDEPEND="${DEPEND}" |
36 |
|
37 |
-PATCHES=( "${FILESDIR}/lzo2compat.patch" ) |
38 |
- |
39 |
python_test() { |
40 |
"${PYTHON}" tests/test.py || die "tests failed" |
41 |
} |
42 |
+ |
43 |
+src_prepare() { |
44 |
+ epatch "$(prefixify_ro "${FILESDIR}"/lzo2compat.patch)" |
45 |
+} |