quantum-espresso: add gipaw variant (#30628)

Co-authored-by: Marcos Mazzini - <mmazzini@serafin.ccad.unc.edu.ar>
This commit is contained in:
marcosmazz 2022-05-11 22:31:19 -03:00 committed by GitHub
parent d57d343b6d
commit 363536fd92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 @@ def install(self, spec, prefix):
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')