1 |
commit: 79031ffe022736ffab005240ae581035d89635ed |
2 |
Author: Aisha Tammy <gentoo <AT> aisha <DOT> cc> |
3 |
AuthorDate: Fri Feb 26 17:52:45 2021 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 26 17:52:45 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79031ffe |
7 |
|
8 |
dev-libs/igraph: version bump to 0.9.0 |
9 |
|
10 |
* moves to cmake based build system |
11 |
|
12 |
Closes: https://github.com/gentoo/gentoo/pull/19659 |
13 |
Package-Manager: Portage-3.0.14, Repoman-3.0.2 |
14 |
Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc> |
15 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
16 |
|
17 |
dev-libs/igraph/Manifest | 1 + |
18 |
dev-libs/igraph/files/igraph-0.9.0-cmakedirs.patch | 13 ++++++ |
19 |
dev-libs/igraph/igraph-0.9.0.ebuild | 49 ++++++++++++++++++++++ |
20 |
3 files changed, 63 insertions(+) |
21 |
|
22 |
diff --git a/dev-libs/igraph/Manifest b/dev-libs/igraph/Manifest |
23 |
index 862a2b7315f..91e5201f303 100644 |
24 |
--- a/dev-libs/igraph/Manifest |
25 |
+++ b/dev-libs/igraph/Manifest |
26 |
@@ -1,2 +1,3 @@ |
27 |
DIST igraph-0.8.3.tar.gz 3636192 BLAKE2B 1a6636a074182fc859d7c2982546668b221be8a71b9a8a60404764684b7488a41450cedb75f89558f1ffe6f6dbef298057b5294495f2e7992768f5fd4e40fbd9 SHA512 a25126fd5ee7cf823b6728d02d38c8d13c8561e9f6e10372faef15e98f4381c118f3dd9f308d003d7d18ca501e7055b838711a2a62e00afba32ca929c8d765f1 |
28 |
DIST igraph-0.8.5.tar.gz 3303252 BLAKE2B 9aa920e39a1ef76376eb9a88b6d24e2d051aa22807d4e9bbac49fd1708c59f821d2d4ec55dc96a89de84dfc3ca394e3de9f60704b7f3880a40128863b209d0d6 SHA512 eeb7a21b3a0551e47c178e568811a415e39afb2cc99be39905a15d667fa59564e83979111e1ea5d93636d5b0c7dcbed18728f03aa7ee4d83f96c45af52de8370 |
29 |
+DIST igraph-0.9.0.tar.gz 3752584 BLAKE2B ab8724de1fb57fda1250a9a3e1958609004731f72d38c225c23a94b7ad39af8af7a269bb9e9a2cae28b5d4038acbb0fb4f12bc90831340f59cdafa75f4b7c264 SHA512 ee6ddda3ebb9fb01029a3efbbab2329516d42ecb3030c57e7a78c8d7f28b76650fb4f3245e993cbef6161de6f6a1e0a4f5ba2533cbd8271df72554561b4f407f |
30 |
|
31 |
diff --git a/dev-libs/igraph/files/igraph-0.9.0-cmakedirs.patch b/dev-libs/igraph/files/igraph-0.9.0-cmakedirs.patch |
32 |
new file mode 100644 |
33 |
index 00000000000..a7682d41e0a |
34 |
--- /dev/null |
35 |
+++ b/dev-libs/igraph/files/igraph-0.9.0-cmakedirs.patch |
36 |
@@ -0,0 +1,13 @@ |
37 |
+--- a/src/CMakeLists.txt |
38 |
++++ b/src/CMakeLists.txt |
39 |
+@@ -440,8 +440,8 @@ generate_export_header(igraph |
40 |
+ include(GNUInstallDirs) |
41 |
+ install( |
42 |
+ TARGETS igraph |
43 |
+- RUNTIME DESTINATION bin |
44 |
+- LIBRARY DESTINATION lib |
45 |
++ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
46 |
++ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
47 |
+ ) |
48 |
+ install( |
49 |
+ DIRECTORY ${CMAKE_SOURCE_DIR}/include/ |
50 |
|
51 |
diff --git a/dev-libs/igraph/igraph-0.9.0.ebuild b/dev-libs/igraph/igraph-0.9.0.ebuild |
52 |
new file mode 100644 |
53 |
index 00000000000..d825b06fa45 |
54 |
--- /dev/null |
55 |
+++ b/dev-libs/igraph/igraph-0.9.0.ebuild |
56 |
@@ -0,0 +1,49 @@ |
57 |
+# Copyright 1999-2021 Gentoo Authors |
58 |
+# Distributed under the terms of the GNU General Public License v2 |
59 |
+ |
60 |
+EAPI=7 |
61 |
+ |
62 |
+inherit cmake |
63 |
+ |
64 |
+DESCRIPTION="Creating and manipulating undirected and directed graphs" |
65 |
+HOMEPAGE="http://www.igraph.org/" |
66 |
+SRC_URI="https://github.com/igraph/igraph/releases/download/${PV}/${P}.tar.gz" |
67 |
+ |
68 |
+LICENSE="GPL-2" |
69 |
+SLOT="0/0" |
70 |
+KEYWORDS="~amd64 ~x86" |
71 |
+IUSE="debug test threads" |
72 |
+RESTRICT="!test? ( test )" |
73 |
+ |
74 |
+RDEPEND=" |
75 |
+ dev-libs/gmp:0= |
76 |
+ dev-libs/libxml2 |
77 |
+ sci-libs/arpack |
78 |
+ sci-libs/cxsparse |
79 |
+ sci-mathematics/glpk:= |
80 |
+ virtual/blas |
81 |
+ virtual/lapack" |
82 |
+DEPEND="${RDEPEND}" |
83 |
+ |
84 |
+PATCHES=( "${FILESDIR}"/${PN}-0.9.0-cmakedirs.patch ) |
85 |
+ |
86 |
+src_configure() { |
87 |
+ local mycmakeargs=( |
88 |
+ -DUSE_CCACHE=OFF |
89 |
+ -DIGRAPH_GLPK_SUPPORT=ON |
90 |
+ -DIGRAPH_GRAPHML_SUPPORT=ON |
91 |
+ -DIGRAPH_USE_INTERNAL_ARPACK=OFF |
92 |
+ -DIGRAPH_USE_INTERNAL_BLAS=OFF |
93 |
+ -DIGRAPH_USE_INTERNAL_CXSPARSE=OFF |
94 |
+ -DIGRAPH_USE_INTERNAL_GLPK=OFF |
95 |
+ -DIGRAPH_USE_INTERNAL_GMP=OFF |
96 |
+ -DIGRAPH_USE_INTERNAL_LAPACK=OFF |
97 |
+ -DIGRAPH_ENABLE_TLS=$(usex threads) |
98 |
+ -DBUILD_TESTING=$(usex test) |
99 |
+ ) |
100 |
+ cmake_src_configure |
101 |
+} |
102 |
+ |
103 |
+src_test() { |
104 |
+ cmake_build check |
105 |
+} |