Skip to content

[double-conversion] [package list]

double-conversion/3.1.5-cpeGNU-21.08 (double-conversion-3.1.5-cpeGNU-21.08.eb)

This software is archived in the LUMI-SoftwareStack GitHub repository as easybuild/easyconfigs/__archive__/d/double-conversion/double-conversion-3.1.5-cpeGNU-21.08.eb. The corresponding module would be double-conversion/3.1.5-cpeGNU-21.08.

easyblock = 'CMakeMake'

local_double_conv_version =      '3.1.5'         # https://github.com/google/double-conversion/releases

name =    'double-conversion'
version = local_double_conv_version

homepage = 'https://github.com/google/double-conversion'

whatis = [
    'Description: double-conversion is a library of efficient binary-decimal and decimal-binary conversion routines for IEEE doubles.'
]

description = """
The double-conversion project provides binary-decimal and decimal-binary
routines for IEEE doubles.

The library consists of efficient conversion routines that have been
extracted from the V8 JavaScript engine. The code has been refactored and
improved so that it can be used more easily in other projects.
"""

toolchain = {'name': 'cpeGNU', 'version': '21.08'}

sources = [{
    'download_filename': 'v%(version)s.tar.gz',
    'filename':          SOURCE_TAR_GZ,
    'source_urls':       ['https://github.com/google/%(name)s/archive']
}]
checksums =   ['a63ecb93182134ba4293fd5f22d6e08ca417caafa244afaa751cbfddf6415b13']

builddependencies = [ # Create a reproducible build environment.
    ('buildtools', '%(toolchain_version)s', '', True), # For CMake
]

# In the Bundle, as of EasyBuild 4.2, it is better to set this to False,
# though it does give a cleaner build procedure when this is set to True...
separate_build_dir = False

build_type = 'Release'

# Build static lib, static lib with -fPIC and shared lib
configopts = [
    '',
    '-DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_STATIC_LIBRARY_SUFFIX_CXX=_pic.a',
    '-DBUILD_SHARED_LIBS=ON'
]

sanity_check_paths = {
    'files': ['include/double-conversion/%s.h' % h for h in ['bignum', 'cached-powers', 'diy-fp', 'double-conversion',
                                                             'fast-dtoa', 'fixed-dtoa', 'ieee', 'strtod', 'utils']] +
             ['lib/libdouble-conversion.%s' % e for e in ['a', SHLIB_EXT]] + ['lib/libdouble-conversion_pic.a'],
    'dirs':  [],
}

moduleclass = 'lib'

[double-conversion] [package list]