From 9eac1ed6a8c22eff57951627726a8a573e8ec50d Mon Sep 17 00:00:00 2001 From: Paul <39570394+paulbry@users.noreply.github.com> Date: Wed, 9 Sep 2020 16:39:33 -0600 Subject: [PATCH] Support external find for gpgme. (#18594) --- var/spack/repos/builtin/packages/gpgme/package.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/var/spack/repos/builtin/packages/gpgme/package.py b/var/spack/repos/builtin/packages/gpgme/package.py index e7844aa3c3..1ea0086c6f 100644 --- a/var/spack/repos/builtin/packages/gpgme/package.py +++ b/var/spack/repos/builtin/packages/gpgme/package.py @@ -13,8 +13,14 @@ class Gpgme(AutotoolsPackage): homepage = "https://www.gnupg.org/software/gpgme/index.html" url = "https://www.gnupg.org/ftp/gcrypt/gpgme/gpgme-1.12.0.tar.bz2" + executables = ['^gpgme-config$'] + version('1.12.0', sha256='b4dc951c3743a60e2e120a77892e9e864fb936b2e58e7c77e8581f4d050e8cd8') depends_on('gnupg', type='build') depends_on('libgpg-error', type='build') depends_on('libassuan', type='build') + + @classmethod + def determine_version(cls, exe): + return Executable(exe)('--version', output=str, error=str).rstrip()