From 205035c0efe4095ee9f91a43d35aa354f8e9fd8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Kr=C3=A1l?= Date: Mon, 4 Nov 2024 12:08:57 +0100 Subject: [PATCH] progress on #449 mosdepth --- 449_mosdepth/Nim-2.2.0-GCCcore-11.2.0.eb | 17 ++++++++ 449_mosdepth/mosdepth-0.3.9-GCC-12.3.0.eb | 48 +++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 449_mosdepth/Nim-2.2.0-GCCcore-11.2.0.eb create mode 100644 449_mosdepth/mosdepth-0.3.9-GCC-12.3.0.eb diff --git a/449_mosdepth/Nim-2.2.0-GCCcore-11.2.0.eb b/449_mosdepth/Nim-2.2.0-GCCcore-11.2.0.eb new file mode 100644 index 00000000..2214b1c9 --- /dev/null +++ b/449_mosdepth/Nim-2.2.0-GCCcore-11.2.0.eb @@ -0,0 +1,17 @@ +name = 'Nim' +version = '2.2.0' + +homepage = 'https://nim-lang.org/' +description = "Nim is a systems and applications programming language." + +toolchain = {'name': 'GCCcore', 'version': '12.3.0'} + +source_urls = ['https://nim-lang.org/download/'] +sources = [SOURCELOWER_TAR_XZ] +checksums = ['ce9842849c9760e487ecdd1cdadf7c0f2844cafae605401c7c72ae257644893c'] + +builddependencies = [('binutils', '2.40')] + +dependencies = [('libreadline', '8.2')] + +moduleclass = 'lang' diff --git a/449_mosdepth/mosdepth-0.3.9-GCC-12.3.0.eb b/449_mosdepth/mosdepth-0.3.9-GCC-12.3.0.eb new file mode 100644 index 00000000..8fcad4de --- /dev/null +++ b/449_mosdepth/mosdepth-0.3.9-GCC-12.3.0.eb @@ -0,0 +1,48 @@ +easyblock = 'Binary' + +name = 'mosdepth' +version = '0.3.9' +local_hts_nim_ver = '0.3.25' + +homepage = 'https://github.com/brentp/mosdepth' +description = "Fast BAM/CRAM depth calculation for WGS, exome, or targeted sequencing" + +toolchain = {'name': 'GCC', 'version': '12.3.0'} + +sources = [ + { + 'source_urls': ['https://github.com/brentp/hts-nim/archive/'], + 'download_filename': 'v%s.tar.gz' % local_hts_nim_ver, + 'filename': 'hts-nim-%s.tar.gz' % local_hts_nim_ver, + }, + { + 'source_urls': ['https://github.com/brentp/mosdepth/archive/'], + 'download_filename': 'v%(version)s.tar.gz', + 'filename': SOURCE_TAR_GZ, + }, +] +checksums = [ + {'hts-nim-0.3.25.tar.gz': 'b13b9bb5aa567a69bf17547aadbbd39e37beb4f71a28f267b83dfea9ea4d05e8'}, + {'mosdepth-0.3.9.tar.gz': '9171ea9a6ddaccd0091db5b85fa9e6cb79516bbe005c47ffc8dcfe49c978eb69'}, +] + +dependencies = [ + ('Nim', '2.2.0'), + ('HTSlib', '1.18'), + ('PCRE', '8.45'), +] + +extract_sources = True + +install_cmd = "cd %(builddir)s/hts-nim-*/ && nimble install --nimbleDir:%(installdir)s --verbose -y && " +install_cmd += "cd ../mosdepth-*/ && " +install_cmd += "nimble install --nimbleDir:%(installdir)s --verbose -y" + +sanity_check_paths = { + 'files': ['bin/mosdepth'], + 'dirs': [], +} + +sanity_check_commands = ["mosdepth --help"] + +moduleclass = 'bio'