Skip to content

Commit

Permalink
Merge pull request easybuilders#19606 from Flamefire/20240116160611_n…
Browse files Browse the repository at this point in the history
…ew_pr_ccache49

{tools}[GCCcore/12.2.0] ccache v4.9, hiredis v1.2.0
  • Loading branch information
branfosj authored Jan 20, 2024
2 parents 6e5cd37 + cb0a7bf commit 6f4191f
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 6f4191f

Please sign in to comment.