package.py : moved each specialized package to its own module file

This commit is contained in:
alalazo
2016-10-23 22:38:19 +02:00
parent e0f3188970
commit 7bd735416d
7 changed files with 331 additions and 158 deletions

View File

@@ -37,11 +37,11 @@ class Astyle(EditableMakefile):
parallel = False
def wdir(self):
def build_directory(self):
return join_path(self.stage.source_path, 'build', self.compiler.name)
def edit(self, spec, prefix):
makefile = join_path(self.wdir(), 'Makefile')
makefile = join_path(self.build_directory(), 'Makefile')
filter_file(r'^CXX\s*=.*', 'CXX=%s' % spack_cxx, makefile)
def install_args(self):