Debian Codegraph @

docs/metainfo_syntax.md

raw
1 # Description of the metainfo.yml syntax {#metainfo_syntax}
2 The name is the folder name.
3 The fancyname is the project name used in CMake.
4
5 Each group must contain one and only one library with the `group_info` block. If
6 more are defined, the behavior is unknown.
7
8 **Be sure to set `public_lib` to true, or the library will be ignored.** Most of
9 the other keys are optionals. See below for a simpler example.
10
11 ## All possible keys.
12
13 ~~~{.yaml}
14 description: Library doing X and Y
15 fancyname: The FancyName # optional, else replaced by the `project()` value of the `CMakeLists.txt`
16 repo_id: klib # optional, defaults to base name of directory with the metainfo.yaml file
17 maintainer: ochurlaud # optional, replaced by The KDE Community
18 group: frameworks # optional
19 subgroup: tier 1 # optional, a group must be defined
20 type: functional # optional
21 logo: relative/path/to/logo.png # Used only if not part of a group, defaults to logo.png if present
22 platforms: # optional, name accepted: all, Linux, FreeBSD, Windows, macOS, Android
23 - name: Linux
24 note: Functional only with running BlueZ 5 # optional
25 public_lib: true # if not defined, the library is ignored
26 public_source_dirs: # optional, default to src, must be a list
27 - src1
28 - src2
29 public_doc_dir: docs # optional, default to docs
30 public_example_dirs: examples # optional, default to examples, must be a list
31
32 portingAid: true/false # optional, default to false
33 deprecated: true/false # optional, default to false
34 libraries: KF5::MyLib # optional
35
36 libraries: # optional
37 - qmake: BluezQt
38 cmake: KF5::BluezQt
39 license: LGPL-2.1-only OR LGPL-3.0-only # optional, SPDX expression that states outbound license of library
40 cmakename: KF5BluezQt # optional
41
42 irc: kde # optional, overwrite group field, if both not defined, default to kde-devel
43 mailinglist: mylib-dev # optional, overwrite group field, if both not defined, default to kde-devel
44
45 group_info: # optional, only once per group
46 name: frameworks # optional, else the name is defined by the 'group' key above.
47 fancyname: The KDE Frameworks
48 maintainer: dfaure
49 irc: kde-devel
50 mailinglist: kde-core-devel
51 platforms:
52 - Linux
53 - Windows (partial)
54 - macOS (partial)
55 description: Providing everything from simple utility classes to ..
56 logo: relative/path/to/logo.png # optional, defaults to logo.png if present
57 long_description: # optional, one item per paragraph, html authorized
58 - The KDE Frameworks build on the <a href="https://www.qt.io">Qt
59 framework</a>, providing everything from simple utility classes (such as
60 those in KCoreAddons) to integrated solutions for common requirements of
61 desktop applications (such as KNewStuff, for fetching downloadable add-on
62 content in an application, or the powerful KIO multi-protocol file access
63 framework).
64 - ....
65 subgroups: # every subgroup must be declared here or will be ignored
66 - name: Tier 1
67 description: Tier 1 frameworks depend only on Qt (and possibly a small number of other third-party libraries), so can easily be used by an Qt-based project.
68 - name: Tier 2
69 description: Tier 2 frameworks additionally depend on tier 1 frameworks, but still have easily manageable dependencies.
70 - ..
71 ~~~
72
73 ## Simple example 1
74
75 In this case, the library is not part of a group, and the source is in `src`. If
76 there is no logo, a default one is used.
77
78 ~~~{.yaml}
79 description: Library doing X
80 maintainer: ochurlaud
81 public_lib: true
82 logo: libX.png
83 ~~~
84
85 ## Simple example 2
86
87 In this case, the libraries X and Y are part of the same group `XY`, and the
88 source is in `src`.
89
90 ### libX
91
92 ~~~{.yaml}
93 description: Library doing X
94 maintainer: ochurlaud
95 public_lib: true
96 platforms:
97 - name: Linux
98 - name: Windows
99 note: doesn't work with Windows10
100 group: XY
101
102 group_info:
103 fancyname: XY Libraries
104 maintainer: arandomguy
105 platforms:
106 - Linux
107 - Windows (partial)
108 description: XY provides ...
109 logo: logo_XY.png
110 long_description:
111 - XY does this and this
112 - If you want to contribute please write to ...
113 ~~~
114
115 ### libY
116
117 ~~~{.yaml}
118 description: Library doing Y
119 maintainer: otherrandomguy
120 public_lib: true
121 platforms:
122 - name: Linux
123 group: XY
124 ~~~