Ravenports generated: 08 Feb 2023 00:14
[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.2
5 REVISION=               1
6 KEYWORDS=               misc
7 VARIANTS=               standard
8 SDESC[standard]=        MIME types database from freedesktop.org project
9 HOMEPAGE=               http://www.freedesktop.org/wiki/Software/shared-mime-info
10 CONTACT=                nobody
11
12 DOWNLOAD_GROUPS=        main
13 SITES[main]=            https://gitlab.freedesktop.org/xdg/shared-mime-info/-/archive/2.2/
14 DISTFILE[1]=            shared-mime-info-2.2.tar.gz:main
15 DF_INDEX=               1
16 SPKGS[standard]=        complete
17                         primary
18                         nls
19
20 OPTIONS_AVAILABLE=      none
21 OPTIONS_STANDARD=       none
22
23 BUILD_DEPENDS=          xmlto:single:standard
24
25 USES=                   pkgconfig meson
26 GNOME_COMPONENTS=       glib libxml2 intltool
27
28 LICENSE=                GPLv2:primary
29 LICENSE_TERMS=          primary:{{WRKDIR}}/TERMS
30 LICENSE_FILE=           GPLv2:{{WRKSRC}}/COPYING
31 LICENSE_SCHEME=         solo
32
33 FPC_EQUIVALENT=         misc/shared-mime-info
34 MESON_ARGS=             -Dupdate-mimedb=false
35                         -Dxdgmime-path="{{WRKSRC}}/src/xdgmime"
36
37 SUB_FILES=              pkg-install-single
38 SUB_LIST=               MIMEDIRS="{{CLEAN_MIMEDIRS}}"
39
40 post-install:
41         ${MV} ${STAGEDIR}${PREFIX}/share/pkgconfig \
42                 ${STAGEDIR}${PREFIX}/lib/
43
44 pre-configure:
45         ${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
46                 ${WRKSRC}/src/update-mime-database.c
47         # Use local dtd
48         ${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
49                 ${WRKSRC}/data/shared-mime-info-spec.xml
50
51 post-extract:
52         ${AWK} '/Copyright/,/file named COPYING/' \
53                 ${WRKSRC}/src/update-mime-database.c > ${WRKDIR}/TERMS
54
55 [FILE:231:descriptions/desc.primary]
56 The freedesktop.org project provides a shared MIME database to avoid
57 inconsistencies between desktops. This database has been created by
58 converting the existing KDE and GNOME databases to a common format and
59 merging them together.
60
61
62 [FILE:106:distinfo]
63 bcf5d552318136cf7b3ae259975f414fbcdc9ebce000c87cf1f0901ff14e619f      7064139 shared-mime-info-2.2.tar.gz
64
65
66 [FILE:1201:manifests/plist.primary]
67 bin/update-mime-database
68 lib/pkgconfig/shared-mime-info.pc
69 share/gettext/its/
70  shared-mime-info.its
71  shared-mime-info.loc
72 share/man/man1/update-mime-database.1.gz
73 share/mime/packages/freedesktop.org.xml
74 @rmtry share/mime/XMLnamespaces
75 @rmtry share/mime/aliases
76 @rmtry share/mime/generic-icons
77 @rmtry share/mime/globs
78 @rmtry share/mime/globs2
79 @rmtry share/mime/icons
80 @rmtry share/mime/magic
81 @rmtry share/mime/mime.cache
82 @rmtry share/mime/subclasses
83 @rmtry share/mime/treemagic
84 @rmtry share/mime/types
85 @rmtry share/mime/version
86 @unexec rm -fr %D/share/mime/application 2>/dev/null || true
87 @unexec rm -fr %D/share/mime/audio 2>/dev/null || true
88 @unexec rm -fr %D/share/mime/font 2>/dev/null || true
89 @unexec rm -fr %D/share/mime/image 2>/dev/null || true
90 @unexec rm -fr %D/share/mime/inode 2>/dev/null || true
91 @unexec rm -fr %D/share/mime/message 2>/dev/null || true
92 @unexec rm -fr %D/share/mime/model 2>/dev/null || true
93 @unexec rm -fr %D/share/mime/multipart 2>/dev/null || true
94 @unexec rm -fr %D/share/mime/text 2>/dev/null || true
95 @unexec rm -fr %D/share/mime/video 2>/dev/null || true
96 @unexec rm -fr %D/share/mime/x-content 2>/dev/null || true
97 @unexec rm -fr %D/share/mime/x-epoc 2>/dev/null || true
98
99
100 [FILE:3641:manifests/plist.nls]
101 share/locale/af/LC_MESSAGES/shared-mime-info.mo
102 share/locale/ar/LC_MESSAGES/shared-mime-info.mo
103 share/locale/as/LC_MESSAGES/shared-mime-info.mo
104 share/locale/ast/LC_MESSAGES/shared-mime-info.mo
105 share/locale/az/LC_MESSAGES/shared-mime-info.mo
106 share/locale/be/LC_MESSAGES/shared-mime-info.mo
107 share/locale/be@latin/LC_MESSAGES/shared-mime-info.mo
108 share/locale/bg/LC_MESSAGES/shared-mime-info.mo
109 share/locale/bn_IN/LC_MESSAGES/shared-mime-info.mo
110 share/locale/ca/LC_MESSAGES/shared-mime-info.mo
111 share/locale/ca@valencia/LC_MESSAGES/shared-mime-info.mo
112 share/locale/cs/LC_MESSAGES/shared-mime-info.mo
113 share/locale/cy/LC_MESSAGES/shared-mime-info.mo
114 share/locale/da/LC_MESSAGES/shared-mime-info.mo
115 share/locale/de/LC_MESSAGES/shared-mime-info.mo
116 share/locale/el/LC_MESSAGES/shared-mime-info.mo
117 share/locale/en_GB/LC_MESSAGES/shared-mime-info.mo
118 share/locale/eo/LC_MESSAGES/shared-mime-info.mo
119 share/locale/es/LC_MESSAGES/shared-mime-info.mo
120 share/locale/et/LC_MESSAGES/shared-mime-info.mo
121 share/locale/eu/LC_MESSAGES/shared-mime-info.mo
122 share/locale/fa/LC_MESSAGES/shared-mime-info.mo
123 share/locale/fi/LC_MESSAGES/shared-mime-info.mo
124 share/locale/fo/LC_MESSAGES/shared-mime-info.mo
125 share/locale/fr/LC_MESSAGES/shared-mime-info.mo
126 share/locale/fur/LC_MESSAGES/shared-mime-info.mo
127 share/locale/ga/LC_MESSAGES/shared-mime-info.mo
128 share/locale/gl/LC_MESSAGES/shared-mime-info.mo
129 share/locale/gu/LC_MESSAGES/shared-mime-info.mo
130 share/locale/he/LC_MESSAGES/shared-mime-info.mo
131 share/locale/hi/LC_MESSAGES/shared-mime-info.mo
132 share/locale/hr/LC_MESSAGES/shared-mime-info.mo
133 share/locale/hu/LC_MESSAGES/shared-mime-info.mo
134 share/locale/ia/LC_MESSAGES/shared-mime-info.mo
135 share/locale/id/LC_MESSAGES/shared-mime-info.mo
136 share/locale/it/LC_MESSAGES/shared-mime-info.mo
137 share/locale/ja/LC_MESSAGES/shared-mime-info.mo
138 share/locale/ka/LC_MESSAGES/shared-mime-info.mo
139 share/locale/kk/LC_MESSAGES/shared-mime-info.mo
140 share/locale/kn/LC_MESSAGES/shared-mime-info.mo
141 share/locale/ko/LC_MESSAGES/shared-mime-info.mo
142 share/locale/ky/LC_MESSAGES/shared-mime-info.mo
143 share/locale/lt/LC_MESSAGES/shared-mime-info.mo
144 share/locale/lv/LC_MESSAGES/shared-mime-info.mo
145 share/locale/ml/LC_MESSAGES/shared-mime-info.mo
146 share/locale/mr/LC_MESSAGES/shared-mime-info.mo
147 share/locale/ms/LC_MESSAGES/shared-mime-info.mo
148 share/locale/nb/LC_MESSAGES/shared-mime-info.mo
149 share/locale/nl/LC_MESSAGES/shared-mime-info.mo
150 share/locale/nn/LC_MESSAGES/shared-mime-info.mo
151 share/locale/oc/LC_MESSAGES/shared-mime-info.mo
152 share/locale/or/LC_MESSAGES/shared-mime-info.mo
153 share/locale/pa/LC_MESSAGES/shared-mime-info.mo
154 share/locale/pl/LC_MESSAGES/shared-mime-info.mo
155 share/locale/pt/LC_MESSAGES/shared-mime-info.mo
156 share/locale/pt_BR/LC_MESSAGES/shared-mime-info.mo
157 share/locale/ro/LC_MESSAGES/shared-mime-info.mo
158 share/locale/ru/LC_MESSAGES/shared-mime-info.mo
159 share/locale/rw/LC_MESSAGES/shared-mime-info.mo
160 share/locale/sk/LC_MESSAGES/shared-mime-info.mo
161 share/locale/sl/LC_MESSAGES/shared-mime-info.mo
162 share/locale/sq/LC_MESSAGES/shared-mime-info.mo
163 share/locale/sr/LC_MESSAGES/shared-mime-info.mo
164 share/locale/sr@latin/LC_MESSAGES/shared-mime-info.mo
165 share/locale/sv/LC_MESSAGES/shared-mime-info.mo
166 share/locale/ta/LC_MESSAGES/shared-mime-info.mo
167 share/locale/te/LC_MESSAGES/shared-mime-info.mo
168 share/locale/th/LC_MESSAGES/shared-mime-info.mo
169 share/locale/tr/LC_MESSAGES/shared-mime-info.mo
170 share/locale/uk/LC_MESSAGES/shared-mime-info.mo
171 share/locale/vi/LC_MESSAGES/shared-mime-info.mo
172 share/locale/wa/LC_MESSAGES/shared-mime-info.mo
173 share/locale/zh_CN/LC_MESSAGES/shared-mime-info.mo
174 share/locale/zh_HK/LC_MESSAGES/shared-mime-info.mo
175 share/locale/zh_TW/LC_MESSAGES/shared-mime-info.mo
176
177
178 [FILE:414:patches/patch-data_shared-mime-info-spec.xml]
179 --- data/shared-mime-info-spec.xml.orig 2022-03-27 10:19:00 UTC
180 +++ data/shared-mime-info-spec.xml
181 @@ -1,6 +1,6 @@
182  <?xml version="1.0" standalone="no"?>
183  <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
184 -"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
185 +"file://%%LOCALBASE%%/share/xml/docbook/4.1.2/docbookx.dtd" [
186    <!ENTITY updated "2 October 2018">
187    <!ENTITY version "0.21">
188  ]>
189
190
191 [FILE:594:patches/patch-src_update-mime-database.c]
192 --- src/update-mime-database.c.orig     2022-03-27 10:19:00 UTC
193 +++ src/update-mime-database.c
194 @@ -636,7 +636,8 @@ static void remove_old(Type *type, xmlNo
195                 }
196         }
197  
198 -       xmlFree(lang);
199 +       if (lang)
200 +               xmlFree(lang);
201  }
202  
203  /* 'node' is a <mime-type> node from a source file, whose type is 'type'.
204 @@ -2174,7 +2175,7 @@ static void check_in_path_xdg_data(const
205  
206         env = getenv("XDG_DATA_DIRS");
207         if (!env)
208 -               env = "/usr/local/share/"PATH_SEPARATOR"/usr/share/";
209 +               env = "/usr/local/share/";
210         dirs = g_strsplit(env, PATH_SEPARATOR, 0);
211         g_return_if_fail(dirs != NULL);
212         for (n = 0; dirs[n]; n++)
213
214
215 [FILE:172:files/pkg-install-single.in]
216 #!/bin/sh
217
218 case $2 in
219 POST-INSTALL)
220         for mdir in %%MIMEDIRS%%; do
221             if [ -d ${mdir} ]; then
222                 %%PREFIX%%/bin/update-mime-database ${mdir}
223             fi
224         done
225         exit 0
226         ;;
227 esac
228
229
230 [FILE:92:files/special.mk]
231 MIMEDIRS=       ${LOCALBASE}/share/mime \
232                 ${PREFIX}/share/mime
233
234 CLEAN_MIMEDIRS= ${MIMEDIRS:O:u}
235