1 |
commit: 930ebed89589c69ce62f3821d91e4c1386341c4b |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 27 11:45:58 2016 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 27 11:46:19 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=930ebed8 |
7 |
|
8 |
dev-python/graph-tool: Update live ebuild |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
dev-python/graph-tool/graph-tool-9999.ebuild | 58 +++++++++++++--------------- |
13 |
1 file changed, 26 insertions(+), 32 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/graph-tool/graph-tool-9999.ebuild b/dev-python/graph-tool/graph-tool-9999.ebuild |
16 |
index aa07c37..4c2f617 100644 |
17 |
--- a/dev-python/graph-tool/graph-tool-9999.ebuild |
18 |
+++ b/dev-python/graph-tool/graph-tool-9999.ebuild |
19 |
@@ -1,59 +1,61 @@ |
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=( python{2_7,3_4} ) |
27 |
+EAPI=6 |
28 |
|
29 |
-inherit check-reqs toolchain-funcs python-r1 |
30 |
+PYTHON_COMPAT=( python2_7 python3_{4,5} ) |
31 |
|
32 |
-if [[ ${PV} == "9999" ]] ; then |
33 |
- EGIT_REPO_URI="https://git.skewed.de/count0/graph-tool.git" |
34 |
+inherit check-reqs python-r1 toolchain-funcs |
35 |
+ |
36 |
+if [[ ${PV} == *9999 ]]; then |
37 |
+ EGIT_REPO_URI="https://github.com/count0/graph-tool.git" |
38 |
inherit autotools git-r3 |
39 |
else |
40 |
- SRC_URI="http://downloads.skewed.de/${PN}/${P}.tar.bz2" |
41 |
+ SRC_URI="https://downloads.skewed.de/${PN}/${P}.tar.bz2" |
42 |
KEYWORDS="~amd64 ~x86" |
43 |
fi |
44 |
|
45 |
DESCRIPTION="An efficient python module for manipulation and statistical analysis of graphs" |
46 |
-HOMEPAGE="http://graph-tool.skewed.de/" |
47 |
+HOMEPAGE="https://graph-tool.skewed.de/" |
48 |
|
49 |
LICENSE="GPL-3" |
50 |
SLOT="0" |
51 |
IUSE="+cairo openmp" |
52 |
|
53 |
-CDEPEND="${PYTHON_DEPS} |
54 |
- >=dev-libs/boost-1.54.0[python,${PYTHON_USEDEP}] |
55 |
+RDEPEND=" |
56 |
+ ${PYTHON_DEPS} |
57 |
+ dev-libs/boost:=[python,${PYTHON_USEDEP}] |
58 |
dev-libs/expat |
59 |
dev-python/numpy[${PYTHON_USEDEP}] |
60 |
sci-libs/scipy[${PYTHON_USEDEP}] |
61 |
- >=sci-mathematics/cgal-3.5 |
62 |
+ sci-mathematics/cgal |
63 |
cairo? ( |
64 |
dev-cpp/cairomm |
65 |
dev-python/pycairo[${PYTHON_USEDEP}] |
66 |
- )" |
67 |
-RDEPEND="${CDEPEND} |
68 |
+ ) |
69 |
dev-python/matplotlib[${PYTHON_USEDEP}]" |
70 |
-DEPEND="${CDEPEND} |
71 |
+DEPEND="${RDEPEND} |
72 |
dev-cpp/sparsehash |
73 |
virtual/pkgconfig" |
74 |
|
75 |
-# most machines don't have enough ram for parallel builds |
76 |
-MAKEOPTS="${MAKEOPTS} -j1" |
77 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
78 |
|
79 |
# bug 453544 |
80 |
CHECKREQS_DISK_BUILD="6G" |
81 |
|
82 |
pkg_pretend() { |
83 |
- if use openmp ; then |
84 |
- tc-has-openmp || die "Please switch to an openmp compatible compiler" |
85 |
- fi |
86 |
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp |
87 |
check-reqs_pkg_pretend |
88 |
} |
89 |
|
90 |
+pkg_setup() { |
91 |
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp |
92 |
+} |
93 |
+ |
94 |
src_prepare() { |
95 |
- [[ ${PV} == "9999" ]] && eautoreconf |
96 |
- >py-compile |
97 |
+ default |
98 |
+ [[ ${PV} == *9999 ]] && eautoreconf |
99 |
python_copy_sources |
100 |
} |
101 |
|
102 |
@@ -73,19 +75,11 @@ src_configure() { |
103 |
} |
104 |
|
105 |
src_compile() { |
106 |
- python_foreach_impl run_in_build_dir default |
107 |
+ # most machines don't have enough ram for parallel builds |
108 |
+ python_foreach_impl run_in_build_dir emake -j1 |
109 |
} |
110 |
|
111 |
src_install() { |
112 |
python_foreach_impl run_in_build_dir default |
113 |
- prune_libtool_files --modules |
114 |
- |
115 |
- # remove unwanted extra docs |
116 |
- rm -r "${ED}"/usr/share/doc/${PN} || die |
117 |
-} |
118 |
- |
119 |
-run_in_build_dir() { |
120 |
- pushd "${BUILD_DIR}" > /dev/null |
121 |
- "$@" |
122 |
- popd > /dev/null |
123 |
+ find "${D}" -name '*.la' -delete || die |
124 |
} |