Skip to content

Commit

Permalink
adding easyconfigs: FLINT-3.1.1-gfbf-2023b.eb, NTL-11.5.1-GCC-13.2.0.eb
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrKralCZ committed Mar 18, 2024
1 parent 7d4834a commit 1d22a25
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 0 deletions.
45 changes: 45 additions & 0 deletions easybuild/easyconfigs/f/FLINT/FLINT-3.1.1-gfbf-2023b.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
easyblock = 'CMakeMake'

name = 'FLINT'
version = '3.1.1'

homepage = 'https://www.flintlib.org/'

description = """FLINT (Fast Library for Number Theory) is a C library in support of computations
in number theory. Operations that can be performed include conversions, arithmetic, computing GCDs,
factoring, solving linear systems, and evaluating special functions. In addition, FLINT provides
various low-level routines for fast arithmetic. FLINT is extensively documented and tested."""

toolchain = {'name': 'gfbf', 'version': '2023b'}
toolchainopts = {'pic': True}

source_urls = ['https://github.com/flintlib/%(namelower)s/releases/download/v%(version)s/']
sources = [SOURCELOWER_TAR_GZ]
checksums = ['161f81d0a809408daab36ec79ba89380346dc3195d3671f97106f1b8774f653a']

builddependencies = [
('CMake', '3.27.6'),
('Python', '3.11.5'),
]

dependencies = [
('GMP', '6.3.0'),
('MPFR', '4.2.1'),
('NTL', '11.5.1'),
]

# Make flexiblas the first to be found and used to avoid linking openblas.
preconfigopts = 'sed -i "s/PATH_SUFFIXES openblas/PATH_SUFFIXES flexiblas openblas/g;'
preconfigopts += 's/accelerate openblas/accelerate flexiblas openblas/g" '
preconfigopts += '%(builddir)s/%(namelower)s-%(version)s/CMake/FindCBLAS.cmake && '

configopts = '-DWITH_NTL=on -DBUILD_TESTING=yes'

runtest = 'test'

sanity_check_paths = {
'files': ['lib/lib%%(namelower)s.%s' % SHLIB_EXT],
'dirs': ['include'],
}

moduleclass = 'math'
45 changes: 45 additions & 0 deletions easybuild/easyconfigs/n/NTL/NTL-11.5.1-GCC-13.2.0.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# contributed by Guilherme Peretti-Pezzi (CSCS)
# updated by Alex Domingo (Vrije Universiteit Brussel)
# updated by Åke Sandgren(Umeå University)
# Update: Petr Král (INUITS)
easyblock = 'ConfigureMake'

name = 'NTL'
version = '11.5.1'

homepage = 'https://shoup.net/ntl/'

description = """NTL is a high-performance, portable C++ library providing data structures and
algorithms for manipulating signed, arbitrary length integers, and for vectors,
matrices, and polynomials over the integers and over finite fields."""

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

github_account = 'libntl'
source_urls = [GITHUB_LOWER_SOURCE]
sources = ['v%(version)s.tar.gz']
checksums = ['ef578fa8b6c0c64edd1183c4c303b534468b58dd3eb8df8c9a5633f984888de5']

builddependencies = [
('Perl', '5.38.0'),
]

dependencies = [
('GMP', '6.3.0'),
]

start_dir = 'src'

prefix_opt = 'PREFIX='
configopts = 'CXX="$CXX" CXXFLAGS="$CXXFLAGS" GMP_PREFIX="$EBROOTGMP" SHARED=on'

runtest = 'check'

sanity_check_paths = {
'files': ['lib/libntl.%s' % e for e in ['a', SHLIB_EXT]],
'dirs': ['include/NTL', 'share/doc'],
}

moduleclass = 'math'

0 comments on commit 1d22a25

Please sign in to comment.