Skip to content

Commit

Permalink
adding easyconfigs: ccache-4.9-GCCcore-12.2.0.eb, hiredis-1.2.0-GCCco…
Browse files Browse the repository at this point in the history
…re-12.2.0.eb
  • Loading branch information
Flamefire committed Jan 16, 2024
1 parent 8ba26bb commit cb0a7bf
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 0 deletions.
49 changes: 49 additions & 0 deletions easybuild/easyconfigs/c/ccache/ccache-4.9-GCCcore-12.2.0.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Copyright:: Copyright 2012-2014 Uni.Lu/LCSB, NTUA
# Authors:: Fotis Georgatos <[email protected]>
# 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'
41 changes: 41 additions & 0 deletions easybuild/easyconfigs/h/hiredis/hiredis-1.2.0-GCCcore-12.2.0.eb
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit cb0a7bf

Please sign in to comment.