diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2020-03-07 16:26:56 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-07 16:26:56 -0600 |
commit | a1e4b7279457100476da7971bc7fb9ee85af2451 (patch) | |
tree | ea6110ac5aee5dfcdefc027d3f1ad8db25594439 /var | |
parent | 4e10eb08a95483cd4d27c0329bcce9e8c6a2a1ed (diff) | |
download | spack-a1e4b7279457100476da7971bc7fb9ee85af2451.tar.gz spack-a1e4b7279457100476da7971bc7fb9ee85af2451.tar.bz2 spack-a1e4b7279457100476da7971bc7fb9ee85af2451.tar.xz spack-a1e4b7279457100476da7971bc7fb9ee85af2451.zip |
pinentry: add new package (#15387)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/pinentry/package.py | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/pinentry/package.py b/var/spack/repos/builtin/packages/pinentry/package.py new file mode 100644 index 0000000000..3a9e6e526c --- /dev/null +++ b/var/spack/repos/builtin/packages/pinentry/package.py @@ -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, + ] |