scons: support Fujitsu Fortran moddir option (#17538)
This commit is contained in:
parent
d32bbae431
commit
14f3f230c1
1 changed files with 9 additions and 0 deletions
|
@ -25,6 +25,15 @@ class Scons(PythonPackage):
|
||||||
depends_on('python@:2', when='@:2', type=('build', 'run'))
|
depends_on('python@:2', when='@:2', type=('build', 'run'))
|
||||||
depends_on('py-setuptools', when='@3.0.2:', type='build')
|
depends_on('py-setuptools', when='@3.0.2:', type='build')
|
||||||
|
|
||||||
|
def patch(self):
|
||||||
|
if self.spec.satisfies('%fj'):
|
||||||
|
filter_file(
|
||||||
|
'env[\'FORTRANMODDIRPREFIX\'] = "-J"',
|
||||||
|
'env[\'FORTRANMODDIRPREFIX\'] = "-M"',
|
||||||
|
'engine/SCons/Tool/gfortran.py',
|
||||||
|
string=True
|
||||||
|
)
|
||||||
|
|
||||||
# Prevent passing --single-version-externally-managed to
|
# Prevent passing --single-version-externally-managed to
|
||||||
# setup.py, which it does not support.
|
# setup.py, which it does not support.
|
||||||
@when('@3.0.2:')
|
@when('@3.0.2:')
|
||||||
|
|
Loading…
Reference in a new issue