New package: nauty-2.7r3

This commit is contained in:
Gonzalo Tornaría 2021-11-21 20:15:25 -03:00 committed by Leah Neukirchen
parent 801be490e2
commit dae42f7ec8
4 changed files with 46 additions and 0 deletions

1
srcpkgs/nauty-devel Symbolic link
View file

@ -0,0 +1 @@
nauty

View file

@ -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. */

24
srcpkgs/nauty/template Normal file
View file

@ -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 <tornaria@cmat.edu.uy>"
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
}
}

1
srcpkgs/nauty/update Normal file
View file

@ -0,0 +1 @@
version=${version/./}