GMT: add spack external find support (#18007)
This commit is contained in:
parent
bcae9e354b
commit
70419c752d
1 changed files with 6 additions and 0 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue