1 |
commit: 0b0f9f37d0995be0bb173025f37e7e34bc45a5dc |
2 |
Author: Sergey Popov <pinkbyte <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jun 1 18:51:22 2016 +0000 |
4 |
Commit: Sergey Popov <pinkbyte <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 1 18:51:22 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b0f9f37 |
7 |
|
8 |
dev-libs/boost-numpy: update live ebuild |
9 |
|
10 |
Bump EAPI to 6, use git-r3 and python-single-r1 eclasses. |
11 |
Add compatibility with new Python ABI naming. |
12 |
|
13 |
Package-Manager: portage-2.3.0_rc1 |
14 |
|
15 |
dev-libs/boost-numpy/boost-numpy-9999.ebuild | 26 +++++++++++++++++++------- |
16 |
1 file changed, 19 insertions(+), 7 deletions(-) |
17 |
|
18 |
diff --git a/dev-libs/boost-numpy/boost-numpy-9999.ebuild b/dev-libs/boost-numpy/boost-numpy-9999.ebuild |
19 |
index 8a984c5..aef1918 100644 |
20 |
--- a/dev-libs/boost-numpy/boost-numpy-9999.ebuild |
21 |
+++ b/dev-libs/boost-numpy/boost-numpy-9999.ebuild |
22 |
@@ -1,15 +1,16 @@ |
23 |
-# Copyright 1999-2014 Gentoo Foundation |
24 |
+# Copyright 1999-2016 Gentoo Foundation |
25 |
# Distributed under the terms of the GNU General Public License v2 |
26 |
# $Id$ |
27 |
|
28 |
-EAPI=5 |
29 |
+EAPI=6 |
30 |
|
31 |
-inherit cmake-utils |
32 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5} ) |
33 |
+inherit cmake-utils python-single-r1 |
34 |
|
35 |
DESCRIPTION="Boost.Python interface for NumPy" |
36 |
HOMEPAGE="https://github.com/ndarray/Boost.NumPy" |
37 |
if [ ${PV} == 9999 ]; then |
38 |
- inherit git-2 |
39 |
+ inherit git-r3 |
40 |
EGIT_REPO_URI="git://github.com/ndarray/Boost.NumPy.git \ |
41 |
https://github.com/ndarray/Boost.NumPy.git" |
42 |
else |
43 |
@@ -18,14 +19,25 @@ fi |
44 |
|
45 |
LICENSE="Boost-1.0" |
46 |
SLOT=0 |
47 |
-IUSE="doc examples" |
48 |
KEYWORDS="" |
49 |
|
50 |
-CDEPEND="dev-python/numpy |
51 |
- dev-libs/boost[python]" |
52 |
+IUSE="doc examples" |
53 |
+ |
54 |
+CDEPEND="dev-python/numpy[${PYTHON_USEDEP}] |
55 |
+ dev-libs/boost[python,${PYTHON_USEDEP}]" |
56 |
DEPEND="${CDEPEND}" |
57 |
RDEPEND="${CDEPEND}" |
58 |
|
59 |
+src_prepare() { |
60 |
+ # Make sure that new Python ABI names are searched too |
61 |
+ sed -i \ |
62 |
+ -e 's/PythonLibsNew/PythonLibs/' \ |
63 |
+ -e 's/python3/python/' \ |
64 |
+ CMakeLists.txt || die |
65 |
+ |
66 |
+ cmake-utils_src_prepare |
67 |
+} |
68 |
+ |
69 |
src_install() { |
70 |
cmake-utils_src_install |