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