[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
89/142: gnu: igraph: Update to 0.9.5.
From: |
guix-commits |
Subject: |
89/142: gnu: igraph: Update to 0.9.5. |
Date: |
Mon, 10 Jan 2022 13:07:26 -0500 (EST) |
apteryx pushed a commit to branch version-1.4.0
in repository guix.
commit 3c50cb75eec0521fecb47d1e006a29122e97b0c5
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Thu Dec 23 00:43:28 2021 -0500
gnu: igraph: Update to 0.9.5.
* gnu/packages/graph.scm (igraph): Update to 0.9.5.
[source]: Add snippet to fully unbundle.
[build-system]: Use cmake-build-system.
[configure-flags]: Replace all by just '-DBUILD_SHARED_LIBS=ON'.
[native-inputs]: Add pkg-config.
[inputs]{zlib}: Delete input.
{arpack-ng, plfit, suitesparse}: New inputs.
---
gnu/packages/graph.scm | 46 ++++++++++++++++++++++++++++++++++++----------
1 file changed, 36 insertions(+), 10 deletions(-)
diff --git a/gnu/packages/graph.scm b/gnu/packages/graph.scm
index bc27edc2fa..d33fcdf6dd 100644
--- a/gnu/packages/graph.scm
+++ b/gnu/packages/graph.scm
@@ -88,28 +88,54 @@ distributions in empirical data. SIAM Review 51, 661-703
(2009)}).")
(define-public igraph
(package
(name "igraph")
- (version "0.8.4")
+ (version "0.9.5")
(source
(origin
(method url-fetch)
(uri (string-append "https://github.com/igraph/igraph/releases/"
"download/" version "/igraph-" version ".tar.gz"))
+ (modules '((guix build utils)))
+ (snippet '(begin
+ ;; Fully unbundle igraph (see:
+ ;; https://github.com/igraph/igraph/issues/1897).
+ (delete-file-recursively "vendor")
+ (substitute* "CMakeLists.txt"
+ (("add_subdirectory\\(vendor\\).*")
+ ""))
+ (substitute* "src/CMakeLists.txt"
+ ;; Remove bundling related variables.
+ ((".*_IS_VENDORED.*") "")
+ ;; Remove link/install directives to bundled plfit.
+ (("plfit") "")
+ ;; Patch in support to find plfit from the system.
+ (("# Link igraph statically to some.*" all)
+ (string-append "\
+find_package(PkgConfig REQUIRED)
+pkg_check_modules(PLFIT REQUIRED libplfit IMPORTED_TARGET)
+target_link_libraries(igraph PUBLIC PkgConfig::PLFIT)\n"
+ all)))
+ (substitute* (find-files "." "(\\.h|\\.c)$")
+ ;; Adjust includes for the newer plfit used.
+ (("plfit/error.h")
+ "plfit/plfit_error.h")
+ ;; And the newer SuiteSparse.
+ (("cs/cs.h")
+ "cs.h"))))
(sha256
- (base32 "127q6q40kbmvd62yhbz6dlfk370qiq98s1iscyagpgbpjwb4xvyf"))))
- (build-system gnu-build-system)
+ (base32 "0ym1jnj6rqrrjad0dk7jsrm9351zdd0654brbn38gqp1j9wgdqy4"))))
+ (build-system cmake-build-system)
(arguments
- `(#:configure-flags
- (list "--disable-static"
- "--with-external-glpk"
- "--with-external-blas"
- "--with-external-lapack")))
+ '(#:configure-flags (list "-DBUILD_SHARED_LIBS=ON")))
+ (native-inputs (list pkg-config))
(inputs
- (list gmp
+ (list arpack-ng
+ gmp
glpk
libxml2
lapack
openblas
- zlib))
+ plfit
+ suitesparse))
(home-page "https://igraph.org")
(synopsis "Network analysis and visualization")
(description
- 32/142: gnu: gnupg: Update to 2.2.32., (continued)
- 32/142: gnu: gnupg: Update to 2.2.32., guix-commits, 2022/01/10
- 33/142: gnu: util-linux: Update to 2.37.2., guix-commits, 2022/01/10
- 37/142: gnu: shadow: Update to 4.9., guix-commits, 2022/01/10
- 39/142: gnu: rust-1.39: Update mrustc to commit c70665., guix-commits, 2022/01/10
- 42/142: gnu: python-gnupg: Update to 0.4.8., guix-commits, 2022/01/10
- 80/142: gnu: python-cachecontrol: Update to 0.12.10., guix-commits, 2022/01/10
- 35/142: gnu: cmake-bootstrap: Update to 3.21.4., guix-commits, 2022/01/10
- 62/142: gnu: python-typing-extensions: Update to 4.0.1., guix-commits, 2022/01/10
- 68/142: gnu: python-pylint: Update to 2.12.2., guix-commits, 2022/01/10
- 83/142: gnu: python-beautifulsoup4: Update to 4.10.0., guix-commits, 2022/01/10
- 89/142: gnu: igraph: Update to 0.9.5.,
guix-commits <=
- 92/142: build-system/gnu: Make gzip files writable before resetting timestamps., guix-commits, 2022/01/10
- 93/142: gnu: python-biom-format: Remove obsolete phase., guix-commits, 2022/01/10
- 17/142: guix: lint: Fix comment per TODO., guix-commits, 2022/01/10
- 24/142: gnu: libcap: Use #$output unconditionally., guix-commits, 2022/01/10
- 25/142: gnu: libproxy: Remove target condition from check phase., guix-commits, 2022/01/10
- 27/142: gnu: python-nose: Fix build., guix-commits, 2022/01/10
- 30/142: gnu: glibmm: Remove trailing #t., guix-commits, 2022/01/10
- 26/142: gnu: glib: Fix cross-compilation., guix-commits, 2022/01/10
- 34/142: gnu: eudev: Update to 3.2.11., guix-commits, 2022/01/10
- 41/142: gnu: gsettings-desktop-schemas: Add python to native inputs., guix-commits, 2022/01/10