From 363536fd929d2aee280e07780ff6c98498d7be46 Mon Sep 17 00:00:00 2001 From: marcosmazz Date: Wed, 11 May 2022 22:31:19 -0300 Subject: quantum-espresso: add gipaw variant (#30628) Co-authored-by: Marcos Mazzini - --- var/spack/repos/builtin/packages/quantum-espresso/package.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/quantum-espresso/package.py b/var/spack/repos/builtin/packages/quantum-espresso/package.py index 5e3c39549f..674cb45fa8 100644 --- a/var/spack/repos/builtin/packages/quantum-espresso/package.py +++ b/var/spack/repos/builtin/packages/quantum-espresso/package.py @@ -190,6 +190,12 @@ class QuantumEspresso(CMakePackage): 'See http://quantum-environ.org/about.html') conflicts('+environ', when='+cmake', msg='environ doesn\'t work with CMake') + variant('gipaw', default=False, + description='Builds Gauge-Including Projector Augmented-Waves executable') + with when('+gipaw'): + conflicts('+cmake', msg='gipaw doesn\'t work with CMake') + conflicts('@:6.3', msg='gipaw standard support available for QE 6.3 or grater version only') + # Dependencies not affected by variants depends_on('blas') depends_on('lapack') @@ -528,6 +534,9 @@ class QuantumEspresso(CMakePackage): else: make('all', parallel=parallel_build_on) + if '+gipaw' in spec: + make('gipaw', parallel=False) + if '+environ' in spec: addsonpatch = Executable('./install/addsonpatch.sh') environpatch = Executable('./Environ/patches/environpatch.sh') -- cgit v1.2.3-70-g09d2