pinentry: add new package (#15387)

This commit is contained in:
Adam J. Stewart 2020-03-07 16:26:56 -06:00 committed by GitHub
parent 4e10eb08a9
commit a1e4b72794
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,47 @@
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Pinentry(AutotoolsPackage):
"""pinentry is a small collection of dialog programs that allow GnuPG to
read passphrases and PIN numbers in a secure manner. There are versions for
the common GTK and Qt toolkits as well as for the text terminal (Curses).
"""
homepage = "https://gnupg.org/related_software/pinentry/index.html"
url = "https://gnupg.org/ftp/gcrypt/pinentry/pinentry-1.1.0.tar.bz2"
version('1.1.0', sha256='68076686fa724a290ea49cdf0d1c0c1500907d1b759a3bcbfbec0293e8f56570')
depends_on('libgpg-error@1.16:')
depends_on('libassuan@2.1.0:')
def configure_args(self):
return [
# Autotools automatically enables these if dependencies found
# TODO: add variants for these
'--disable-pinentry-curses',
'--disable-pinentry-emacs',
'--disable-pinentry-gtk2',
'--disable-pinentry-gnome3',
'--disable-pinentry-qt',
'--disable-pinentry-qt5',
'--disable-pinentry-tqt',
'--disable-pinentry-fltk',
# No dependencies, simplest installation
'--enable-pinentry-tty',
# Disable extra features
'--disable-fallback-curses',
'--disable-inside-emacs',
'--disable-libsecret',
# Required dependencies
'--with-gpg-error-prefix=' + self.spec['libgpg-error'].prefix,
'--with-libassuan-prefix=' + self.spec['libassuan'].prefix,
]