Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion common/shlibs
Original file line number Diff line number Diff line change
Expand Up @@ -3874,7 +3874,7 @@ libjsonnet.so.0 jsonnet-0.14.0_2
libjsonnet++.so.0 jsonnet-0.14.0_2
libigdgmm.so.12 intel-gmmlib-22.1.3_1
libigfxcmrt.so.7 intel-media-driver-21.3.5_1
libigraph.so.0 igraph-0.9.4_1
libigraph.so.3 igraph-0.10.2_1
libgtk-layer-shell.so.0 gtk-layer-shell-0.1.0_1
librdkafka.so.1 librdkafka-1.4.4_3
librdkafka++.so.1 librdkafka-1.4.4_3
Expand Down
21 changes: 16 additions & 5 deletions srcpkgs/igraph/template
Original file line number Diff line number Diff line change
@@ -1,18 +1,29 @@
# Template file for 'igraph'
pkgname=igraph
version=0.9.8
version=0.10.2
revision=1
build_style=cmake
configure_args="-DIGRAPH_ENABLE_TLS=on -DIGRAPH_ENABLE_LTO=on -DBUILD_SHARED_LIBS=ON"
hostmakedepends="flex bison python3"
makedepends="arpack-ng-devel glpk-devel gmp-devel lapack-devel libgomp-devel libxml2-devel SuiteSparse-devel"
configure_args="-DIGRAPH_ENABLE_TLS=on -DIGRAPH_ENABLE_LTO=on -DBUILD_SHARED_LIBS=ON
-DBLA_VENDOR=$(vopt_if openblas 'OpenBLAS' 'Generic')"
makedepends="arpack-ng-devel glpk-devel gmp-devel libgomp-devel libxml2-devel
$(vopt_if openblas 'openblas-devel' 'lapack-devel')"
short_desc="Graph library"
maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
license="GPL-2.0-or-later"
homepage="https://igraph.org/c/"
changelog="https://raw.githubusercontent.com/igraph/igraph/master/CHANGELOG.md"
distfiles="https://github.com/igraph/igraph/releases/download/${version}/igraph-${version}.tar.gz"
checksum=f9a83473cea3e037b605b79b336be656b00dcf3037b233b4b250bd9270f36397
checksum=2c2b9f18fc2f84b327f1146466942eb3e3d2ff09b6738504efb9e5edf2728c83

build_options="openblas"

case "$XBPS_TARGET_MACHINE" in
x86_64*|i686*|aarch64*|armv[67]*|ppc64*)
# Prefer accelerated routines where available
build_options_default="openblas"
;;
*) ;;
esac

igraph-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
Expand Down
14 changes: 14 additions & 0 deletions srcpkgs/rankwidth/patches/igraph-0.10.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--- rw-0.9/simplerw.c.newigraph 2017-02-14 00:20:35.000000000 +0900
+++ rw-0.9/simplerw.c 2022-09-11 19:39:47.033917305 +0900
@@ -134,7 +134,11 @@ int read_graph(const char *format, const
igraph_destroy(&igraph);
return(-1);
}
+#if (IGRAPH_VERSION_MAJOR >= 1) || ((IGRAPH_VERSION_MAJOR == 0) && (IGRAPH_VERSION_MINOR >= 10))
+ igraph_get_adjacency(&igraph, &imatrix, IGRAPH_GET_ADJACENCY_BOTH, NULL, IGRAPH_LOOPS_ONCE);
+#else
igraph_get_adjacency(&igraph, &imatrix, IGRAPH_GET_ADJACENCY_BOTH, 0);
+#endif
igraph_destroy(&igraph);
if(igraph_matrix_nrow(&imatrix) > MAX_VERTICES)
{
2 changes: 1 addition & 1 deletion srcpkgs/rankwidth/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'rankwidth'
pkgname=rankwidth
version=0.9
revision=1
revision=2
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="igraph-devel"
Expand Down