From b0913c5fb33610d726b12c69a3c46e064f609ab2 Mon Sep 17 00:00:00 2001 From: sassy Date: Wed, 22 Nov 2023 11:23:40 +0000 Subject: [PATCH 1/2] adding easyconfigs: json-fortran-8.3.0-intel-compilers-2022.0.1.eb, json-fortran-8.3.0-intel-compilers-2022.2.1.eb --- ...-fortran-8.3.0-intel-compilers-2022.0.1.eb | 33 +++++++++++++++++++ ...-fortran-8.3.0-intel-compilers-2022.2.1.eb | 31 +++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 easybuild/easyconfigs/j/json-fortran/json-fortran-8.3.0-intel-compilers-2022.0.1.eb create mode 100644 easybuild/easyconfigs/j/json-fortran/json-fortran-8.3.0-intel-compilers-2022.2.1.eb diff --git a/easybuild/easyconfigs/j/json-fortran/json-fortran-8.3.0-intel-compilers-2022.0.1.eb b/easybuild/easyconfigs/j/json-fortran/json-fortran-8.3.0-intel-compilers-2022.0.1.eb new file mode 100644 index 00000000000..5ba8f93d83f --- /dev/null +++ b/easybuild/easyconfigs/j/json-fortran/json-fortran-8.3.0-intel-compilers-2022.0.1.eb @@ -0,0 +1,33 @@ +# J. Sassmannshausen (Imperial College London/UK) + +easyblock = 'CMakeMake' + +name = 'json-fortran' +version = '8.3.0' + +homepage = 'https://github.com/jacobwilliams/json-fortran' +description = "JSON-Fortran: A Modern Fortran JSON API" + +toolchain = {'name': 'intel-compilers', 'version': '2022.0.1'} + +source_urls = ['https://github.com/jacobwilliams/json-fortran/archive/'] +sources = ['%(version)s.tar.gz'] +checksums = ['5fe9ad709a726416cec986886503e0526419742e288c4e43f63c1c22026d1e8a'] + +builddependencies = [ + ('binutils', '2.37'), + ('CMake', '3.21.1'), +] + +configopts = [ + '-DUSE_GNU_INSTALL_CONVENTION=TRUE', +] + +runtest = 'check' + +sanity_check_paths = { + 'files': ['lib/libjsonfortran.a', 'lib/libjsonfortran.%s' % SHLIB_EXT], + 'dirs': ['include'], +} + +moduleclass = 'lib' diff --git a/easybuild/easyconfigs/j/json-fortran/json-fortran-8.3.0-intel-compilers-2022.2.1.eb b/easybuild/easyconfigs/j/json-fortran/json-fortran-8.3.0-intel-compilers-2022.2.1.eb new file mode 100644 index 00000000000..eea020243c1 --- /dev/null +++ b/easybuild/easyconfigs/j/json-fortran/json-fortran-8.3.0-intel-compilers-2022.2.1.eb @@ -0,0 +1,31 @@ +# J. Sassmannshausen (Imperial College London/UK) + +easyblock = 'CMakeMake' + +name = 'json-fortran' +version = '8.3.0' + +homepage = 'https://github.com/jacobwilliams/json-fortran' +description = "JSON-Fortran: A Modern Fortran JSON API" + +toolchain = {'name': 'intel-compilers', 'version': '2022.2.1'} + +source_urls = ['https://github.com/jacobwilliams/json-fortran/archive/'] +sources = ['%(version)s.tar.gz'] +checksums = ['5fe9ad709a726416cec986886503e0526419742e288c4e43f63c1c22026d1e8a'] + +builddependencies = [ + ('binutils', '2.39'), + ('CMake', '3.24.3'), +] + +configopts = '-DUSE_GNU_INSTALL_CONVENTION=TRUE' + +runtest = 'check' + +sanity_check_paths = { + 'files': ['lib/libjsonfortran.a', 'lib/libjsonfortran.%s' % SHLIB_EXT], + 'dirs': ['include'], +} + +moduleclass = 'lib' From a6da1b014e316e124ff4c5d20fa1a178dbc2d3cc Mon Sep 17 00:00:00 2001 From: ocaisa Date: Wed, 22 Nov 2023 16:05:41 +0100 Subject: [PATCH 2/2] Include fortran modules in sanity check --- .../json-fortran-8.3.0-intel-compilers-2022.0.1.eb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/easybuild/easyconfigs/j/json-fortran/json-fortran-8.3.0-intel-compilers-2022.0.1.eb b/easybuild/easyconfigs/j/json-fortran/json-fortran-8.3.0-intel-compilers-2022.0.1.eb index 5ba8f93d83f..877f807c977 100644 --- a/easybuild/easyconfigs/j/json-fortran/json-fortran-8.3.0-intel-compilers-2022.0.1.eb +++ b/easybuild/easyconfigs/j/json-fortran/json-fortran-8.3.0-intel-compilers-2022.0.1.eb @@ -26,7 +26,8 @@ configopts = [ runtest = 'check' sanity_check_paths = { - 'files': ['lib/libjsonfortran.a', 'lib/libjsonfortran.%s' % SHLIB_EXT], + 'files': ['lib/libjsonfortran.a', 'lib/libjsonfortran.%s' % SHLIB_EXT, + 'include/json_module.mod', 'include/json_parameters.mod'], 'dirs': ['include'], }