Skip to content

[UDUNITS] [package list]

UDUNITS/2.2.28-cpeGNU-22.12 (UDUNITS-2.2.28-cpeGNU-22.12.eb)

To access module help and find out for which stacks and partitions the module is installed, use module spider UDUNITS/2.2.28-cpeGNU-22.12.

EasyConfig:

##
# This file is an EasyBuild reciPY as per https://github.com/easybuilders/easybuild
#
# Copyright:: Copyright 2012-2013 University of Luxembourg, Ghent University
# Authors::   Fotis Georgatos <fotis@cern.ch>, Kenneth Hoste (Ghent University)
# License::   MIT/GPL
# $Id$
#
# This work implements a part of the HPCBIOS project and is a component of the policy:
# http://hpcbios.readthedocs.org/en/latest/HPCBIOS_2012-97.html
##

easyblock = 'ConfigureMake'

local_expat_version =        '2.4.9'         # https://github.com/libexpat/libexpat/releases
local_UDUNITS_version =      '2.2.28'        # https://artifacts.unidata.ucar.edu/service/rest/repository/browse/downloads-udunits/

name =    'UDUNITS'
version = local_UDUNITS_version

homepage = 'http://www.unidata.ucar.edu/software/udunits/'

whatis = [
    "Description: UDUNITS is a toolset to work with various unit systems",
    "This module provides both static and shared libraries, and a command line utility",
]

description = """
UDUNITS supports conversioOThe UDUNITS package supports units of physical
quantities. Its C library provides for arithmetic manipulation of units and
for conversion of numeric values between compatible units. The package contains
an extensive unit database, which is in XML format and user-extendable. The
package also contains a command-line utility for investigating units and
converting values.

This module provides both static and shared libraries, and a command line
utility.
"""

docurls = [
    "The package supports the info command (info udunits2, info udunits2prog, info udunits2lib)"
]

toolchain = {'name': 'cpeGNU', 'version': '22.12'}
toolchainopts = {'pic': True}

sources =     [SOURCELOWER_TAR_GZ]
source_urls = [
    'https://artifacts.unidata.ucar.edu/repository/downloads-udunits/',
    'https://sources.easybuild.io/u/UDUNITS/',
]
checksums =   ['590baec83161a3fd62c00efa66f6113cec8a7c461e3f61a5182167e0cc5d579e']

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

dependencies = [
    ('expat', local_expat_version),
]

parallel = 1

sanity_check_paths = {
    'files': ['bin/udunits2', 'include/converter.h', 'include/udunits2.h', 'include/udunits.h',
              'lib/libudunits2.a', 'lib/libudunits2.%s' % SHLIB_EXT],
    'dirs':  ['share'],
}

sanity_check_commands = [
    'udunits2 -h',
    'udunits2 -H "80 km/h" -W m/s',
]

# In case we'd experience problems that the data files are not found, this might help.
#modextravars = {
#    'UDUNITS2_XML_PATH': '%(installdir)s/share/udunits/udunits2.xml',
#}

modextrapaths = {
    'INFOPATH' : 'share/info',
}

moduleclass = 'phys'

[UDUNITS] [package list]