scons: support Fujitsu Fortran moddir option (#17538)

This commit is contained in:
ketsubouchi 2020-07-15 11:24:18 +09:00 committed by GitHub
parent d32bbae431
commit 14f3f230c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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:')