diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2018-11-13 11:05:17 -0600 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2018-11-13 11:05:17 -0600 |
commit | 42962f2409fe7b46543dc5974c45bb6392fcea99 (patch) | |
tree | 2063188dd6902f9b6ea7e8a2601f6131ac88046d /var/spack/repos/builtin/packages/modern-wheel/package.py | |
parent | 041aa143db6964575625f1849de639541efb83a5 (diff) | |
parent | 8554e933d2a236df20d07a6e0416ab444790bd3d (diff) | |
download | spack-42962f2409fe7b46543dc5974c45bb6392fcea99.tar.gz spack-42962f2409fe7b46543dc5974c45bb6392fcea99.tar.bz2 spack-42962f2409fe7b46543dc5974c45bb6392fcea99.tar.xz spack-42962f2409fe7b46543dc5974c45bb6392fcea99.zip |
Merge branch 'releases/v0.12'v0.12.0
Diffstat (limited to 'var/spack/repos/builtin/packages/modern-wheel/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/modern-wheel/package.py | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/modern-wheel/package.py b/var/spack/repos/builtin/packages/modern-wheel/package.py new file mode 100644 index 0000000000..4e3b9b8322 --- /dev/null +++ b/var/spack/repos/builtin/packages/modern-wheel/package.py @@ -0,0 +1,45 @@ +# Copyright 2013-2018 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 * +import sys + + +class ModernWheel(CMakePackage): + """C++ utility collection. Provides various facilities of common use in + modern codebases like dynamic linking helpers, loadable plugins facilities + and misc patterns.""" + + homepage = "https://github.com/alalazo/modern_wheel" + url = "https://github.com/alalazo/modern_wheel/archive/1.2.tar.gz" + + version('1.2', 'dc440099c52b6af3b8ddff6fd7730aff') + version('1.1', '289455239ad19497b7db55aacb299ca8') + version('1.0', '503dc3e7da2b422c4295e4afcba09dfb') + + variant('shared', default=True, + description='Enables the build of shared libraries') + # Test implementation files cause some issues on darwin, + # needs to be investigated. + variant('test', default=sys.platform != 'darwin', + description='Enables the build of unit tests') + + # FindBoost shipped with CMake up to version 3.10.2 (latest one + # up to now) is known to be unable to detect Boost >= 1.66.0. + # This issue will be probably fixed in CMake >= 3.11.0: + # https://gitlab.kitware.com/cmake/cmake/issues/17575 + # Until then, just assume that we cannot correctly configure + # ModernWheel with Boost >= 1.66.0. + depends_on('boost +system +filesystem', when='@:1.1.999') + depends_on('boost@:1.65.999 +system +filesystem', when='@1.2:') + + def cmake_args(self): + spec = self.spec + return [ + '-DBUILD_UNIT_TEST:BOOL={0}'.format( + 'ON' if '+test' in spec else 'OFF'), + '-DBUILD_SHARED_LIBS:BOOL={0}'.format( + 'ON' if '+shared' in spec else 'OFF'), + ] |