astyle: Fix makefile for install parameter (#20899)
This commit is contained in:
parent
74b2c85b41
commit
d0891d5d26
1 changed files with 3 additions and 4 deletions
|
@ -4,7 +4,6 @@
|
||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
from spack import *
|
from spack import *
|
||||||
import sys
|
|
||||||
|
|
||||||
|
|
||||||
class Astyle(MakefilePackage):
|
class Astyle(MakefilePackage):
|
||||||
|
@ -32,8 +31,8 @@ def build_directory(self):
|
||||||
def edit(self, spec, prefix):
|
def edit(self, spec, prefix):
|
||||||
makefile = join_path(self.build_directory, 'Makefile')
|
makefile = join_path(self.build_directory, 'Makefile')
|
||||||
filter_file(r'^CXX\s*=.*', 'CXX=%s' % spack_cxx, makefile)
|
filter_file(r'^CXX\s*=.*', 'CXX=%s' % spack_cxx, makefile)
|
||||||
# strangely enough install -o $(USER) -g $(USER) stoped working on OSX
|
# If the group is not a user account, the installation will fail,
|
||||||
if sys.platform == 'darwin':
|
# so remove the -o $ (USER) -g $ (USER) parameter.
|
||||||
filter_file(r'^INSTALL=.*', 'INSTALL=install', makefile)
|
filter_file(r'^INSTALL=.*', 'INSTALL=install', makefile)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
Loading…
Reference in a new issue