cp2k is now a MakefilePackage (#10570)

* cp2k: archive the Makefile after a successful installation

* cp2k: all checksums are now sha256

* libint: all checksums are now sha256 + added versions 2.4.X

* libxc: all checksums are now sha256 + added version 4.3.2

* cp2k: os.path.join instead of join_path + simplified openmp flags

* cp2k: turned into a MakefilePackage

* cp2k: refactored edit method so that Makefile writing happens last
This commit is contained in:
Massimiliano Culpo
2019-02-14 07:11:20 +01:00
committed by GitHub
parent 051c66335f
commit b3dd95bd62
4 changed files with 261 additions and 243 deletions

View File

@@ -4,8 +4,7 @@
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import collections
from spack import *
import os.path
class Plumed(AutotoolsPackage):
@@ -80,7 +79,7 @@ def apply_patch(self, other):
# Get available patches
plumed_patch = Executable(
join_path(self.spec.prefix.bin, 'plumed-patch')
os.path.join(self.spec.prefix.bin, 'plumed-patch')
)
out = plumed_patch('-q', '-l', output=str)
@@ -103,6 +102,12 @@ def setup_dependent_package(self, module, dependent_spec):
# Make plumed visible from dependent packages
module.plumed = dependent_spec['plumed'].command
@property
def plumed_inc(self):
return os.path.join(
self.prefix.lib, 'plumed', 'src', 'lib', 'Plumed.inc'
)
@run_before('autoreconf')
def filter_gslcblas(self):
# This part is needed to avoid linking with gsl cblas