forked from easybuilders/easybuild-easyconfigs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding easyconfigs: tbl2asn-20230713-GCCcore-13.3.0.eb
- Loading branch information
vsc46128
committed
Nov 7, 2024
1 parent
4f2a53b
commit 340a88a
Showing
1 changed file
with
64 additions
and
0 deletions.
There are no files selected for viewing
64 changes: 64 additions & 0 deletions
64
easybuild/easyconfigs/t/tbl2asn/tbl2asn-20230713-GCCcore-13.3.0.eb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# This file is an EasyBuild reciPY as per https://easybuilders.github.io/easybuild/ | ||
# Author: Pablo Escobar Lopez | ||
# sciCORE - University of Basel | ||
# SIB Swiss Institute of Bioinformatics | ||
# revised by Ariel Lozano | ||
|
||
easyblock = 'Bundle' | ||
|
||
name = 'tbl2asn' | ||
version = '20230713' | ||
|
||
homepage = 'https://www.ncbi.nlm.nih.gov/genbank/tbl2asn2/' | ||
description = """Tbl2asn is a command-line program that automates the creation of | ||
sequence records for submission to GenBank""" | ||
|
||
toolchain = {'name': 'GCCcore', 'version': '13.3.0'} | ||
builddependencies = [ | ||
('binutils', '2.42'), | ||
('patchelf', '0.18.0'), | ||
] | ||
|
||
# libraries that are copied to installdir need to be patched to have an RPATH section | ||
# when EasyBuild is configured to use RPATH linking (required to pass RPATH sanity check); | ||
|
||
default_easyblock = 'CmdCp' | ||
|
||
# It is not entirely clean how long NCBI keeps "older" versions. At April 29, 2022, we had six timestamps/versions, | ||
# reporiting the same verion (tbl2asn --help -> 25.8) but 5 out of 6 (gunzipped) executables have different sha256 | ||
# checksums. | ||
|
||
components = [ | ||
('libidn', '1.41', { | ||
'easyblock': 'ConfigureMake', | ||
'source_urls': [GNU_SOURCE], | ||
'sources': [SOURCELOWER_TAR_GZ], | ||
'start_dir': '%(namelower)s-%(version)s', | ||
'checksums': ['884d706364b81abdd17bee9686d8ff2ae7431c5a14651047c68adf8b31fd8945'], | ||
}), | ||
(name, version, { | ||
'source_urls': ['https://ftp.ncbi.nih.gov/toolbox/ncbi_tools/converters/versions/%s/all/' % | ||
(version[:4] + '-' + version[4:6] + '-' + version[6:])], | ||
'sources': [{'download_filename': 'tbl2asn.linux64.gz', | ||
'filename': '%(name)s-%(version)s%(versionsuffix)s.gz'}], | ||
'checksums': ['544c4a2a53f2121fd21c44778fc61980a701ce852ea0142979241c0465c38a0c'], | ||
'cmds_map': [('.*', "cp %(name)s-%(version)s%(versionsuffix)s tbl2asn")], | ||
'files_to_copy': [(['tbl2asn'], 'bin')], | ||
}), | ||
] | ||
|
||
postinstallcmds = [ | ||
"if %(rpath_enabled)s; then " | ||
" patchelf --force-rpath --set-rpath %(installdir)s/lib %(installdir)s/bin/tbl2asn;" | ||
"fi", | ||
"chmod +x %(installdir)s/bin/tbl2asn", | ||
] | ||
|
||
sanity_check_paths = { | ||
'files': ['bin/tbl2asn', 'bin/idn', 'lib/libidn.%s' % SHLIB_EXT], | ||
'dirs': ['include'], | ||
} | ||
|
||
sanity_check_commands = ['tbl2asn --help'] | ||
|
||
moduleclass = 'bio' |