gdrcopy: fix install of version >= 2.2 (#22987)

'prefix' option must be lowercase for versions >= 2.2
This commit is contained in:
Andrew W Elble 2021-04-14 17:34:47 -04:00 committed by GitHub
parent 51421100cf
commit 5309417f19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,4 +26,9 @@ def build(self, spec, prefix):
def install(self, spec, prefix): def install(self, spec, prefix):
mkdir(prefix.include) mkdir(prefix.include)
mkdir(prefix.lib64) mkdir(prefix.lib64)
make('lib_install', 'PREFIX={0}'.format(self.prefix)) if spec.satisfies('@2.2:'):
make('lib_install',
'prefix={0}'.format(self.prefix))
else:
make('lib_install',
'PREFIX={0}'.format(self.prefix))