-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathalire.toml
60 lines (49 loc) · 1.64 KB
/
alire.toml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name = "secretada"
description = "Secret service Ada binding"
version = "1.0.0"
long-description = """
The [libsecret](https://wiki.gnome.org/Projects/Libsecret) is a library for storing
and retrieving passwords and others secrets. The library uses the
[Secret Service API](https://standards.freedesktop.org/secret-service/) provided
by Gnome Keyring or KDE Wallet. This library provides an Ada binding
to the [Secret Service API](https://standards.freedesktop.org/secret-service/).
You can store a secret by using the following code extract:
```
with Secret.Services;
with Secret.Attributes;
with Secret.Values;
...
Service : Secret.Services.Service_Type;
List : Secret.Attributes.Map;
Value : Secret.Values.Secret_Type;
...
Service.Initialize;
List.Insert ("secret identification key", "secret identification value");
Value := Secret.Values.Create ("the-secret-to-store");
Service.Store (List, "The secret label (for the keyring manager)", Value);
```
And you will retrieve it with:
```
Value := Service.Lookup (List);
if not Value.Is_Null then
Ada.Text_IO.Put_Line (Value.Get_Value);
end if;
```
"""
authors = ["[email protected]"]
maintainers = ["[email protected]"]
maintainers-logins = ["stcarrez"]
licenses = "Apache-2.0"
website = "https://gitlab.com/stcarrez/ada-libsecret"
tags = ["secret", "bindings"]
[gpr-externals]
SECRETADA_BUILD = ["distrib", "debug", "optimize", "profile", "coverage"]
SECRETADA_LIBRARY_TYPE = ["relocatable", "static", "static-pic"]
[available.'case(os)']
linux = true
'...' = false
[[depends-on]]
libglib = "*"
libsecret = "*"
[configuration]
disabled = true