From 2e02bc8ea804d7c9d8c55fd174ed50392fb0edc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Sun, 21 Nov 2021 20:15:25 -0300 Subject: [PATCH] New package: nauty-2.7r3 --- srcpkgs/nauty-devel | 1 + .../nauty/patches/cross-disable-popcnt.patch | 20 ++++++++++++++++ srcpkgs/nauty/template | 24 +++++++++++++++++++ srcpkgs/nauty/update | 1 + 4 files changed, 46 insertions(+) create mode 120000 srcpkgs/nauty-devel create mode 100644 srcpkgs/nauty/patches/cross-disable-popcnt.patch create mode 100644 srcpkgs/nauty/template create mode 100644 srcpkgs/nauty/update diff --git a/srcpkgs/nauty-devel b/srcpkgs/nauty-devel new file mode 120000 index 000000000000..332f81a9affc --- /dev/null +++ b/srcpkgs/nauty-devel @@ -0,0 +1 @@ +nauty \ No newline at end of file diff --git a/srcpkgs/nauty/patches/cross-disable-popcnt.patch b/srcpkgs/nauty/patches/cross-disable-popcnt.patch new file mode 100644 index 000000000000..a5b7d59ff4e7 --- /dev/null +++ b/srcpkgs/nauty/patches/cross-disable-popcnt.patch @@ -0,0 +1,20 @@ +Disable popcnt in cross-builds, as we can't run programs to check. +Note that using `configure --disable-popcnt` is broken. + +--- a/configure 2021-11-21 20:00:41.599629153 -0300 ++++ b/configure 2021-11-21 20:00:45.891579837 -0300 +@@ -5766,10 +5766,10 @@ + printf %s "checking if popcnt instruction is available and requested... " >&6; } + if test "$cross_compiling" = yes + then : +- { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +-printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +-as_fn_error $? "cannot run test program while cross compiling +-See \`config.log' for more details" "$LINENO" 5; } ++allow_popcnt=0 # { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 ++# printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} ++# as_fn_error $? "cannot run test program while cross compiling ++# See \`config.log' for more details" "$LINENO" 5; } + else $as_nop + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ diff --git a/srcpkgs/nauty/template b/srcpkgs/nauty/template new file mode 100644 index 000000000000..57025e400999 --- /dev/null +++ b/srcpkgs/nauty/template @@ -0,0 +1,24 @@ +# Template file for 'nauty' +pkgname=nauty +version=2.7r3 +revision=1 +wrksrc=${pkgname}${version/./} +build_style=gnu-configure +make_install_args="includedir=/usr/include/nauty + pkgconfigexecdir=/usr/lib/pkgconfig" +short_desc="Compute the automorphism groups of graphs and digraphs" +maintainer="Gonzalo TornarĂ­a " +license="Apache-2.0" +homepage="https://pallini.di.uniroma1.it/" +distfiles="https://pallini.di.uniroma1.it/nauty${version/./}.tar.gz" +checksum=4f0665b716a53f7a14ea2ae30059f23d064ce3fe4c12c013404ef6e1ee0b88c2 + +nauty-devel_package() { + depends="${sourcepkg}>=${version}_${revision} ${makedepends}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove "usr/lib/*.a" + vmove usr/lib/pkgconfig + } +} diff --git a/srcpkgs/nauty/update b/srcpkgs/nauty/update new file mode 100644 index 000000000000..6607167f897d --- /dev/null +++ b/srcpkgs/nauty/update @@ -0,0 +1 @@ +version=${version/./}