diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/libsecret/package.py | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libsecret/package.py b/var/spack/repos/builtin/packages/libsecret/package.py new file mode 100644 index 0000000000..d7ee09cfaa --- /dev/null +++ b/var/spack/repos/builtin/packages/libsecret/package.py @@ -0,0 +1,45 @@ +# Copyright 2013-2019 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 Libsecret(AutotoolsPackage): + """libsecret is a library for storing and retrieving passwords and other + secrets. It communicates with the "Secret Service" using D-Bus. + gnome-keyring and ksecretservice are both implementations of a Secret + Service. + + libsecret replaces libgnome-keyring + """ + + homepage = "https://wiki.gnome.org/Projects/Libsecret" + url = "http://ftp.gnome.org/pub/gnome/sources/libsecret/0.18/libsecret-0.18.8.tar.xz" + + version('0.18.8', sha256='3bfa889d260e0dbabcf5b9967f2aae12edcd2ddc9adc365de7a5cc840c311d15') + + variant('gcrypt', default=True, description='Build with libgcrypt') + variant('gobj', default=True, description='Build with gobject-introspection') + # Optional Vala support is not implemented yet + # variant('vala', default=False, descript='Build with Vala support') + + # https://gitlab.gnome.org/GNOME/libsecret/blob/master/meson.build + depends_on('glib@2.44:') + depends_on('libgcrypt@1.2.2:', when='+gcrypt') + depends_on('gobject-introspection', when='+gobj') + # depends_on('vala', when='+vala') # Package doesn't exist yet + + def url_for_version(self, version): + url = 'http://ftp.gnome.org/pub/gnome/sources/libsecret' + return url + '/%s/libsecret-%s.tar.xz' % (version.up_to(2), version) + + # http://www.linuxfromscratch.org/blfs/view/svn/gnome/libsecret.html + def configure_args(self): + args = [] + args.append('--disable-static') + args.append('--disable-manpages') + if '+gcrypt' not in self.spec: + args.append('--disable-gcrypt') + return args |