Skip to content

Commit

Permalink
adding easyconfigs: ITK-5.4.0-foss-2023b.eb, CastXML-0.6.10-GCCcore-1…
Browse files Browse the repository at this point in the history
…3.2.0.eb, SWIG-4.3.0-GCCcore-13.2.0.eb
  • Loading branch information
pavelToman committed Nov 28, 2024
1 parent 91c8df6 commit 40df7e0
Show file tree
Hide file tree
Showing 3 changed files with 151 additions and 0 deletions.
34 changes: 34 additions & 0 deletions easybuild/easyconfigs/c/CastXML/CastXML-0.6.10-GCCcore-13.2.0.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
easyblock = 'CMakeMake'

name = 'CastXML'
version = '0.6.10'

homepage = 'https://github.com/CastXML/CastXML'
description = """CastXML is a C-family abstract syntax tree XML output tool."""

toolchain = {'name': 'GCCcore', 'version': '13.2.0'}

github_account = 'CastXML'
source_urls = [GITHUB_SOURCE]
sources = ['v%(version)s.tar.gz']
checksums = ['d8498b39b4cf3d57671254056013de177f47fc7a2683f1a53049ab854d85ad55']

builddependencies = [
('binutils', '2.40'),
('CMake', '3.27.6'),
]

dependencies = [
('Clang', '17.0.6'),
('ncurses', '6.4'),
('zlib', '1.2.13'),
]

separate_build_dir = True

sanity_check_paths = {
'files': ['bin/castxml'],
'dirs': ['share/castxml'],
}

moduleclass = 'tools'
90 changes: 90 additions & 0 deletions easybuild/easyconfigs/i/ITK/ITK-5.4.0-foss-2023b.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
# Contributors:
# Fenglai Liu ([email protected]) - Vanderbilt University
# Alex Domingo ([email protected]) - Vrije Universiteit Brussel (VUB)
# Denis Kristak (INUITS), Pavel Tománek (INUITS)

easyblock = 'CMakeMake'

name = 'ITK'
version = '5.4.0'

homepage = 'https://itk.org'
description = """Insight Segmentation and Registration Toolkit (ITK) provides
an extensive suite of software tools for registering and segmenting
multidimensional imaging data."""

toolchain = {'name': 'foss', 'version': '2023b'}

github_account = 'InsightSoftwareConsortium'
source_urls = [GITHUB_SOURCE]
sources = ['v%(version)s.tar.gz']
patches = [
'ITK-5.3.0_add-vtk-include-dir.patch',
]
checksums = [
{'v5.4.0.tar.gz': 'd71a36fc0aee2c9257fe128f7657feb1e671461bd48561b620619f290c71795e'},
{'ITK-5.3.0_add-vtk-include-dir.patch': 'df7e834a024db5d1a1459d898bd43a044351e29759ab0bf69ce03d64da95b3f7'},
]

builddependencies = [
('CMake', '3.27.6'),
('Bison', '3.8.2'),
('Eigen', '3.4.0'),
('SWIG', '4.3.0'),
('Perl', '5.38.0'),
('git', '2.42.0'),
]
dependencies = [
('Python', '3.11.5'),
('SciPy-bundle', '2023.11'),
('double-conversion', '3.3.0'),
('expat', '2.5.0'),
('HDF5', '1.14.3'),
('libjpeg-turbo', '3.0.1'),
('libpng', '1.6.40'),
('LibTIFF', '4.6.0'),
('VTK', '9.3.0'),
('zlib', '1.2.13'),
('CastXML', '0.6.10'),
]

# Features
configopts = '-DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=OFF '
configopts += '-DModule_ITKReview=ON -DModule_ITKVtkGlue=ON -DModule_SimpleITKFilters=ON '
# Enable Python bindings
configopts += '-DITK_WRAP_PYTHON:BOOL=ON -DPython3_EXECUTABLE=$EBROOTPYTHON/bin/python '
configopts += '-DSWIG_EXECUTABLE=$EBROOTSWIG/bin/swig -DSWIG_DIR=$EBROOTSWIG '
configopts += '-DPY_SITE_PACKAGES_PATH=%(installdir)s/lib/python%(pyshortver)s/site-packages '
# Dependencies from EB
local_sys_deps = [
'CASTXML',
'DOUBLECONVERSION',
'EIGEN',
'EXPAT',
'FFTW',
'HDF5',
'JPEG',
'PNG',
'SWIG',
'TIFF',
'ZLIB'
]
local_sys_cmake = ['-DITK_USE_SYSTEM_%s=ON' % d for d in local_sys_deps]
configopts += ' '.join(local_sys_cmake)

prebuildopts = 'LC_ALL=C '

local_lib_names = ['ITKCommon', 'ITKIOHDF5', 'ITKIOJPEG', 'ITKIOPNG', 'ITKIOTIFF',
'ITKReview', 'ITKVTK', 'ITKVtkGlue', 'itkSimpleITKFilters']

sanity_check_paths = {
'files': ['bin/itkTestDriver'] +
['lib/lib%s-%%(version_major)s.%%(version_minor)s.%s' % (lname, SHLIB_EXT) for lname in local_lib_names],
'dirs': ['include/ITK-%(version_major)s.%(version_minor)s', 'lib/python%(pyshortver)s/site-packages', 'share'],
}

sanity_check_commands = ["python -c 'import itk'"]

modextrapaths = {'PYTHONPATH': 'lib/python%(pyshortver)s/site-packages'}

moduleclass = 'data'
27 changes: 27 additions & 0 deletions easybuild/easyconfigs/s/SWIG/SWIG-4.3.0-GCCcore-13.2.0.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name = 'SWIG'
version = '4.3.0'

homepage = 'http://www.swig.org/'
description = """SWIG is a software development tool that connects programs written in C and C++ with
a variety of high-level programming languages."""

toolchain = {'name': 'GCCcore', 'version': '13.2.0'}
toolchainopts = {'pic': True}

source_urls = [SOURCEFORGE_SOURCE]
sources = [SOURCELOWER_TAR_GZ]
checksums = ['f7203ef796f61af986c70c05816236cbd0d31b7aa9631e5ab53020ab7804aa9e']

builddependencies = [
('binutils', '2.40'),
('Bison', '3.8.2'),
]

dependencies = [
('zlib', '1.2.13'),
('PCRE2', '10.42'),
]

configopts = '--without-alllang --with-boost=no'

moduleclass = 'devel'

0 comments on commit 40df7e0

Please sign in to comment.