From a3fc1a0faff8587a9ddf698d0569ba3ab5076064 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Mon, 30 Aug 2021 22:34:53 -0300 Subject: [PATCH 1/3] New package: SuiteSparse-5.10.1 --- common/shlibs | 1 + srcpkgs/SuiteSparse-devel | 1 + srcpkgs/SuiteSparse/template | 42 ++++++++++++++++++++++++++++++++++++ 3 files changed, 44 insertions(+) create mode 120000 srcpkgs/SuiteSparse-devel create mode 100644 srcpkgs/SuiteSparse/template diff --git a/common/shlibs b/common/shlibs index 52c2f17b7198..d40f9178b0d7 100644 --- a/common/shlibs +++ b/common/shlibs @@ -66,6 +66,7 @@ libppl.so.14 ppl-1.2_1 libppl_c.so.4 ppl-0.11_1 libstdc++.so.6 libstdc++-4.4.0_1 libssp.so.0 libssp-4.4.0_1 +libcxsparse.so.3 SuiteSparse-5.10.1_1 libncurses.so.6 ncurses-libs-6.0_1 ignore libncursesw.so.6 ncurses-libs-5.8_1 ignore libtinfo.so.6 ncurses-libtinfo-libs-6.2_2 diff --git a/srcpkgs/SuiteSparse-devel b/srcpkgs/SuiteSparse-devel new file mode 120000 index 000000000000..cfb45e420a6f --- /dev/null +++ b/srcpkgs/SuiteSparse-devel @@ -0,0 +1 @@ +SuiteSparse \ No newline at end of file diff --git a/srcpkgs/SuiteSparse/template b/srcpkgs/SuiteSparse/template new file mode 100644 index 000000000000..23f75ff6dd7a --- /dev/null +++ b/srcpkgs/SuiteSparse/template @@ -0,0 +1,42 @@ +# Template file for 'SuiteSparse' +pkgname=SuiteSparse +version=5.10.1 +revision=1 +make_build_args="BLAS=-lblas LAPACK=-llapack TBB=-ltbb SPQR_CONFIG=-DHAVE_TBB" +hostmakedepends="cmake chrpath" +makedepends="tbb-devel libgomp-devel lapack-devel mpfr-devel" +short_desc="Suite of sparse matrix software" +maintainer="Gonzalo Tornaría " +license="custom:multiple" +homepage="https://people.engr.tamu.edu/davis/suitesparse.html" +distfiles="https://github.com/DrTimothyAldenDavis/SuiteSparse/archive/refs/tags/v${version}.tar.gz" +checksum=acb4d1045f48a237e70294b950153e48dce5b5f9ca8190e86c2b8c54ce00a7ee + +do_build() { + make config library $make_build_args JOBS=$XBPS_MAKEJOBS +} + +do_check() { + make go $make_build_args LD_LIBRARY_PATH=$wrksrc/lib JOBS=$XBPS_MAKEJOBS +} + +do_install() { + make install $make_build_args INSTALL=$DESTDIR/usr + vlicense LICENSE.txt + + # remove invalid rpath + chrpath -d $DESTDIR/usr/lib/lib*.so +} + +SuiteSparse-devel_package() { + depends="${makedepends} ${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove "usr/lib/*.a" + # do not vmove libmetis.so + vmove "usr/lib/lib[a-ln-z]*.so" + vmove "usr/lib/libmo*.so" + vmove usr/share/doc + } +} From 39d0922ddb74f601516b37798e49f566a5837ded Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Mon, 30 Aug 2021 22:35:49 -0300 Subject: [PATCH 2/3] New package: igraph-0.9.4 --- common/shlibs | 2 ++ srcpkgs/igraph-devel | 1 + srcpkgs/igraph/template | 25 +++++++++++++++++++++++++ 3 files changed, 28 insertions(+) create mode 120000 srcpkgs/igraph-devel create mode 100644 srcpkgs/igraph/template diff --git a/common/shlibs b/common/shlibs index d40f9178b0d7..bebd9e40bc4b 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3867,6 +3867,8 @@ libjsonnet.so.0 jsonnet-0.14.0_2 libjsonnet++.so.0 jsonnet-0.14.0_2 libigdgmm.so.11 intel-gmmlib-21.3.1_1 libigfxcmrt.so.7 intel-media-driver-21.3.5_1 +libigdgmm.so.11 intel-gmmlib-19.4.1_1 +libigraph.so.0 igraph-0.9.4_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 diff --git a/srcpkgs/igraph-devel b/srcpkgs/igraph-devel new file mode 120000 index 000000000000..fcd7873f9600 --- /dev/null +++ b/srcpkgs/igraph-devel @@ -0,0 +1 @@ +igraph \ No newline at end of file diff --git a/srcpkgs/igraph/template b/srcpkgs/igraph/template new file mode 100644 index 000000000000..9ad070206203 --- /dev/null +++ b/srcpkgs/igraph/template @@ -0,0 +1,25 @@ +# Template file for 'igraph' +pkgname=igraph +version=0.9.4 +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" +short_desc="Graph library" +maintainer="Gonzalo Tornaría " +license="GPL-2.0-or-later" +homepage="https://igraph.org/c/" +distfiles="https://github.com/igraph/igraph/releases/download/${version}/igraph-${version}.tar.gz" +checksum=a3285cccf4f043c9ced2bc8d8d2609ff8398cb92ed49fdf86264ed91929137dd + +igraph-devel_package() { + depends="${makedepends} ${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/cmake + vmove usr/lib/pkgconfig + vmove "usr/lib/*.so" + } +} From 9f64a6c75d610b60cc5793806220c021f0b59df9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Mon, 30 Aug 2021 22:36:11 -0300 Subject: [PATCH 3/3] New package: rankwidth-0.9 --- common/shlibs | 1 + srcpkgs/rankwidth-devel | 1 + srcpkgs/rankwidth/template | 32 ++++++++++++++++++++++++++++++++ srcpkgs/rankwidth/update | 1 + 4 files changed, 35 insertions(+) create mode 120000 srcpkgs/rankwidth-devel create mode 100644 srcpkgs/rankwidth/template create mode 100644 srcpkgs/rankwidth/update diff --git a/common/shlibs b/common/shlibs index bebd9e40bc4b..3a0c1e097963 100644 --- a/common/shlibs +++ b/common/shlibs @@ -438,6 +438,7 @@ libparted.so.2 libparted-3.1_1 libparted-fs-resize.so.0 libparted-3.1_1 libntfs-3g.so.89 ntfs-3g-2021.8.22_1 libruby.so.3.0 ruby-3.0.2_1 +librw.so.0 rankwidth-0.9_1 libprocessui.so.9 libksysguard-5.18.90_1 libksignalplotter.so.9 libksysguard-5.18.90_1 libksgrd.so.9 libksysguard-5.18.90_1 diff --git a/srcpkgs/rankwidth-devel b/srcpkgs/rankwidth-devel new file mode 120000 index 000000000000..ae0ae25eafc9 --- /dev/null +++ b/srcpkgs/rankwidth-devel @@ -0,0 +1 @@ +rankwidth \ No newline at end of file diff --git a/srcpkgs/rankwidth/template b/srcpkgs/rankwidth/template new file mode 100644 index 000000000000..c322a6e1a12a --- /dev/null +++ b/srcpkgs/rankwidth/template @@ -0,0 +1,32 @@ +# Template file for 'rankwidth' +pkgname=rankwidth +version=0.9 +revision=1 +wrksrc=rw-${version} +build_style=gnu-configure +hostmakedepends="pkg-config" +makedepends="igraph-devel" +short_desc="Calculates rank-width and rank-decompositions" +maintainer="Gonzalo Tornaría " +license="GPL-2.0-or-later" +homepage="https://sourceforge.net/projects/rankwidth/" +distfiles="${SOURCEFORGE_SITE}/rankwidth/rw-$version.tar.gz" +checksum=c1e03506fe25cdfcb428c051fc56b2d2affb5b06fba3f2ce756631466befb441 + +post_install() { + # the binary conflicts with rw package, and it's not needed for + # sagemath; if ever someone needs it we can decide whether to + # rename it or install in a separate package with conflicts=rw + rm -rf ${DESTDIR}/usr/bin/rw + rm -rf ${DESTDIR}/usr/share/doc/rw +} + +rankwidth-devel_package() { + depends="${makedepends} ${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove "usr/lib/*.a" + vmove "usr/lib/*.so" + } +} diff --git a/srcpkgs/rankwidth/update b/srcpkgs/rankwidth/update new file mode 100644 index 000000000000..226d3b64d1c1 --- /dev/null +++ b/srcpkgs/rankwidth/update @@ -0,0 +1 @@ +pkgname=rw