diff options
author | Seth R. Johnson <johnsonsr@ornl.gov> | 2022-04-06 00:47:06 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-06 06:47:06 +0200 |
commit | e520d77760b3bce3423b7a4e60f76561443f8132 (patch) | |
tree | e07afd2b61354b9c2b36dc6d2d08c008e97596dc /var | |
parent | 90c4b432742a3acd40922bc5b68840daf7baadf8 (diff) | |
download | spack-e520d77760b3bce3423b7a4e60f76561443f8132.tar.gz spack-e520d77760b3bce3423b7a4e60f76561443f8132.tar.bz2 spack-e520d77760b3bce3423b7a4e60f76561443f8132.tar.xz spack-e520d77760b3bce3423b7a4e60f76561443f8132.zip |
libproxy: add perl/python variants (#29875)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/libproxy/package.py | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/libproxy/package.py b/var/spack/repos/builtin/packages/libproxy/package.py index fe2a8d6404..e7edbf3ab5 100644 --- a/var/spack/repos/builtin/packages/libproxy/package.py +++ b/var/spack/repos/builtin/packages/libproxy/package.py @@ -19,6 +19,20 @@ class Libproxy(CMakePackage): version('0.4.14', sha256='6220a6cab837a8996116a0568324cadfd09a07ec16b930d2a330e16d5c2e1eb6') version('0.4.13', sha256='d610bc0ef81a18ba418d759c5f4f87bf7102229a9153fb397d7d490987330ffd') + variant('perl', default=False, description='Enable Perl bindings') + variant('python', default=True, description='Enable Python bindings') + depends_on('zlib') - depends_on('python', type=('build', 'run'), when='@0.4.16:') - depends_on('python@:3.6', type=('build', 'run'), when='@:0.4.15') + depends_on('perl', type=('build', 'run'), when='+perl') + depends_on('python', type=('build', 'run'), when='+python') + depends_on('python@:3.6', type=('build', 'run'), when='@:0.4.15 +python') + + def cmake_args(self): + from_variant = self.define_from_variant + return [ + from_variant('WITH_PERL', 'perl'), + from_variant('WITH_PYTHON3', 'python'), + CMakePackage.define('WITH_DOTNET', False), + CMakePackage.define('WITH_PYTHON2', False), + CMakePackage.define('WITH_VALA', False), + ] |