diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2020-08-14 09:06:26 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-14 16:06:26 +0200 |
commit | c18167d01f7e02ee7ff06d231c287cf8259301fe (patch) | |
tree | 839f92ca9ff397a039c43133770371818fd68a6d /var | |
parent | 73fe3ce158c11ab8b9dee08c652121a16b4cbb2a (diff) | |
download | spack-c18167d01f7e02ee7ff06d231c287cf8259301fe.tar.gz spack-c18167d01f7e02ee7ff06d231c287cf8259301fe.tar.bz2 spack-c18167d01f7e02ee7ff06d231c287cf8259301fe.tar.xz spack-c18167d01f7e02ee7ff06d231c287cf8259301fe.zip |
Autoconf: add spack external find support (#16692)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/autoconf/package.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/autoconf/package.py b/var/spack/repos/builtin/packages/autoconf/package.py index 9e95af8a95..28be74890c 100644 --- a/var/spack/repos/builtin/packages/autoconf/package.py +++ b/var/spack/repos/builtin/packages/autoconf/package.py @@ -3,7 +3,7 @@ # # SPDX-License-Identifier: (Apache-2.0 OR MIT) -from spack import * +import re class Autoconf(AutotoolsPackage, GNUMirrorPackage): @@ -24,6 +24,17 @@ class Autoconf(AutotoolsPackage, GNUMirrorPackage): build_directory = 'spack-build' + executables = [ + '^autoconf$', '^autoheader$', '^autom4te$', '^autoreconf$', + '^autoscan$', '^autoupdate$', '^ifnames$' + ] + + @classmethod + def determine_version(cls, exe): + output = Executable(exe)('--version', output=str, error=str) + match = re.search(r'\(GNU Autoconf\)\s+(\S+)', output) + return match.group(1) if match else None + def patch(self): # The full perl shebang might be too long; we have to fix this here # because autom4te is called during the build |