-
Notifications
You must be signed in to change notification settings - Fork 703
/
IQ-TREE-2.2.2.6-gompi-2022b.eb
57 lines (47 loc) · 1.7 KB
/
IQ-TREE-2.2.2.6-gompi-2022b.eb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Updated to v2.1.3 by
# R.QIAO <[email protected]>
# DeepThought, Flinders University
easyblock = 'CMakeMake'
name = 'IQ-TREE'
version = '2.2.2.6'
# HTTPS is not working
homepage = 'http://www.iqtree.org/'
description = """Efficient phylogenomic software by maximum likelihood"""
toolchain = {'name': 'gompi', 'version': '2022b'}
# Including 'usempi' will take precedence and override IQTREE_FLAGS and produces only 'iqtree-mpi' binary
source_urls = ['https://github.com/iqtree/iqtree2/archive/']
sources = ['v%(version)s.tar.gz']
patches = [
'IQ-TREE-2.1.2_use_EB_LSD2.patch',
'IQ-TREE-2.2.1_fix-mpi.patch',
]
checksums = [
{'v2.2.2.6.tar.gz': 'f5d10c033f2ed1c81bb473f572c7a9fe72a275a48e2e93ad74e5f1c3d32fa8b9'},
{'IQ-TREE-2.1.2_use_EB_LSD2.patch': 'daa2ab12d44e26eb5607c4ed6acb9d970e230a83dabcf21461f37bc48263b816'},
{'IQ-TREE-2.2.1_fix-mpi.patch': '9ead6808efd11d4c01dd265cca6094cffd6377746d3b2fc84b43d2faeee0777c'},
]
builddependencies = [
('CMake', '3.24.3'),
('Eigen', '3.4.0'),
]
dependencies = [
('zlib', '1.2.12'),
('Boost', '1.81.0'),
('LSD2', '2.4.1'),
]
local_conf_opts = ' -DUSE_LSD2=ON '
configopts = [
'-DIQTREE_FLAGS=omp' + local_conf_opts,
'-DIQTREE_FLAGS=mpi -DCMAKE_C_COMPILER="$MPICC" -DCMAKE_CXX_COMPILER="$MPICXX"' + local_conf_opts,
]
sanity_check_paths = {
'files': ['bin/iqtree2', 'bin/iqtree2-mpi'],
'dirs': [],
}
sanity_check_commands = [
"iqtree2 --help",
"mkdir -p $TMPDIR/{test-omp,test-mpi}",
"cd $TMPDIR/test-omp && cp -a %(installdir)s/example.phy . && iqtree2 -s example.phy -redo",
"cd $TMPDIR/test-mpi && cp -a %(installdir)s/example.phy . && mpirun -np 1 iqtree2-mpi -s example.phy -redo",
]
moduleclass = 'bio'