From cb0a7bf586b27d036bc189c9a5269e788210df2f Mon Sep 17 00:00:00 2001 From: Alexander Grund Date: Tue, 16 Jan 2024 16:06:24 +0100 Subject: [PATCH] adding easyconfigs: ccache-4.9-GCCcore-12.2.0.eb, hiredis-1.2.0-GCCcore-12.2.0.eb --- .../c/ccache/ccache-4.9-GCCcore-12.2.0.eb | 49 +++++++++++++++++++ .../h/hiredis/hiredis-1.2.0-GCCcore-12.2.0.eb | 41 ++++++++++++++++ 2 files changed, 90 insertions(+) create mode 100644 easybuild/easyconfigs/c/ccache/ccache-4.9-GCCcore-12.2.0.eb create mode 100644 easybuild/easyconfigs/h/hiredis/hiredis-1.2.0-GCCcore-12.2.0.eb diff --git a/easybuild/easyconfigs/c/ccache/ccache-4.9-GCCcore-12.2.0.eb b/easybuild/easyconfigs/c/ccache/ccache-4.9-GCCcore-12.2.0.eb new file mode 100644 index 00000000000..713f314a2dd --- /dev/null +++ b/easybuild/easyconfigs/c/ccache/ccache-4.9-GCCcore-12.2.0.eb @@ -0,0 +1,49 @@ +# Copyright:: Copyright 2012-2014 Uni.Lu/LCSB, NTUA +# Authors:: Fotis Georgatos +# License:: MIT/GPL + +easyblock = 'CMakeNinja' + +name = 'ccache' +version = '4.9' + +homepage = 'https://ccache.dev/' +description = """Ccache (or “ccache”) is a compiler cache. It speeds up recompilation by +caching previous compilations and detecting when the same compilation is being done again""" + +toolchain = {'name': 'GCCcore', 'version': '12.2.0'} + +source_urls = [GITHUB_RELEASE] +sources = [SOURCE_TAR_GZ] +checksums = ['866b2223d59333640f0e7a003cbb85b32d9ca3c9445bd9e3cf142942e69dd3ec'] + +builddependencies = [ + ('binutils', '2.39'), + ('CMake', '3.24.3'), + ('Ninja', '1.11.1'), + ('zstd', '1.5.2'), + ('pkgconf', '1.9.3'), +] + +dependencies = [ + ('hiredis', '1.2.0'), +] + +# use BFD linker rather than default ld.gold (required on CentOS 8) +preconfigopts = 'LDFLAGS="-fuse-ld=bfd"' +configopts = ' '.join([ + '-DENABLE_DOCUMENTATION=OFF', + '-DENABLE_IPO=ON', + # Link most libraries statically + '-DSTATIC_LINK=ON', + # Disable downloading dependencies + '-DZSTD_FROM_INTERNET=OFF -DHIREDIS_FROM_INTERNET=OFF', +]) + +sanity_check_paths = { + 'files': ['bin/ccache'], + 'dirs': [] +} +sanity_check_commands = ['ccache --help'] + +moduleclass = 'tools' diff --git a/easybuild/easyconfigs/h/hiredis/hiredis-1.2.0-GCCcore-12.2.0.eb b/easybuild/easyconfigs/h/hiredis/hiredis-1.2.0-GCCcore-12.2.0.eb new file mode 100644 index 00000000000..81201ae4c9b --- /dev/null +++ b/easybuild/easyconfigs/h/hiredis/hiredis-1.2.0-GCCcore-12.2.0.eb @@ -0,0 +1,41 @@ +# Author: Alexander Grund (TU Dresden) +# Based on EC by J. Sassmannshausen (Imperial College London) + +easyblock = 'CMakeMake' + +name = 'hiredis' +version = '1.2.0' + +homepage = 'https://github.com/redis/hiredis' +description = """Hiredis is a minimalistic C client library for the Redis database. + +It is minimalistic because it just adds minimal support for the protocol, +but at the same time it uses a high level printf-alike API in order to +make it much higher level than otherwise suggested by its minimal code base +and the lack of explicit bindings for every Redis command.""" + +toolchain = {'name': 'GCCcore', 'version': '12.2.0'} +toolchainopts = {'pic': True} + +github_account = 'redis' +source_urls = [GITHUB_SOURCE] +sources = ['v%(version)s.tar.gz'] +checksums = ['82ad632d31ee05da13b537c124f819eb88e18851d9cb0c30ae0552084811588c'] + +builddependencies = [ + ('binutils', '2.39'), + ('CMake', '3.24.3'), +] + +dependencies = [ + ('OpenSSL', '1.1', '', SYSTEM), +] + +configopts = ['-DBUILD_SHARED_LIBS=ON', '-DBUILD_SHARED_LIBS=OFF'] + +sanity_check_paths = { + 'files': ['lib/libhiredis.a', 'lib/libhiredis.%s' % SHLIB_EXT], + 'dirs': ['include'], +} + +moduleclass = 'tools'