From 9a50608a0d1f7478c2f001e11d38b30a71787509 Mon Sep 17 00:00:00 2001 From: Simon Branford Date: Fri, 6 Sep 2024 14:15:28 +0100 Subject: [PATCH 1/2] adding easyconfigs: rnamotif-20240904-GCCcore-12.3.0.eb --- .../rnamotif-20240904-GCCcore-12.3.0.eb | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 easybuild/easyconfigs/r/rnamotif/rnamotif-20240904-GCCcore-12.3.0.eb diff --git a/easybuild/easyconfigs/r/rnamotif/rnamotif-20240904-GCCcore-12.3.0.eb b/easybuild/easyconfigs/r/rnamotif/rnamotif-20240904-GCCcore-12.3.0.eb new file mode 100644 index 00000000000..bb1513a04b2 --- /dev/null +++ b/easybuild/easyconfigs/r/rnamotif/rnamotif-20240904-GCCcore-12.3.0.eb @@ -0,0 +1,42 @@ +# This easyconfig was created by the BEAR Software team at the University of Birmingham. +easyblock = 'MakeCp' + +name = 'rnamotif' +version = '20240904' +_commit = '697ee7fda4ff2f5181a33c0c3eac54d7b97409fa' + +homepage = "https://github.com/dacase/rnamotif" +description = """The rnamotif program searchs input sequences for portions that match a given descriptor or "motif". + Matching sequences can also be ranked by various scoring functions.""" + +toolchain = {'name': 'GCCcore', 'version': '12.3.0'} + +github_account = 'dacase' +source_urls = [GITHUB_SOURCE] +sources = ['%s.tar.gz' % _commit] +checksums = ['e9432e128ce7f1bfcf4898a36d56435272ad9b4e2d37f1866a95aa159c81fdfe'] + +builddependencies = [ + ('binutils', '2.40'), + ('Bison', '3.8.2'), + ('flex', '2.6.4'), + +] + +prebuildopts = 'sed -i "s/CFLAGS= -O2 -Wall/CFLAGS=$CFLAGS/" config.h &&' +pretestopts = 'EFNDATA=%%(builddir)s/%%(name)s-%s/efndata' % _commit +runtest = 'test' + +files_to_copy = [ + (['src/rnamotif', 'src/rmprune', 'src/rmfmt', 'src/rm2ct'], 'bin'), + 'LICENSE', 'efndata', 'Ecoli.trna.example', +] + +sanity_check_paths = { + 'files': ['bin/%(name)s'], + 'dirs': ['efndata'], +} + +modextravars = {'EFNDATA': 'efndata'} + +moduleclass = 'bio' From 84798df187db79668e55befb2b87cd1f9accb40e Mon Sep 17 00:00:00 2001 From: Sam Moors Date: Fri, 13 Sep 2024 22:09:15 +0200 Subject: [PATCH 2/2] add sanity_check_commands --- .../easyconfigs/r/rnamotif/rnamotif-20240904-GCCcore-12.3.0.eb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/easybuild/easyconfigs/r/rnamotif/rnamotif-20240904-GCCcore-12.3.0.eb b/easybuild/easyconfigs/r/rnamotif/rnamotif-20240904-GCCcore-12.3.0.eb index bb1513a04b2..742dabcaa85 100644 --- a/easybuild/easyconfigs/r/rnamotif/rnamotif-20240904-GCCcore-12.3.0.eb +++ b/easybuild/easyconfigs/r/rnamotif/rnamotif-20240904-GCCcore-12.3.0.eb @@ -37,6 +37,8 @@ sanity_check_paths = { 'dirs': ['efndata'], } +sanity_check_commands = ['rnamotif -h 2>&1 | grep usage'] + modextravars = {'EFNDATA': 'efndata'} moduleclass = 'bio'