GMT: add spack external find support (#18007)

This commit is contained in:
Adam J. Stewart 2020-08-14 01:44:32 -05:00 committed by GitHub
parent bcae9e354b
commit 70419c752d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,6 +64,12 @@ class Gmt(Package):
patch('regexp.patch', when='@6.1.0') patch('regexp.patch', when='@6.1.0')
patch('type.patch', when='@4.5.9') patch('type.patch', when='@4.5.9')
executables = ['^gmt-config$']
@classmethod
def determine_version(cls, exe):
return Executable(exe)('--version', output=str, error=str).rstrip()
@when('@5:') @when('@5:')
def install(self, spec, prefix): def install(self, spec, prefix):
with working_dir('spack-build', create=True): with working_dir('spack-build', create=True):