lcio, sio: add sio dependency, update versions and expose zlib version for sio (#20839)
This commit is contained in:
parent
82b10583f9
commit
a92bb5400e
2 changed files with 24 additions and 0 deletions
|
@ -19,6 +19,8 @@ class Lcio(CMakePackage):
|
||||||
maintainers = ['gaede', 'vvolkl']
|
maintainers = ['gaede', 'vvolkl']
|
||||||
|
|
||||||
version('master', branch='master')
|
version('master', branch='master')
|
||||||
|
version('2.16', sha256='aff7707750d821f31cbae3d7529fd8e22457f48d759e834ec01aa9389b5dbf1a')
|
||||||
|
version('2.15.4', sha256='720c8130762d445df44d2c245da01c0a1ca807d7ed62362cebf7b3a99f9a37d7')
|
||||||
version('2.15.3', sha256='a00f9e1e8fc98151e88e603bbfca8088ded21ae3daca5c91869628a19af0cefb')
|
version('2.15.3', sha256='a00f9e1e8fc98151e88e603bbfca8088ded21ae3daca5c91869628a19af0cefb')
|
||||||
version('2.15.2', sha256='9886c6f5c275c1c51bde978e4f5514bb4ea9588239f1d3ee95a76ef4b686e69d')
|
version('2.15.2', sha256='9886c6f5c275c1c51bde978e4f5514bb4ea9588239f1d3ee95a76ef4b686e69d')
|
||||||
version('2.15.1', sha256='32921feb162408357d00a81cdd489c374b3ed8ab6f442d798b22835de7243d32')
|
version('2.15.1', sha256='32921feb162408357d00a81cdd489c374b3ed8ab6f442d798b22835de7243d32')
|
||||||
|
@ -42,6 +44,9 @@ class Lcio(CMakePackage):
|
||||||
variant("examples", default=False,
|
variant("examples", default=False,
|
||||||
description="Turn on to build LCIO examples")
|
description="Turn on to build LCIO examples")
|
||||||
|
|
||||||
|
depends_on('sio@0.0.2:', when='@2.14:')
|
||||||
|
depends_on('sio@0.0.4:', when='@2.16:')
|
||||||
|
|
||||||
depends_on('root@6.04:', when="+rootdict")
|
depends_on('root@6.04:', when="+rootdict")
|
||||||
depends_on('openjdk', when="+jar")
|
depends_on('openjdk', when="+jar")
|
||||||
# build error with +termlib, to be investigated
|
# build error with +termlib, to be investigated
|
||||||
|
|
|
@ -19,9 +19,28 @@ class Sio(CMakePackage):
|
||||||
maintainers = ['vvolkl', 'tmadlener']
|
maintainers = ['vvolkl', 'tmadlener']
|
||||||
|
|
||||||
version('master', branch='master')
|
version('master', branch='master')
|
||||||
|
version('0.0.4', sha256='72e96e6a1cc8dd3641d3e2bb9876e75bf6af8074e1617220da9e52df522ef5c0')
|
||||||
version('0.0.3', sha256='4c8b9c08480fb53cd10abb0e1260071a8c3f68d06a8acfd373f6560a916155cc')
|
version('0.0.3', sha256='4c8b9c08480fb53cd10abb0e1260071a8c3f68d06a8acfd373f6560a916155cc')
|
||||||
version('0.0.2', sha256='e4cd2aeaeaa23c1da2c20c5c08a9b72a31b16b7a8f5aa6d480dcd561ef667657')
|
version('0.0.2', sha256='e4cd2aeaeaa23c1da2c20c5c08a9b72a31b16b7a8f5aa6d480dcd561ef667657')
|
||||||
|
|
||||||
|
variant('builtin_zlib', default=True,
|
||||||
|
description='Use and statically link against a builtin version of zlib')
|
||||||
|
variant('cxxstd', default='17',
|
||||||
|
values=('11', '14', '17', '20'),
|
||||||
|
multi=False,
|
||||||
|
description='Use the specified C++ standard when building.')
|
||||||
|
|
||||||
|
depends_on('zlib', when='~builtin_zlib')
|
||||||
|
|
||||||
|
def cmake_args(self):
|
||||||
|
return [
|
||||||
|
self.define('CMAKE_CXX_STANDARD', self.spec.variants['cxxstd'].value),
|
||||||
|
# Examples are built this way, but if the examples are built they
|
||||||
|
# are also used for tests
|
||||||
|
self.define('SIO_EXAMPLES', self.run_tests),
|
||||||
|
self.define_from_variant('SIO_BUILTIN_ZLIB', 'builtin_zlib')
|
||||||
|
]
|
||||||
|
|
||||||
def url_for_version(self, version):
|
def url_for_version(self, version):
|
||||||
"""Translate version numbers to ilcsoft conventions.
|
"""Translate version numbers to ilcsoft conventions.
|
||||||
in spack, the convention is: 0.1 (or 0.1.0) 0.1.1, 0.2, 0.2.1 ...
|
in spack, the convention is: 0.1 (or 0.1.0) 0.1.1, 0.2, 0.2.1 ...
|
||||||
|
|
Loading…
Reference in a new issue