blob: 8c41caf1c37c56b359746fe2a9990fa2a8a15d82 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# 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 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
|