Skip to content

Commit

Permalink
add ANTLR using Java/17 and switch NCO-5.2.9-foss-2024a.eb to use it
Browse files Browse the repository at this point in the history
  • Loading branch information
branfosj committed Dec 19, 2024
1 parent f93a7d6 commit 70b9249
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
easyblock = 'ConfigureMake'

name = 'ANTLR'
version = '2.7.7'
versionsuffix = '-Java-%(javaver)s'

homepage = 'https://www.antlr2.org/'
description = """ANTLR, ANother Tool for Language Recognition, (formerly PCCTS)
is a language tool that provides a framework for constructing recognizers,
compilers, and translators from grammatical descriptions containing
Java, C#, C++, or Python actions."""

toolchain = {'name': 'GCCcore', 'version': '13.3.0'}

source_urls = ['https://www.antlr2.org/download/']
sources = [SOURCELOWER_TAR_GZ]
patches = ['%(name)s-%(version)s_includes.patch']
checksums = [
'853aeb021aef7586bda29e74a6b03006bcb565a755c86b66032d8ec31b67dbb9', # antlr-2.7.7.tar.gz
'd167d3248a03301bc93efcb37d5df959aae6794968e42231af0b0dd26d6a2e66', # ANTLR-2.7.7_includes.patch
]

builddependencies = [('binutils', '2.42')]

dependencies = [('Java', '17', '', SYSTEM)]

configopts = '--disable-examples --disable-csharp --disable-python'

sanity_check_paths = {
'files': ['bin/antlr', 'bin/antlr-config'],
'dirs': ['include'],
}

sanity_check_commands = ["antlr --help"]

moduleclass = 'tools'
4 changes: 2 additions & 2 deletions easybuild/easyconfigs/n/NCO/NCO-5.2.9-foss-2024a.eb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name = 'NCO'
version = '5.2.9'

homepage = "https://github.com/nco/nco"
description = """The NCO toolkit manipulates and analyzes data stored in netCDF-accessible formats,
description = """The NCO toolkit manipulates and analyzes data stored in netCDF-accessible formats,
including DAP, HDF4, and HDF5."""

toolchain = {'name': 'foss', 'version': '2024a'}
Expand All @@ -21,7 +21,7 @@ builddependencies = [
dependencies = [
('UDUNITS', '2.2.28'),
('expat', '2.6.2'),
('ANTLR', '2.7.7', '-Java-21.0.2'),
('ANTLR', '2.7.7', '-Java-17'),
('libdap', '3.21.0-131'),
('GSL', '2.8'),
('netCDF', '4.9.2'),
Expand Down

0 comments on commit 70b9249

Please sign in to comment.