1 |
commit: f6e240c4d69810664bdcb8f67135abfd83c617e6 |
2 |
Author: Gerion Entrup <gerion.entrup <AT> flump <DOT> de> |
3 |
AuthorDate: Sun Jul 4 14:03:56 2021 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 4 14:03:56 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f6e240c4 |
7 |
|
8 |
dev-python/graph-tool: bump to 2.41 |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/21454 |
11 |
Closes: https://bugs.gentoo.org/795603 |
12 |
Signed-off-by: Gerion Entrup <gerion.entrup <AT> flump.de> |
13 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
14 |
|
15 |
dev-python/graph-tool/Manifest | 1 + |
16 |
dev-python/graph-tool/graph-tool-2.41.ebuild | 84 ++++++++++++++++++++++++++++ |
17 |
2 files changed, 85 insertions(+) |
18 |
|
19 |
diff --git a/dev-python/graph-tool/Manifest b/dev-python/graph-tool/Manifest |
20 |
index be2792d394a..802c47de23a 100644 |
21 |
--- a/dev-python/graph-tool/Manifest |
22 |
+++ b/dev-python/graph-tool/Manifest |
23 |
@@ -1 +1,2 @@ |
24 |
DIST graph-tool-2.35.tar.bz2 15153787 BLAKE2B 31f815f564510bb9628f43e8afab1a561222d23aabc3417ce474f0db69625954fc46119f61e8d7764d49a291e16e3b32f2e4249304f934c08d17af3e47a39ce8 SHA512 eadb122b75ff95fde165bfe1be8387deb08b48d041236aff11a0b8414d1a5027931a5e4b3216348edb61c53187b191a5e78af4eabb1ce679dd8736651f142bec |
25 |
+DIST graph-tool-2.41.tar.bz2 15171880 BLAKE2B 5d520e8676ebc8a363ab80d784bfdcc6746807a31dca6d3b1f27cdc1c865d60ba6e6fa64c3dc91e69dd7b2b07f56242facd435c89b0e1058f7d302e04f3144f9 SHA512 c1f71292d9db6977c20e8a6945dedefbe623070f08d62e3427ee11c5a936995ceb48f62ab7638ba6732b2436f762776d8acbc20a6b60e3cefe3ba298ab5ef0c5 |
26 |
|
27 |
diff --git a/dev-python/graph-tool/graph-tool-2.41.ebuild b/dev-python/graph-tool/graph-tool-2.41.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..cf2e5589ad5 |
30 |
--- /dev/null |
31 |
+++ b/dev-python/graph-tool/graph-tool-2.41.ebuild |
32 |
@@ -0,0 +1,84 @@ |
33 |
+# Copyright 1999-2021 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python3_{8..10} ) |
39 |
+ |
40 |
+inherit check-reqs python-r1 toolchain-funcs |
41 |
+ |
42 |
+if [[ ${PV} == *9999 ]]; then |
43 |
+ EGIT_REPO_URI="https://git.skewed.de/count0/graph-tool.git" |
44 |
+ inherit autotools git-r3 |
45 |
+else |
46 |
+ SRC_URI="https://downloads.skewed.de/${PN}/${P}.tar.bz2" |
47 |
+ KEYWORDS="~amd64" |
48 |
+fi |
49 |
+ |
50 |
+DESCRIPTION="An efficient python module for manipulation and statistical analysis of graphs" |
51 |
+HOMEPAGE="https://graph-tool.skewed.de/" |
52 |
+ |
53 |
+LICENSE="GPL-3" |
54 |
+SLOT="0" |
55 |
+IUSE="+cairo openmp" |
56 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
57 |
+ |
58 |
+RDEPEND=" |
59 |
+ ${PYTHON_DEPS} |
60 |
+ >=dev-libs/boost-1.70:=[context,python,${PYTHON_USEDEP}] |
61 |
+ dev-libs/expat |
62 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
63 |
+ dev-python/scipy[${PYTHON_USEDEP}] |
64 |
+ sci-mathematics/cgal:= |
65 |
+ dev-python/matplotlib[${PYTHON_USEDEP}] |
66 |
+ cairo? ( |
67 |
+ dev-cpp/cairomm:0 |
68 |
+ dev-python/pycairo[${PYTHON_USEDEP}] |
69 |
+ )" |
70 |
+DEPEND="${RDEPEND} |
71 |
+ dev-cpp/sparsehash" |
72 |
+BDEPEND="virtual/pkgconfig" |
73 |
+ |
74 |
+# bug 453544 |
75 |
+CHECKREQS_DISK_BUILD="6G" |
76 |
+ |
77 |
+pkg_pretend() { |
78 |
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp |
79 |
+ check-reqs_pkg_pretend |
80 |
+} |
81 |
+ |
82 |
+pkg_setup() { |
83 |
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp |
84 |
+} |
85 |
+ |
86 |
+src_prepare() { |
87 |
+ default |
88 |
+ [[ ${PV} == *9999 ]] && eautoreconf |
89 |
+ python_copy_sources |
90 |
+} |
91 |
+ |
92 |
+src_configure() { |
93 |
+ my_configure() { |
94 |
+ econf \ |
95 |
+ --disable-static \ |
96 |
+ $(use_enable openmp) \ |
97 |
+ $(use_enable cairo) \ |
98 |
+ --with-boost-python="boost_${EPYTHON/./}" |
99 |
+ } |
100 |
+ python_foreach_impl run_in_build_dir my_configure |
101 |
+} |
102 |
+ |
103 |
+src_compile() { |
104 |
+ # most machines don't have enough ram for parallel builds |
105 |
+ python_foreach_impl run_in_build_dir emake -j2 |
106 |
+} |
107 |
+ |
108 |
+src_install() { |
109 |
+ my_python_install() { |
110 |
+ default |
111 |
+ python_optimize |
112 |
+ } |
113 |
+ python_foreach_impl run_in_build_dir my_python_install |
114 |
+ |
115 |
+ find "${ED}" -name '*.la' -delete || die |
116 |
+} |