diff options
author | Nikolay Simakov <nikolays@buffalo.edu> | 2020-08-28 15:29:53 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-28 14:29:53 -0500 |
commit | 9b654fe60c1b3037a7ee5d52869a70d70e9ee390 (patch) | |
tree | 03851afccf2e86e0f8c3badddc9aa2d5f8ff53d1 /var | |
parent | 6ceb3d4be0d75c71dc837b0990a5c3b77246fe91 (diff) | |
download | spack-9b654fe60c1b3037a7ee5d52869a70d70e9ee390.tar.gz spack-9b654fe60c1b3037a7ee5d52869a70d70e9ee390.tar.bz2 spack-9b654fe60c1b3037a7ee5d52869a70d70e9ee390.tar.xz spack-9b654fe60c1b3037a7ee5d52869a70d70e9ee390.zip |
namd: added patching charmrun location, as it stored in prefix.bin (#18355)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/namd/package.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/namd/package.py b/var/spack/repos/builtin/packages/namd/package.py index 19863becbe..f6a883cc24 100644 --- a/var/spack/repos/builtin/packages/namd/package.py +++ b/var/spack/repos/builtin/packages/namd/package.py @@ -142,6 +142,15 @@ class Namd(MakefilePackage): config(self.build_directory, *opts) + # patch Make.config if needed + # spack install charmpp straight to prefix + # (not to $(CHARMBASE)/$(CHARMARCH)) + if not os.path.exists(join_path( + self.spec['charmpp'].prefix, self.spec['charmpp'].charmarch)): + filter_file(r"^CHARM = \$\(CHARMBASE\)/\$\(CHARMARCH\)", + "CHARM = $(CHARMBASE)", + join_path(self.build_directory, "Make.config")) + def install(self, spec, prefix): with working_dir(self.build_directory): mkdirp(prefix.bin) |