Skip to content

Commit 8294bba

Browse files
committed
Add new wrap for tinycdb
From https://www.corpit.ru/mjt/tinycdb.html Signed-off-by: Philip Withnall <[email protected]>
1 parent 28c9395 commit 8294bba

File tree

4 files changed

+70
-0
lines changed

4 files changed

+70
-0
lines changed

ci_config.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1402,6 +1402,13 @@
14021402
"windows": false
14031403
}
14041404
},
1405+
"tinycdb": {
1406+
"_comment": "Unix only",
1407+
"build_on": {
1408+
"msys2": false,
1409+
"windows": false
1410+
}
1411+
},
14051412
"tinyfsm": {
14061413
"build_options": [
14071414
"tinyfsm:build_examples=true"

releases.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4081,6 +4081,15 @@
40814081
"1.1.1-1"
40824082
]
40834083
},
4084+
"tinycdb": {
4085+
"dependency_names": [
4086+
"libcdb",
4087+
"tinycdb"
4088+
],
4089+
"versions": [
4090+
"0.81-1"
4091+
]
4092+
},
40844093
"tinyfsm": {
40854094
"dependency_names": [
40864095
"tinyfsm"
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# SPDX-License-Identifier: LGPL-2.1-or-later
2+
# SPDX-FileCopyrightText: 2025 GNOME Foundation, Inc.
3+
project(
4+
'tinycdb',
5+
'c',
6+
version: '0.81',
7+
license: 'MIT',
8+
meson_version: '>= 1.2.0',
9+
)
10+
11+
if host_machine.system() in ['windows', 'cygwin']
12+
error('tinycdb is not supported on non-POSIX platforms.')
13+
endif
14+
15+
lib_srcs = files(
16+
'cdb_find.c',
17+
'cdb_findnext.c',
18+
'cdb_hash.c',
19+
'cdb_init.c',
20+
'cdb_make.c',
21+
'cdb_make_add.c',
22+
'cdb_make_put.c',
23+
'cdb_pack.c',
24+
'cdb_seek.c',
25+
'cdb_seq.c',
26+
'cdb_unpack.c',
27+
)
28+
29+
tinycdb = static_library(
30+
'cdb',
31+
lib_srcs,
32+
cpp_args: ['-D_FILE_OFFSET_BITS=64'],
33+
)
34+
35+
tinycdb_dep = declare_dependency(
36+
include_directories: include_directories('.'),
37+
link_with: tinycdb,
38+
)
39+
40+
meson.override_dependency('tinycdb', tinycdb_dep)
41+
meson.override_dependency('libcdb', tinycdb_dep)

subprojects/tinycdb.wrap

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# SPDX-License-Identifier: LGPL-2.1-or-later
2+
# SPDX-FileCopyrightText: 2025 GNOME Foundation, Inc.
3+
[wrap-file]
4+
directory = tinycdb-0.81
5+
source_url = https://www.corpit.ru/mjt/tinycdb/tinycdb-0.81.tar.gz
6+
source_filename = tinycdb-0.81.tar.gz
7+
source_hash = 469de2d445bf54880f652f4b6dc95c7cdf6f5502c35524a45b2122d70d47ebc2
8+
9+
patch_directory = tinycdb
10+
11+
[provide]
12+
tinycdb = tinycdb_dep
13+
libcdb = tinycdb_dep

0 commit comments

Comments
 (0)