Ravenports generated: 10 Feb 2024 22:55
[ravenports.git] / bucket_EC / shared-mime-info
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               shared-mime-info
4 VERSION=                2.4
5 KEYWORDS=               misc
6 VARIANTS=               standard
7 SDESC[standard]=        MIME types database from freedesktop.org project
8 HOMEPAGE=               http://www.freedesktop.org/wiki/Software/shared-mime-info
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
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
14 DF_INDEX=               1
15 SPKGS[standard]=        complete
16                         primary
17                         dev
18                         nls
19                         man
20
21 OPTIONS_AVAILABLE=      none
22 OPTIONS_STANDARD=       none
23
24 BUILD_DEPENDS=          xmlto:single:standard
25
26 USES=                   pkgconfig meson c++:primary
27 GNOME_COMPONENTS=       glib libxml2 intltool
28
29 LICENSE=                GPLv2:primary
30 LICENSE_TERMS=          primary:{{WRKDIR}}/TERMS
31 LICENSE_FILE=           GPLv2:{{WRKSRC}}/COPYING
32 LICENSE_SCHEME=         solo
33
34 FPC_EQUIVALENT=         misc/shared-mime-info
35 MESON_ARGS=             -Dupdate-mimedb=false
36                         -Dxdgmime-path="{{WRKSRC}}/src/xdgmime"
37
38 SUB_FILES=              pkg-install-primary
39                         pkg-deinstall-primary
40
41 post-install:
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}
45 .endfor
46
47 pre-configure:
48         ${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
49                 ${WRKSRC}/src/update-mime-database.cpp
50         # Use local dtd
51         ${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
52                 ${WRKSRC}/data/shared-mime-info-spec.xml
53
54 post-extract:
55         ${AWK} '/Copyright/,/file named COPYING/' \
56                 ${WRKSRC}/src/update-mime-database.cpp > ${WRKDIR}/TERMS
57
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.
63
64
65 [FILE:106:distinfo]
66 531291d0387eb94e16e775d7e73788d06d2b2fdd8cd2ac6b6b15287593b6a2de      7852841 shared-mime-info-2.4.tar.gz
67
68
69 [FILE:407:manifests/plist.primary]
70 bin/update-mime-database
71 share/gettext/its/
72  shared-mime-info.its
73  shared-mime-info.loc
74 share/mime/packages/freedesktop.org.xml
75 @dir share/mime/application
76 @dir share/mime/audio
77 @dir share/mime/font
78 @dir share/mime/image
79 @dir share/mime/inode
80 @dir share/mime/message
81 @dir share/mime/model
82 @dir share/mime/multipart
83 @dir share/mime/text
84 @dir share/mime/video
85 @dir share/mime/x-content
86 @dir share/mime/x-epoc
87
88
89 [FILE:34:manifests/plist.dev]
90 lib/pkgconfig/shared-mime-info.pc
91
92
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
171
172
173 [FILE:41:manifests/plist.man]
174 share/man/man1/update-mime-database.1.gz
175
176
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
180 @@ -1,6 +1,6 @@
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">
187  ]>
188
189
190 [FILE:340:patches/patch-meson.build]
191 --- meson.build.orig    2023-10-07 11:16:03 UTC
192 +++ meson.build
193 @@ -79,7 +79,7 @@ configure_file(
194          'prefix': get_option('prefix'),
195          'VERSION': meson.project_version()
196      },
197 -    install_dir: get_option('datadir') / 'pkgconfig'
198 +    install_dir: get_option('prefix') / 'lib' / 'pkgconfig'
199  )
200  
201  if get_option('update-mimedb')
202
203
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
208  
209         env = getenv("XDG_DATA_DIRS");
210         if (!env)
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++)
216
217
218 [FILE:698:files/pkg-deinstall-primary.in]
219 #!/bin/sh
220
221 case $2 in
222 POST-DEINSTALL)
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"
226
227         for f in ${files}; do
228            ff="${mimedir}${f}"
229            rm -f "${ff}"
230         done
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 {}/*
237            fi
238         fi
239         ;;
240 esac
241
242 exit 0
243
244
245 [FILE:184:files/pkg-install-primary.in]
246 #!/bin/sh
247
248 case $2 in
249 POST-INSTALL)
250         echo "[shared-mime-info] Building the Shared MIME-Info database cache"
251         %%PREFIX%%/bin/update-mime-database %%PREFIX%%/share/mime
252         ;;
253 esac
254
255 exit 0
256