1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
3 NAMEBASE= shared-mime-info
7 SDESC[standard]= MIME types database from freedesktop.org project
8 HOMEPAGE= http://www.freedesktop.org/wiki/Software/shared-mime-info
12 SITES[main]= https://gitlab.freedesktop.org/xdg/shared-mime-info/-/archive/2.4/
13 DISTFILE[1]= shared-mime-info-2.4.tar.gz:main
15 SPKGS[standard]= complete
21 OPTIONS_AVAILABLE= none
22 OPTIONS_STANDARD= none
24 BUILD_DEPENDS= xmlto:single:standard
26 USES= pkgconfig meson c++:primary
27 GNOME_COMPONENTS= glib libxml2 intltool
29 LICENSE= GPLv2:primary
30 LICENSE_TERMS= primary:{{WRKDIR}}/TERMS
31 LICENSE_FILE= GPLv2:{{WRKSRC}}/COPYING
34 FPC_EQUIVALENT= misc/shared-mime-info
35 MESON_ARGS= -Dupdate-mimedb=false
36 -Dxdgmime-path="{{WRKSRC}}/src/xdgmime"
38 SUB_FILES= pkg-install-primary
42 .for DIR in application audio image inode message model multipart packages text video x-epoc x-content font
43 # XMLnamespaces aliases generic-icons globs globs2 icons magic mime.cache subclasses treemagic types version
44 ${MKDIR} ${STAGEDIR}${PREFIX}/share/mime/${DIR}
48 ${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
49 ${WRKSRC}/src/update-mime-database.cpp
51 ${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
52 ${WRKSRC}/data/shared-mime-info-spec.xml
55 ${AWK} '/Copyright/,/file named COPYING/' \
56 ${WRKSRC}/src/update-mime-database.cpp > ${WRKDIR}/TERMS
58 [FILE:231:descriptions/desc.primary]
59 The freedesktop.org project provides a shared MIME database to avoid
60 inconsistencies between desktops. This database has been created by
61 converting the existing KDE and GNOME databases to a common format and
62 merging them together.
66 531291d0387eb94e16e775d7e73788d06d2b2fdd8cd2ac6b6b15287593b6a2de 7852841 shared-mime-info-2.4.tar.gz
69 [FILE:407:manifests/plist.primary]
70 bin/update-mime-database
74 share/mime/packages/freedesktop.org.xml
75 @dir share/mime/application
80 @dir share/mime/message
82 @dir share/mime/multipart
85 @dir share/mime/x-content
86 @dir share/mime/x-epoc
89 [FILE:34:manifests/plist.dev]
90 lib/pkgconfig/shared-mime-info.pc
93 [FILE:3737:manifests/plist.nls]
94 share/locale/af/LC_MESSAGES/shared-mime-info.mo
95 share/locale/ar/LC_MESSAGES/shared-mime-info.mo
96 share/locale/as/LC_MESSAGES/shared-mime-info.mo
97 share/locale/ast/LC_MESSAGES/shared-mime-info.mo
98 share/locale/az/LC_MESSAGES/shared-mime-info.mo
99 share/locale/be/LC_MESSAGES/shared-mime-info.mo
100 share/locale/be@latin/LC_MESSAGES/shared-mime-info.mo
101 share/locale/bg/LC_MESSAGES/shared-mime-info.mo
102 share/locale/bn_IN/LC_MESSAGES/shared-mime-info.mo
103 share/locale/ca/LC_MESSAGES/shared-mime-info.mo
104 share/locale/ca@valencia/LC_MESSAGES/shared-mime-info.mo
105 share/locale/cs/LC_MESSAGES/shared-mime-info.mo
106 share/locale/cy/LC_MESSAGES/shared-mime-info.mo
107 share/locale/da/LC_MESSAGES/shared-mime-info.mo
108 share/locale/de/LC_MESSAGES/shared-mime-info.mo
109 share/locale/el/LC_MESSAGES/shared-mime-info.mo
110 share/locale/en_GB/LC_MESSAGES/shared-mime-info.mo
111 share/locale/eo/LC_MESSAGES/shared-mime-info.mo
112 share/locale/es/LC_MESSAGES/shared-mime-info.mo
113 share/locale/et/LC_MESSAGES/shared-mime-info.mo
114 share/locale/eu/LC_MESSAGES/shared-mime-info.mo
115 share/locale/fa/LC_MESSAGES/shared-mime-info.mo
116 share/locale/fi/LC_MESSAGES/shared-mime-info.mo
117 share/locale/fo/LC_MESSAGES/shared-mime-info.mo
118 share/locale/fr/LC_MESSAGES/shared-mime-info.mo
119 share/locale/fur/LC_MESSAGES/shared-mime-info.mo
120 share/locale/ga/LC_MESSAGES/shared-mime-info.mo
121 share/locale/gl/LC_MESSAGES/shared-mime-info.mo
122 share/locale/gu/LC_MESSAGES/shared-mime-info.mo
123 share/locale/he/LC_MESSAGES/shared-mime-info.mo
124 share/locale/hi/LC_MESSAGES/shared-mime-info.mo
125 share/locale/hr/LC_MESSAGES/shared-mime-info.mo
126 share/locale/hu/LC_MESSAGES/shared-mime-info.mo
127 share/locale/ia/LC_MESSAGES/shared-mime-info.mo
128 share/locale/id/LC_MESSAGES/shared-mime-info.mo
129 share/locale/is/LC_MESSAGES/shared-mime-info.mo
130 share/locale/it/LC_MESSAGES/shared-mime-info.mo
131 share/locale/ja/LC_MESSAGES/shared-mime-info.mo
132 share/locale/ka/LC_MESSAGES/shared-mime-info.mo
133 share/locale/kk/LC_MESSAGES/shared-mime-info.mo
134 share/locale/kn/LC_MESSAGES/shared-mime-info.mo
135 share/locale/ko/LC_MESSAGES/shared-mime-info.mo
136 share/locale/ky/LC_MESSAGES/shared-mime-info.mo
137 share/locale/lt/LC_MESSAGES/shared-mime-info.mo
138 share/locale/lv/LC_MESSAGES/shared-mime-info.mo
139 share/locale/ml/LC_MESSAGES/shared-mime-info.mo
140 share/locale/mr/LC_MESSAGES/shared-mime-info.mo
141 share/locale/ms/LC_MESSAGES/shared-mime-info.mo
142 share/locale/nb/LC_MESSAGES/shared-mime-info.mo
143 share/locale/nl/LC_MESSAGES/shared-mime-info.mo
144 share/locale/nn/LC_MESSAGES/shared-mime-info.mo
145 share/locale/oc/LC_MESSAGES/shared-mime-info.mo
146 share/locale/or/LC_MESSAGES/shared-mime-info.mo
147 share/locale/pa/LC_MESSAGES/shared-mime-info.mo
148 share/locale/pl/LC_MESSAGES/shared-mime-info.mo
149 share/locale/pt/LC_MESSAGES/shared-mime-info.mo
150 share/locale/pt_BR/LC_MESSAGES/shared-mime-info.mo
151 share/locale/ro/LC_MESSAGES/shared-mime-info.mo
152 share/locale/ru/LC_MESSAGES/shared-mime-info.mo
153 share/locale/rw/LC_MESSAGES/shared-mime-info.mo
154 share/locale/si/LC_MESSAGES/shared-mime-info.mo
155 share/locale/sk/LC_MESSAGES/shared-mime-info.mo
156 share/locale/sl/LC_MESSAGES/shared-mime-info.mo
157 share/locale/sq/LC_MESSAGES/shared-mime-info.mo
158 share/locale/sr/LC_MESSAGES/shared-mime-info.mo
159 share/locale/sr@latin/LC_MESSAGES/shared-mime-info.mo
160 share/locale/sv/LC_MESSAGES/shared-mime-info.mo
161 share/locale/ta/LC_MESSAGES/shared-mime-info.mo
162 share/locale/te/LC_MESSAGES/shared-mime-info.mo
163 share/locale/th/LC_MESSAGES/shared-mime-info.mo
164 share/locale/tr/LC_MESSAGES/shared-mime-info.mo
165 share/locale/uk/LC_MESSAGES/shared-mime-info.mo
166 share/locale/vi/LC_MESSAGES/shared-mime-info.mo
167 share/locale/wa/LC_MESSAGES/shared-mime-info.mo
168 share/locale/zh_CN/LC_MESSAGES/shared-mime-info.mo
169 share/locale/zh_HK/LC_MESSAGES/shared-mime-info.mo
170 share/locale/zh_TW/LC_MESSAGES/shared-mime-info.mo
173 [FILE:41:manifests/plist.man]
174 share/man/man1/update-mime-database.1.gz
177 [FILE:414:patches/patch-data_shared-mime-info-spec.xml]
178 --- data/shared-mime-info-spec.xml.orig 2023-10-07 11:16:03 UTC
179 +++ data/shared-mime-info-spec.xml
181 <?xml version="1.0" standalone="no"?>
182 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
183 -"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
184 +"file://%%LOCALBASE%%/share/xml/docbook/4.1.2/docbookx.dtd" [
185 <!ENTITY updated "2 October 2018">
186 <!ENTITY version "0.21">
190 [FILE:340:patches/patch-meson.build]
191 --- meson.build.orig 2023-10-07 11:16:03 UTC
193 @@ -79,7 +79,7 @@ configure_file(
194 'prefix': get_option('prefix'),
195 'VERSION': meson.project_version()
197 - install_dir: get_option('datadir') / 'pkgconfig'
198 + install_dir: get_option('prefix') / 'lib' / 'pkgconfig'
201 if get_option('update-mimedb')
204 [FILE:401:patches/patch-src_update-mime-database.cpp]
205 --- src/update-mime-database.cpp.orig 2023-11-12 08:52:33 UTC
206 +++ src/update-mime-database.cpp
207 @@ -2159,7 +2159,7 @@ static void check_in_path_xdg_data(const
209 env = getenv("XDG_DATA_DIRS");
211 - env = "/usr/local/share/" PATH_SEPARATOR "/usr/share/";
212 + env = "/usr/local/share/";
213 dirs = g_strsplit(env, PATH_SEPARATOR, 0);
214 g_return_if_fail(dirs != NULL);
215 for (n = 0; dirs[n]; n++)
218 [FILE:698:files/pkg-deinstall-primary.in]
223 echo "[shared-mime-info] Cleaning up the MIME database cache after package removal"
224 mimedir=%%PREFIX%%/share/mime
225 files="XMLnamespaces aliases generic-icons globs globs2 icons mime.cache subclasses treemagic types version"
227 for f in ${files}; do
231 if [ -d "${mimedir}" ]; then
232 # gnu find doesn't handled -depth the same as BSD find
233 entries=$(find "${mimedir}" -mindepth 1 -maxdepth 1 -type d ! -name "packages" -print0)
234 if [ -n "${entries}" ]; then
235 find "${mimedir}" -mindepth 1 -maxdepth 1 -type d ! -name "packages" -print0 |\
236 xargs -0 -I{} rm -rf {}/*
245 [FILE:184:files/pkg-install-primary.in]
250 echo "[shared-mime-info] Building the Shared MIME-Info database cache"
251 %%PREFIX%%/bin/update-mime-database %%PREFIX%%/share/mime