From 78d60915b06ca579ce1243362b232e79a9d72bc0 Mon Sep 17 00:00:00 2001 From: Miguel Dias Costa Date: Sat, 11 Nov 2023 16:04:54 +0800 Subject: [PATCH 1/2] adding easyconfigs: nauty-2.8.6-GCC-11.3.0.eb --- .../n/nauty/nauty-2.8.6-GCC-11.3.0.eb | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 easybuild/easyconfigs/n/nauty/nauty-2.8.6-GCC-11.3.0.eb diff --git a/easybuild/easyconfigs/n/nauty/nauty-2.8.6-GCC-11.3.0.eb b/easybuild/easyconfigs/n/nauty/nauty-2.8.6-GCC-11.3.0.eb new file mode 100644 index 00000000000..bc1a1036d2d --- /dev/null +++ b/easybuild/easyconfigs/n/nauty/nauty-2.8.6-GCC-11.3.0.eb @@ -0,0 +1,51 @@ +easyblock = 'MakeCp' + +name = 'nauty' +version = '2.8.6' + +homepage = 'https://pallini.di.uniroma1.it/' +description = """nauty and Traces are programs for computing automorphism groups of graphs and +digraphs. They can also produce a canonical label.""" + +toolchain = {'name': 'GCC', 'version': '11.3.0'} +toolchainopts = {'pic': True} + +source_urls = ['https://pallini.di.uniroma1.it'] +sources = ['nauty%s.tar.gz' % version.replace('.', '_')] +checksums = ['f2ce98225ca8330f5bce35f7d707b629247e09dda15fc479dc00e726fee5e6fa'] + +local_executables = [ + 'addedgeg', 'amtog', 'assembleg', 'biplabg', 'catg', 'complg', 'converseg', 'copyg', 'countg', 'cubhamg', + 'deledgeg', 'delptg', 'directg', 'dreadnaut', 'dretodot', 'dretog', 'edgetransg', 'genbg', 'genbgL', 'geng', + 'gengL', 'genquarticg', 'genrang', 'genspecialg', 'gentourng', 'gentreeg', 'hamheuristic', 'labelg', 'linegraphg', + 'listg', 'multig', 'newedgeg', 'NRswitchg', 'pickg', 'planarg', 'ranlabg', 'shortg', 'showg', 'subdivideg', + 'twohamg', 'underlyingg', 'vcolg', 'watercluster2' +] +local_headers = [ + 'gtools.h', 'gutils.h', 'naugroup.h', 'naugstrings.h', 'naurng.h', 'nausparse.h', 'nautaux.h', 'nautinv.h', + 'naututil.h', 'nautycliquer.h', 'nauty.h', 'planarity.h', 'quarticirred28.h', 'schreier.h', 'traces.h' +] +local_libs = ['nauty%s.a' % l for l in ['', '1', 'L', 'L1', 'W', 'W1']] + +# Configure and enable thread-local variables +prebuildopts = "./configure --enable-tls && " + +runtest = "checks" + +files_to_copy = [ + (local_executables, "bin"), + (local_headers, "include/%(name)s"), + (local_libs, "lib"), +] + +# prepend "lib" to library files to standarize their name +postinstallcmds = ["cd %%(installdir)s/lib/ && mv %s lib%s" % (l, l) for l in local_libs] + +sanity_check_paths = { + 'files': ['bin/%s' % x for x in local_executables] + + ['include/%%(name)s/%s' % h for h in local_headers] + + ['lib/lib%s' % l for l in local_libs], + 'dirs': [''] +} + +moduleclass = 'math' From 321ccf2e1cf84bdf36ad75ea4e8ddd9028773f4a Mon Sep 17 00:00:00 2001 From: Kenneth Hoste Date: Sun, 12 Nov 2023 21:31:25 +0100 Subject: [PATCH 2/2] add sanity check command for nauty --- easybuild/easyconfigs/n/nauty/nauty-2.8.6-GCC-11.3.0.eb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/easybuild/easyconfigs/n/nauty/nauty-2.8.6-GCC-11.3.0.eb b/easybuild/easyconfigs/n/nauty/nauty-2.8.6-GCC-11.3.0.eb index bc1a1036d2d..1fe2879b3c8 100644 --- a/easybuild/easyconfigs/n/nauty/nauty-2.8.6-GCC-11.3.0.eb +++ b/easybuild/easyconfigs/n/nauty/nauty-2.8.6-GCC-11.3.0.eb @@ -48,4 +48,6 @@ sanity_check_paths = { 'dirs': [''] } +sanity_check_commands = ["dreadnaut --help"] + moduleclass = 'math'