summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/adios/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/adios/package.py')
-rw-r--r--var/spack/repos/builtin/packages/adios/package.py60
1 files changed, 31 insertions, 29 deletions
diff --git a/var/spack/repos/builtin/packages/adios/package.py b/var/spack/repos/builtin/packages/adios/package.py
index 1b0b88d167..2b93379129 100644
--- a/var/spack/repos/builtin/packages/adios/package.py
+++ b/var/spack/repos/builtin/packages/adios/package.py
@@ -1,27 +1,8 @@
-##############################################################################
-# Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC.
-# Produced at the Lawrence Livermore National Laboratory.
+# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
-# This file is part of Spack.
-# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
-# LLNL-CODE-647188
-#
-# For details, see https://github.com/spack/spack
-# Please also see the NOTICE and LICENSE files for our notice and the LGPL.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License (as
-# published by the Free Software Foundation) version 2.1, February 1999.
-#
-# This program is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
-# conditions of the GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-##############################################################################
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
from spack import *
@@ -33,15 +14,19 @@ class Adios(AutotoolsPackage):
"""
homepage = "http://www.olcf.ornl.gov/center-projects/adios/"
- url = "https://github.com/ornladios/ADIOS/archive/v1.12.0.tar.gz"
+ url = "https://github.com/ornladios/ADIOS/archive/v1.12.0.tar.gz"
+ git = "https://github.com/ornladios/ADIOS.git"
+
+ maintainers = ['ax3l']
- version('develop', git='https://github.com/ornladios/ADIOS.git',
- branch='master')
+ version('develop', branch='master')
+ version('1.13.1', '958aed11240d7f5a065ab5ee271ecb44')
+ version('1.13.0', '68af36b821debbdf4748b20320a990ce')
version('1.12.0', '84a1c71b6698009224f6f748c5257fc9')
version('1.11.1', '5639bfc235e50bf17ba9dafb14ea4185')
version('1.11.0', '5eead5b2ccf962f5e6d5f254d29d5238')
version('1.10.0', 'eff450a4c0130479417cfd63186957f3')
- version('1.9.0', '310ff02388bbaa2b1c1710ee970b5678')
+ version('1.9.0', '310ff02388bbaa2b1c1710ee970b5678')
variant('shared', default=True,
description='Builds a shared version of the library')
@@ -65,6 +50,10 @@ class Adios(AutotoolsPackage):
description='Enable ZFP transform support')
variant('sz', default=True,
description='Enable SZ transform support')
+ variant('lz4', default=True,
+ description='Enable LZ4 transform support')
+ variant('blosc', default=True,
+ description='Enable Blosc transform support')
# transports and serial file converters
variant('hdf5', default=False,
description='Enable parallel HDF5 transport and serial bp2h5 ' +
@@ -90,8 +79,12 @@ class Adios(AutotoolsPackage):
depends_on('zlib', when='+zlib')
depends_on('bzip2', when='+bzip2')
depends_on('szip', when='+szip')
- depends_on('sz@:1.4.10', when='+sz')
+ depends_on('sz@:1.4.10', when='@:1.12.0 +sz')
+ depends_on('sz@1.4.11.0:1.4.11.99', when='@1.13.0 +sz')
+ depends_on('sz@1.4.12.3:1.4.12.99', when='@1.13.1: +sz')
depends_on('zfp@:0.5.0', when='+zfp')
+ depends_on('lz4', when='+lz4')
+ depends_on('c-blosc@1.12.0:', when='+blosc')
# optional transports & file converters
depends_on('hdf5@1.8:+hl+mpi', when='+hdf5')
depends_on('netcdf', when='+netcdf')
@@ -153,7 +146,16 @@ class Adios(AutotoolsPackage):
extra_args += self.with_or_without('infiniband')
# Transforms
- variants = ['zlib', 'bzip2', 'szip', 'zfp', 'sz']
+ variants = ['zlib', 'bzip2', 'szip']
+ if spec.satisfies('@1.11.0:'):
+ variants += ['zfp']
+ if spec.satisfies('@1.12.0:'):
+ variants += ['sz', 'lz4']
+ if spec.satisfies('@1.13.0:'):
+ extra_args += self.with_or_without(
+ 'blosc',
+ activation_value=lambda x: spec['c-blosc'].prefix
+ )
# External I/O libraries
variants += ['hdf5', 'netcdf']