39 lines
1.5 KiB
Python
39 lines
1.5 KiB
Python
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
|
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
#
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
from spack import *
|
|
|
|
|
|
class Davix(CMakePackage):
|
|
"""High-performance file management over WebDAV/HTTP."""
|
|
|
|
homepage = "https://dmc.web.cern.ch/projects/davix"
|
|
url = "http://grid-deployment.web.cern.ch/grid-deployment/dms/lcgutil/tar/davix/0.6.8/davix-0.6.8.tar.gz"
|
|
list_url = "http://grid-deployment.web.cern.ch/grid-deployment/dms/lcgutil/tar/davix/"
|
|
list_depth = 1
|
|
|
|
version('0.7.5', sha256='d920ca976846875d83af4dc50c99280bb3741fcf8351d5733453e70fa5fe6fc8')
|
|
version('0.7.3', sha256='cd46276e72c6a0da1e2ad30eb66ec509a4c023687767c62a66713fa8c23d328a')
|
|
version('0.6.9', sha256='fbd97eb5fdf82ca48770d06bf8e2805b35f23255478aa381a9d25a49eb98e348')
|
|
version('0.6.8', sha256='e1820f4cc3fc44858ae97197a3922cce2a1130ff553b080ba19e06eb8383ddf7')
|
|
|
|
variant('cxxstd',
|
|
default='11',
|
|
values=('11', '14', '17'),
|
|
multi=False,
|
|
description='Use the specified C++ standard when building.')
|
|
|
|
depends_on('pkgconfig', type='build')
|
|
depends_on('libxml2')
|
|
depends_on('libuuid')
|
|
depends_on('openssl')
|
|
|
|
def cmake_args(self):
|
|
cmake_args = ['-DCMAKE_CXX_STANDARD={0}'.format(
|
|
self.spec.variants['cxxstd'].value)]
|
|
if 'darwin' in self.spec.architecture:
|
|
cmake_args.append('-DCMAKE_MACOSX_RPATH=ON')
|
|
return cmake_args
|