1 |
commit: 08eb7f258111a6fbe509078306fec729e92d37be |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 18 02:45:51 2022 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 18 02:53:07 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08eb7f25 |
7 |
|
8 |
media-libs/fontconfig: Drop old versions |
9 |
|
10 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
11 |
|
12 |
media-libs/fontconfig/Manifest | 1 - |
13 |
.../files/fontconfig-2.12.3-latin-update.patch | 68 ----- |
14 |
.../files/fontconfig-2.13.1-proper_homedir.patch | 313 --------------------- |
15 |
...1-revert_delete_.uuid_for_empty_directory.patch | 43 --- |
16 |
.../files/fontconfig-2.13.1-static_build.patch | 91 ------ |
17 |
media-libs/fontconfig/fontconfig-2.13.1-r2.ebuild | 182 ------------ |
18 |
6 files changed, 698 deletions(-) |
19 |
|
20 |
diff --git a/media-libs/fontconfig/Manifest b/media-libs/fontconfig/Manifest |
21 |
index a42cf3ac9874..24cff4b4b53f 100644 |
22 |
--- a/media-libs/fontconfig/Manifest |
23 |
+++ b/media-libs/fontconfig/Manifest |
24 |
@@ -1,3 +1,2 @@ |
25 |
-DIST fontconfig-2.13.1.tar.bz2 1723639 BLAKE2B 08b9a522a9d89bc5e5ed0f0898182359efb110f22b6b7010f6bdda0d6d516957ea74ebe0703d684d4724fd9f44a2eaf50d8329d4e0f4e45e79f50466d808b9e1 SHA512 f97f2a9db294fd72d416a7d76dd7db5934ade2cf76903764b09e7decc33e0e2eed1a1d35c5f1c7fd9ea39e2c7653b9e65365f0c6205e047e95e38ba5000dd100 |
26 |
DIST fontconfig-2.13.93.tar.xz 1418288 BLAKE2B 2be273c21c16f9bb2dfe618177eaf2de48610a145d402ba53becc1c4c2d0417a9cd0ce969d4521ff00c8c71e4b1d65e4bf945da56e140434244b81e7e24ecb7a SHA512 1ba119ea3faba662e108df6fce22f242eb2b7c5ec087159ca0cb76944991b19563f744c181263343941c50547bc0c73c6437d5380df09b5029facaab80465b58 |
27 |
DIST fontconfig-2.14.0.tar.xz 1431056 BLAKE2B 880f34d33ac30158ea61e922f6635900c5b244c2eb5d259f7947a364df86ee13f6190f651471b0a28bcd3c13f19c970783517903df374839e474921611dff1ff SHA512 a5257249d031b3cd1a7b1521cd58f48d235a970020da4136a727db5407ec98e74a3776bc467d7e39f30ec664f56ff9fe39068317744a5e737a65109f7a005bfc |
28 |
|
29 |
diff --git a/media-libs/fontconfig/files/fontconfig-2.12.3-latin-update.patch b/media-libs/fontconfig/files/fontconfig-2.12.3-latin-update.patch |
30 |
deleted file mode 100644 |
31 |
index 397781e87acd..000000000000 |
32 |
--- a/media-libs/fontconfig/files/fontconfig-2.12.3-latin-update.patch |
33 |
+++ /dev/null |
34 |
@@ -1,68 +0,0 @@ |
35 |
---- fontconfig-2.12.3/conf.d/60-latin.conf |
36 |
-+++ fontconfig-2.12.3/conf.d/60-latin.conf |
37 |
-@@ -4,47 +4,50 @@ |
38 |
- <alias> |
39 |
- <family>serif</family> |
40 |
- <prefer> |
41 |
-- <family>Bitstream Vera Serif</family> |
42 |
-+ <family>Liberation Serif</family> |
43 |
- <family>DejaVu Serif</family> |
44 |
- <family>Times New Roman</family> |
45 |
-- <family>Thorndale AMT</family> |
46 |
- <family>Luxi Serif</family> |
47 |
- <family>Nimbus Roman No9 L</family> |
48 |
- <family>Nimbus Roman</family> |
49 |
- <family>Times</family> |
50 |
-+ <family>Thorndale AMT</family> |
51 |
-+ <family>Bitstream Vera Serif</family> |
52 |
- </prefer> |
53 |
- </alias> |
54 |
- <alias> |
55 |
- <family>sans-serif</family> |
56 |
- <prefer> |
57 |
-- <family>Bitstream Vera Sans</family> |
58 |
-+ <family>Liberation Sans</family> |
59 |
- <family>DejaVu Sans</family> |
60 |
-- <family>Verdana</family> |
61 |
- <family>Arial</family> |
62 |
-- <family>Albany AMT</family> |
63 |
- <family>Luxi Sans</family> |
64 |
- <family>Nimbus Sans L</family> |
65 |
- <family>Nimbus Sans</family> |
66 |
- <family>Helvetica</family> |
67 |
- <family>Lucida Sans Unicode</family> |
68 |
- <family>BPG Glaho International</family> <!-- lat,cyr,arab,geor --> |
69 |
-+ <family>Verdana</family> |
70 |
- <family>Tahoma</family> <!-- lat,cyr,greek,heb,arab,thai --> |
71 |
-+ <family>Albany AMT</family> |
72 |
-+ <family>Bitstream Vera Sans</family> |
73 |
- </prefer> |
74 |
- </alias> |
75 |
- <alias> |
76 |
- <family>monospace</family> |
77 |
- <prefer> |
78 |
-- <family>Bitstream Vera Sans Mono</family> |
79 |
-+ <family>Liberation Mono</family> |
80 |
- <family>DejaVu Sans Mono</family> |
81 |
- <family>Inconsolata</family> |
82 |
- <family>Andale Mono</family> |
83 |
- <family>Courier New</family> |
84 |
-- <family>Cumberland AMT</family> |
85 |
- <family>Luxi Mono</family> |
86 |
- <family>Nimbus Mono L</family> |
87 |
- <family>Nimbus Mono</family> |
88 |
- <family>Nimbus Mono PS</family> |
89 |
- <family>Courier</family> |
90 |
-+ <family>Cumberland AMT</family> |
91 |
-+ <family>Bitstream Vera Sans Mono</family> |
92 |
- </prefer> |
93 |
- </alias> |
94 |
- <!-- |
95 |
-@@ -65,6 +68,7 @@ |
96 |
- <alias> |
97 |
- <family>cursive</family> |
98 |
- <prefer> |
99 |
-+ <family>Comic Neue</family> |
100 |
- <family>ITC Zapf Chancery Std</family> |
101 |
- <family>Zapfino</family> |
102 |
- <family>Comic Sans MS</family> |
103 |
|
104 |
diff --git a/media-libs/fontconfig/files/fontconfig-2.13.1-proper_homedir.patch b/media-libs/fontconfig/files/fontconfig-2.13.1-proper_homedir.patch |
105 |
deleted file mode 100644 |
106 |
index 71c27f56f644..000000000000 |
107 |
--- a/media-libs/fontconfig/files/fontconfig-2.13.1-proper_homedir.patch |
108 |
+++ /dev/null |
109 |
@@ -1,313 +0,0 @@ |
110 |
-From 806fd4c2c5164d66d978b0a4c579c157e5cbe766 Mon Sep 17 00:00:00 2001 |
111 |
-From: Akira TAGOH <akira@×××××.org> |
112 |
-Date: Tue, 4 Sep 2018 09:08:37 +0000 |
113 |
-Subject: [PATCH] Fix the issue that '~' wasn't extracted to the proper homedir |
114 |
- |
115 |
-'~' in the filename was extracted to the home directory name in FcConfigFilename() though, |
116 |
-this behavior was broken by d1f48f11. this change fixes it back to the correct behavior. |
117 |
- |
118 |
-https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/110 |
119 |
---- a/src/fccfg.c |
120 |
-+++ b/src/fccfg.c |
121 |
-@@ -2207,17 +2207,19 @@ FcConfigFilename (const FcChar8 *url) |
122 |
- else |
123 |
- file = 0; |
124 |
- } |
125 |
-- |
126 |
-- path = FcConfigGetPath (); |
127 |
-- if (!path) |
128 |
-- return NULL; |
129 |
-- for (p = path; *p; p++) |
130 |
-+ else |
131 |
- { |
132 |
-- file = FcConfigFileExists (*p, url); |
133 |
-- if (file) |
134 |
-- break; |
135 |
-+ path = FcConfigGetPath (); |
136 |
-+ if (!path) |
137 |
-+ return NULL; |
138 |
-+ for (p = path; *p; p++) |
139 |
-+ { |
140 |
-+ file = FcConfigFileExists (*p, url); |
141 |
-+ if (file) |
142 |
-+ break; |
143 |
-+ } |
144 |
-+ FcConfigFreePath (path); |
145 |
- } |
146 |
-- FcConfigFreePath (path); |
147 |
- return file; |
148 |
- } |
149 |
- |
150 |
---- a/test/Makefile.am |
151 |
-+++ b/test/Makefile.am |
152 |
-@@ -91,6 +91,22 @@ test_bz106632_CFLAGS = \ |
153 |
- test_bz106632_LDADD = $(top_builddir)/src/libfontconfig.la |
154 |
- TESTS += test-bz106632 |
155 |
- |
156 |
-+if !ENABLE_SHARED |
157 |
-+check_PROGRAMS += test-issue110 |
158 |
-+test_issue110_CFLAGS = \ |
159 |
-+ -I$(top_builddir) \ |
160 |
-+ -I$(top_builddir)/src \ |
161 |
-+ -I$(top_srcdir) \ |
162 |
-+ -I$(top_srcdir)/src \ |
163 |
-+ -DHAVE_CONFIG_H \ |
164 |
-+ -DFONTCONFIG_PATH='"$(BASECONFIGDIR)"' \ |
165 |
-+ $(NULL) |
166 |
-+test_issue110_LDADD = \ |
167 |
-+ $(top_builddir)/src/libfontconfig.la \ |
168 |
-+ $(NULL) |
169 |
-+TESTS += test-issue110 |
170 |
-+endif |
171 |
-+ |
172 |
- EXTRA_DIST=run-test.sh run-test-conf.sh $(TESTDATA) out.expected-long-family-names out.expected-no-long-family-names |
173 |
- |
174 |
- CLEANFILES=out out1 out2 fonts.conf out.expected |
175 |
---- /dev/null |
176 |
-+++ b/test/test-issue110.c |
177 |
-@@ -0,0 +1,245 @@ |
178 |
-+/* |
179 |
-+ * fontconfig/test/test-issue110.c |
180 |
-+ * |
181 |
-+ * Copyright © 2000 Keith Packard |
182 |
-+ * Copyright © 2018 Akira TAGOH |
183 |
-+ * |
184 |
-+ * Permission to use, copy, modify, distribute, and sell this software and its |
185 |
-+ * documentation for any purpose is hereby granted without fee, provided that |
186 |
-+ * the above copyright notice appear in all copies and that both that |
187 |
-+ * copyright notice and this permission notice appear in supporting |
188 |
-+ * documentation, and that the name of the author(s) not be used in |
189 |
-+ * advertising or publicity pertaining to distribution of the software without |
190 |
-+ * specific, written prior permission. The authors make no |
191 |
-+ * representations about the suitability of this software for any purpose. It |
192 |
-+ * is provided "as is" without express or implied warranty. |
193 |
-+ * |
194 |
-+ * THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, |
195 |
-+ * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO |
196 |
-+ * EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR |
197 |
-+ * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, |
198 |
-+ * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER |
199 |
-+ * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
200 |
-+ * PERFORMANCE OF THIS SOFTWARE. |
201 |
-+ */ |
202 |
-+#ifdef HAVE_CONFIG_H |
203 |
-+#include "config.h" |
204 |
-+#endif |
205 |
-+#include <stdio.h> |
206 |
-+#include <stdlib.h> |
207 |
-+#include <string.h> |
208 |
-+#include <dirent.h> |
209 |
-+#include <unistd.h> |
210 |
-+#include <errno.h> |
211 |
-+#ifndef HAVE_STRUCT_DIRENT_D_TYPE |
212 |
-+#include <sys/types.h> |
213 |
-+#include <sys/stat.h> |
214 |
-+#endif |
215 |
-+#include <fontconfig/fontconfig.h> |
216 |
-+ |
217 |
-+#ifdef _WIN32 |
218 |
-+# define FC_DIR_SEPARATOR '\\' |
219 |
-+# define FC_DIR_SEPARATOR_S "\\" |
220 |
-+#else |
221 |
-+# define FC_DIR_SEPARATOR '/' |
222 |
-+# define FC_DIR_SEPARATOR_S "/" |
223 |
-+#endif |
224 |
-+ |
225 |
-+extern FcChar8 *FcConfigRealFilename (FcConfig *, FcChar8 *); |
226 |
-+ |
227 |
-+#ifdef HAVE_MKDTEMP |
228 |
-+#define fc_mkdtemp mkdtemp |
229 |
-+#else |
230 |
-+char * |
231 |
-+fc_mkdtemp (char *template) |
232 |
-+{ |
233 |
-+ if (!mktemp (template) || mkdir (template, 0700)) |
234 |
-+ return NULL; |
235 |
-+ |
236 |
-+ return template; |
237 |
-+} |
238 |
-+#endif |
239 |
-+ |
240 |
-+FcBool |
241 |
-+mkdir_p (const char *dir) |
242 |
-+{ |
243 |
-+ char *parent; |
244 |
-+ FcBool ret; |
245 |
-+ |
246 |
-+ if (strlen (dir) == 0) |
247 |
-+ return FcFalse; |
248 |
-+ parent = (char *) FcStrDirname ((const FcChar8 *) dir); |
249 |
-+ if (!parent) |
250 |
-+ return FcFalse; |
251 |
-+ if (access (parent, F_OK) == 0) |
252 |
-+ ret = mkdir (dir, 0755) == 0 && chmod (dir, 0755) == 0; |
253 |
-+ else if (access (parent, F_OK) == -1) |
254 |
-+ ret = mkdir_p (parent) && (mkdir (dir, 0755) == 0) && chmod (dir, 0755) == 0; |
255 |
-+ else |
256 |
-+ ret = FcFalse; |
257 |
-+ free (parent); |
258 |
-+ |
259 |
-+ return ret; |
260 |
-+} |
261 |
-+ |
262 |
-+FcBool |
263 |
-+unlink_dirs (const char *dir) |
264 |
-+{ |
265 |
-+ DIR *d = opendir (dir); |
266 |
-+ struct dirent *e; |
267 |
-+ size_t len = strlen (dir); |
268 |
-+ char *n = NULL; |
269 |
-+ FcBool ret = FcTrue; |
270 |
-+#ifndef HAVE_STRUCT_DIRENT_D_TYPE |
271 |
-+ struct stat statb; |
272 |
-+#endif |
273 |
-+ |
274 |
-+ if (!d) |
275 |
-+ return FcFalse; |
276 |
-+ while ((e = readdir (d)) != NULL) |
277 |
-+ { |
278 |
-+ size_t l; |
279 |
-+ |
280 |
-+ if (strcmp (e->d_name, ".") == 0 || |
281 |
-+ strcmp (e->d_name, "..") == 0) |
282 |
-+ continue; |
283 |
-+ l = strlen (e->d_name) + 1; |
284 |
-+ if (n) |
285 |
-+ free (n); |
286 |
-+ n = malloc (l + len + 1); |
287 |
-+ if (!n) |
288 |
-+ { |
289 |
-+ ret = FcFalse; |
290 |
-+ break; |
291 |
-+ } |
292 |
-+ strcpy (n, dir); |
293 |
-+ n[len] = FC_DIR_SEPARATOR; |
294 |
-+ strcpy (&n[len + 1], e->d_name); |
295 |
-+#ifdef HAVE_STRUCT_DIRENT_D_TYPE |
296 |
-+ if (e->d_type == DT_DIR) |
297 |
-+#else |
298 |
-+ if (stat (n, &statb) == -1) |
299 |
-+ { |
300 |
-+ fprintf (stderr, "E: %s\n", n); |
301 |
-+ ret = FcFalse; |
302 |
-+ break; |
303 |
-+ } |
304 |
-+ if (S_ISDIR (statb.st_mode)) |
305 |
-+#endif |
306 |
-+ { |
307 |
-+ if (!unlink_dirs (n)) |
308 |
-+ { |
309 |
-+ fprintf (stderr, "E: %s\n", n); |
310 |
-+ ret = FcFalse; |
311 |
-+ break; |
312 |
-+ } |
313 |
-+ } |
314 |
-+ else |
315 |
-+ { |
316 |
-+ if (unlink (n) == -1) |
317 |
-+ { |
318 |
-+ fprintf (stderr, "E: %s\n", n); |
319 |
-+ ret = FcFalse; |
320 |
-+ break; |
321 |
-+ } |
322 |
-+ } |
323 |
-+ } |
324 |
-+ if (n) |
325 |
-+ free (n); |
326 |
-+ closedir (d); |
327 |
-+ |
328 |
-+ if (rmdir (dir) == -1) |
329 |
-+ { |
330 |
-+ fprintf (stderr, "E: %s\n", dir); |
331 |
-+ return FcFalse; |
332 |
-+ } |
333 |
-+ |
334 |
-+ return ret; |
335 |
-+} |
336 |
-+ |
337 |
-+int |
338 |
-+main(void) |
339 |
-+{ |
340 |
-+ FcConfig *cfg = FcConfigCreate (); |
341 |
-+ char *basedir, template[512] = "/tmp/fc110-XXXXXX"; |
342 |
-+ char *sysroot, systempl[512] = "/tmp/fc110-XXXXXX"; |
343 |
-+ FcChar8 *d = NULL; |
344 |
-+ FcChar8 *ret = NULL; |
345 |
-+ FcChar8 *s = NULL; |
346 |
-+ FILE *fp; |
347 |
-+ int retval = 0; |
348 |
-+ |
349 |
-+ retval++; |
350 |
-+ basedir = fc_mkdtemp (template); |
351 |
-+ if (!basedir) |
352 |
-+ { |
353 |
-+ fprintf (stderr, "%s: %s\n", template, strerror (errno)); |
354 |
-+ goto bail; |
355 |
-+ } |
356 |
-+ retval++; |
357 |
-+ sysroot = fc_mkdtemp (systempl); |
358 |
-+ if (!sysroot) |
359 |
-+ { |
360 |
-+ fprintf (stderr, "%s: %s\n", systempl, strerror (errno)); |
361 |
-+ goto bail; |
362 |
-+ } |
363 |
-+ fprintf (stderr, "D: Creating %s\n", basedir); |
364 |
-+ mkdir_p (basedir); |
365 |
-+ setenv ("HOME", basedir, 1); |
366 |
-+ retval++; |
367 |
-+ s = FcStrBuildFilename (basedir, ".fonts.conf", NULL); |
368 |
-+ if (!s) |
369 |
-+ goto bail; |
370 |
-+ retval++; |
371 |
-+ fprintf (stderr, "D: Creating %s\n", s); |
372 |
-+ if ((fp = fopen (s, "wb")) == NULL) |
373 |
-+ goto bail; |
374 |
-+ fprintf (fp, "%s", s); |
375 |
-+ fclose (fp); |
376 |
-+ retval++; |
377 |
-+ fprintf (stderr, "D: Checking file path\n"); |
378 |
-+ ret = FcConfigRealFilename (cfg, "~/.fonts.conf"); |
379 |
-+ if (!ret) |
380 |
-+ goto bail; |
381 |
-+ retval++; |
382 |
-+ if (strcmp ((const char *) s, (const char *) ret) != 0) |
383 |
-+ goto bail; |
384 |
-+ free (ret); |
385 |
-+ free (s); |
386 |
-+ setenv ("FONTCONFIG_SYSROOT", sysroot, 1); |
387 |
-+ fprintf (stderr, "D: Creating %s\n", sysroot); |
388 |
-+ mkdir_p (sysroot); |
389 |
-+ retval++; |
390 |
-+ d = FcStrBuildFilename (sysroot, basedir, NULL); |
391 |
-+ fprintf (stderr, "D: Creating %s\n", d); |
392 |
-+ mkdir_p (d); |
393 |
-+ free (d); |
394 |
-+ s = FcStrBuildFilename (sysroot, basedir, ".fonts.conf", NULL); |
395 |
-+ if (!s) |
396 |
-+ goto bail; |
397 |
-+ retval++; |
398 |
-+ fprintf (stderr, "D: Creating %s\n", s); |
399 |
-+ if ((fp = fopen (s, "wb")) == NULL) |
400 |
-+ goto bail; |
401 |
-+ fprintf (fp, "%s", s); |
402 |
-+ fclose (fp); |
403 |
-+ retval++; |
404 |
-+ fprintf (stderr, "D: Checking file path\n"); |
405 |
-+ ret = FcConfigRealFilename (cfg, "~/.fonts.conf"); |
406 |
-+ if (!ret) |
407 |
-+ goto bail; |
408 |
-+ retval++; |
409 |
-+ if (strcmp ((const char *) s, (const char *) ret) != 0) |
410 |
-+ goto bail; |
411 |
-+ retval = 0; |
412 |
-+bail: |
413 |
-+ fprintf (stderr, "Cleaning up\n"); |
414 |
-+ unlink_dirs (basedir); |
415 |
-+ if (ret) |
416 |
-+ free (ret); |
417 |
-+ if (s) |
418 |
-+ free (s); |
419 |
-+ |
420 |
-+ return retval; |
421 |
-+} |
422 |
-+ |
423 |
|
424 |
diff --git a/media-libs/fontconfig/files/fontconfig-2.13.1-revert_delete_.uuid_for_empty_directory.patch b/media-libs/fontconfig/files/fontconfig-2.13.1-revert_delete_.uuid_for_empty_directory.patch |
425 |
deleted file mode 100644 |
426 |
index cd66082eedd8..000000000000 |
427 |
--- a/media-libs/fontconfig/files/fontconfig-2.13.1-revert_delete_.uuid_for_empty_directory.patch |
428 |
+++ /dev/null |
429 |
@@ -1,43 +0,0 @@ |
430 |
-https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/107 |
431 |
- |
432 |
-Reversion of part of: |
433 |
-https://gitlab.freedesktop.org/fontconfig/fontconfig/commit/f5dd8512bdf9fd8e01c30ae36f593758b29385cf |
434 |
- |
435 |
---- /src/fcdir.c |
436 |
-+++ /src/fcdir.c |
437 |
-@@ -421,13 +421,6 @@ |
438 |
- /* Not using existing cache file, construct new cache */ |
439 |
- if (!cache) |
440 |
- cache = FcDirCacheScan (dir, config); |
441 |
-- if (cache) |
442 |
-- { |
443 |
-- FcFontSet *fs = FcCacheSet (cache); |
444 |
-- |
445 |
-- if (cache->dirs_count == 0 && (!fs || fs->nfont == 0)) |
446 |
-- FcDirCacheDeleteUUID (dir, config); |
447 |
-- } |
448 |
- |
449 |
- return cache; |
450 |
- } |
451 |
---- /test/run-test.sh |
452 |
-+++ /test/run-test.sh |
453 |
-@@ -239,19 +239,4 @@ |
454 |
- |
455 |
- rm -rf $MyPWD/sysroot |
456 |
- |
457 |
--dotest "deleting .uuid file on empty dir" |
458 |
--prep |
459 |
--cp $FONT1 $FONT2 $FONTDIR |
460 |
--$FCCACHE $FONTDIR |
461 |
--sleep 1 |
462 |
--rm -f $FONTDIR/*pcf |
463 |
--$FCCACHE $FONTDIR |
464 |
--rmdir $FONTDIR > /dev/null 2>&1 |
465 |
--if [ $? != 0 ]; then |
466 |
-- echo "*** Test failed: $TEST" |
467 |
-- echo "$FONTDIR isn't empty" |
468 |
-- ls -al $FONTDIR |
469 |
-- exit 1 |
470 |
--fi |
471 |
-- |
472 |
- rm -rf $FONTDIR $CACHEFILE $CACHEDIR $FONTCONFIG_FILE out |
473 |
|
474 |
diff --git a/media-libs/fontconfig/files/fontconfig-2.13.1-static_build.patch b/media-libs/fontconfig/files/fontconfig-2.13.1-static_build.patch |
475 |
deleted file mode 100644 |
476 |
index d78317da0b3c..000000000000 |
477 |
--- a/media-libs/fontconfig/files/fontconfig-2.13.1-static_build.patch |
478 |
+++ /dev/null |
479 |
@@ -1,91 +0,0 @@ |
480 |
-From 8208f99fa1676c42bfd8d74de3e9dac5366c150c Mon Sep 17 00:00:00 2001 |
481 |
-From: Akira TAGOH <akira@×××××.org> |
482 |
-Date: Mon, 3 Sep 2018 04:56:16 +0000 |
483 |
-Subject: [PATCH] Fix the build issue with --enable-static |
484 |
- |
485 |
-Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/109 |
486 |
---- a/fontconfig/fontconfig.h |
487 |
-+++ b/fontconfig/fontconfig.h |
488 |
-@@ -1076,6 +1076,10 @@ FcUtf16Len (const FcChar8 *string, |
489 |
- int *nchar, |
490 |
- int *wchar); |
491 |
- |
492 |
-+FcPublic FcChar8 * |
493 |
-+FcStrBuildFilename (const FcChar8 *path, |
494 |
-+ ...); |
495 |
-+ |
496 |
- FcPublic FcChar8 * |
497 |
- FcStrDirname (const FcChar8 *file); |
498 |
- |
499 |
---- a/src/fcint.h |
500 |
-+++ b/src/fcint.h |
501 |
-@@ -1282,10 +1282,6 @@ FcStrUsesHome (const FcChar8 *s); |
502 |
- FcPrivate FcBool |
503 |
- FcStrIsAbsoluteFilename (const FcChar8 *s); |
504 |
- |
505 |
--FcPrivate FcChar8 * |
506 |
--FcStrBuildFilename (const FcChar8 *path, |
507 |
-- ...); |
508 |
-- |
509 |
- FcPrivate FcChar8 * |
510 |
- FcStrLastSlash (const FcChar8 *path); |
511 |
- |
512 |
---- a/test/test-bz106632.c |
513 |
-+++ b/test/test-bz106632.c |
514 |
-@@ -25,25 +25,26 @@ |
515 |
- #ifdef HAVE_CONFIG_H |
516 |
- #include "config.h" |
517 |
- #endif |
518 |
-+#include <stdio.h> |
519 |
- #include <stdlib.h> |
520 |
-+#include <string.h> |
521 |
- #include <dirent.h> |
522 |
-+#include <unistd.h> |
523 |
-+#include <errno.h> |
524 |
- #ifndef HAVE_STRUCT_DIRENT_D_TYPE |
525 |
- #include <sys/types.h> |
526 |
- #include <sys/stat.h> |
527 |
--#include <unistd.h> |
528 |
- #endif |
529 |
--#include "fcstr.c" |
530 |
--#undef FcConfigBuildFonts |
531 |
--#undef FcConfigCreate |
532 |
--#undef FcConfigGetCurrent |
533 |
--#undef FcConfigParseAndLoadFromMemory |
534 |
--#undef FcConfigUptoDate |
535 |
--#undef FcFontList |
536 |
--#undef FcInitReinitialize |
537 |
--#undef FcPatternCreate |
538 |
--#undef FcPatternDestroy |
539 |
- #include <fontconfig/fontconfig.h> |
540 |
- |
541 |
-+#ifdef _WIN32 |
542 |
-+# define FC_DIR_SEPARATOR '\\' |
543 |
-+# define FC_DIR_SEPARATOR_S "\\" |
544 |
-+#else |
545 |
-+# define FC_DIR_SEPARATOR '/' |
546 |
-+# define FC_DIR_SEPARATOR_S "/" |
547 |
-+#endif |
548 |
-+ |
549 |
- #ifdef HAVE_MKDTEMP |
550 |
- #define fc_mkdtemp mkdtemp |
551 |
- #else |
552 |
-@@ -154,18 +155,6 @@ unlink_dirs (const char *dir) |
553 |
- return ret; |
554 |
- } |
555 |
- |
556 |
--FcChar8 * |
557 |
--FcLangNormalize (const FcChar8 *lang) |
558 |
--{ |
559 |
-- return NULL; |
560 |
--} |
561 |
-- |
562 |
--FcChar8 * |
563 |
--FcConfigHome (void) |
564 |
--{ |
565 |
-- return NULL; |
566 |
--} |
567 |
-- |
568 |
- int |
569 |
- main (void) |
570 |
- { |
571 |
|
572 |
diff --git a/media-libs/fontconfig/fontconfig-2.13.1-r2.ebuild b/media-libs/fontconfig/fontconfig-2.13.1-r2.ebuild |
573 |
deleted file mode 100644 |
574 |
index b00c1b232b14..000000000000 |
575 |
--- a/media-libs/fontconfig/fontconfig-2.13.1-r2.ebuild |
576 |
+++ /dev/null |
577 |
@@ -1,182 +0,0 @@ |
578 |
-# Copyright 1999-2022 Gentoo Authors |
579 |
-# Distributed under the terms of the GNU General Public License v2 |
580 |
- |
581 |
-EAPI=7 |
582 |
- |
583 |
-inherit autotools multilib-minimal readme.gentoo-r1 |
584 |
- |
585 |
-DESCRIPTION="A library for configuring and customizing font access" |
586 |
-HOMEPAGE="https://fontconfig.org/" |
587 |
-SRC_URI="https://fontconfig.org/release/${P}.tar.bz2" |
588 |
- |
589 |
-LICENSE="MIT" |
590 |
-SLOT="1.0" |
591 |
-[[ $(ver_cut 3) -ge 90 ]] || \ |
592 |
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt" |
593 |
-IUSE="doc static-libs" |
594 |
- |
595 |
-# Test test-bz106632 is known to be broken, see bug #751232 |
596 |
-# and would require several backports. It will be fixed in |
597 |
-# next version. |
598 |
-# check-missing-doc is known to be broken, see bug #733608 |
599 |
-# because fontconfig-2.13.1-static_build.patch introduces a |
600 |
-# function FcStrBuildFilename which is lacking documentation. |
601 |
-# However, backporting isn't worth it. Will be fixed in |
602 |
-# next version. |
603 |
-RESTRICT="test" |
604 |
- |
605 |
-BDEPEND="dev-util/gperf |
606 |
- >=sys-devel/gettext-0.19.8 |
607 |
- virtual/pkgconfig |
608 |
- doc? ( |
609 |
- =app-text/docbook-sgml-dtd-3.1* |
610 |
- app-text/docbook-sgml-utils[jadetex] |
611 |
- )" |
612 |
-# Purposefully dropped the xml USE flag and libxml2 support. Expat is the |
613 |
-# default and used by every distro. See bug #283191. |
614 |
-RDEPEND=">=dev-libs/expat-2.1.0-r3[${MULTILIB_USEDEP}] |
615 |
- >=media-libs/freetype-2.9[${MULTILIB_USEDEP}] |
616 |
- !elibc_Darwin? ( !elibc_SunOS? ( sys-apps/util-linux[${MULTILIB_USEDEP}] ) ) |
617 |
- elibc_Darwin? ( sys-libs/native-uuid ) |
618 |
- elibc_SunOS? ( sys-libs/libuuid ) |
619 |
- virtual/libintl[${MULTILIB_USEDEP}]" |
620 |
-DEPEND="${RDEPEND}" |
621 |
-PDEPEND="!x86-winnt? ( app-eselect/eselect-fontconfig ) |
622 |
- virtual/ttf-fonts" |
623 |
- |
624 |
-PATCHES=( |
625 |
- "${FILESDIR}"/${PN}-2.10.2-docbook.patch # 310157 |
626 |
- "${FILESDIR}"/${PN}-2.12.3-latin-update.patch # 130466 + make liberation default |
627 |
- "${FILESDIR}"/${P}-revert_delete_.uuid_for_empty_directory.patch # 666418 |
628 |
- |
629 |
- # Patches from upstream (can usually be removed with next version bump) |
630 |
- "${FILESDIR}"/${P}-static_build.patch |
631 |
- "${FILESDIR}"/${P}-proper_homedir.patch |
632 |
-) |
633 |
- |
634 |
-pkg_setup() { |
635 |
- DOC_CONTENTS="Please make fontconfig configuration changes using |
636 |
- \`eselect fontconfig\`. Any changes made to /etc/fonts/fonts.conf will be |
637 |
- overwritten. If you need to reset your configuration to upstream defaults, |
638 |
- delete the directory ${EROOT}/etc/fonts/conf.d/ and re-emerge fontconfig." |
639 |
-} |
640 |
- |
641 |
-src_prepare() { |
642 |
- default |
643 |
- eautoreconf |
644 |
-} |
645 |
- |
646 |
-multilib_src_configure() { |
647 |
- local addfonts |
648 |
- # harvest some font locations, such that users can benefit from the |
649 |
- # host OS's installed fonts |
650 |
- case ${CHOST} in |
651 |
- *-darwin*) |
652 |
- addfonts=",/Library/Fonts,/System/Library/Fonts" |
653 |
- ;; |
654 |
- *-solaris*) |
655 |
- [[ -d /usr/X/lib/X11/fonts/TrueType ]] && \ |
656 |
- addfonts=",/usr/X/lib/X11/fonts/TrueType" |
657 |
- [[ -d /usr/X/lib/X11/fonts/Type1 ]] && \ |
658 |
- addfonts="${addfonts},/usr/X/lib/X11/fonts/Type1" |
659 |
- ;; |
660 |
- *-linux-gnu) |
661 |
- use prefix && [[ -d /usr/share/fonts ]] && \ |
662 |
- addfonts=",/usr/share/fonts" |
663 |
- ;; |
664 |
- esac |
665 |
- |
666 |
- local myeconfargs=( |
667 |
- $(use_enable doc docbook) |
668 |
- $(use_enable static-libs static) |
669 |
- --enable-docs |
670 |
- --localstatedir="${EPREFIX}"/var |
671 |
- --with-default-fonts="${EPREFIX}"/usr/share/fonts |
672 |
- --with-add-fonts="${EPREFIX}/usr/local/share/fonts${addfonts}" |
673 |
- --with-templatedir="${EPREFIX}"/etc/fonts/conf.avail |
674 |
- ) |
675 |
- |
676 |
- ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
677 |
-} |
678 |
- |
679 |
-multilib_src_install() { |
680 |
- MULTILIB_CHOST_TOOLS=( /usr/bin/fc-cache$(get_exeext) ) |
681 |
- |
682 |
- default |
683 |
- |
684 |
- # avoid calling this multiple times, bug #459210 |
685 |
- if multilib_is_native_abi; then |
686 |
- # stuff installed from build-dir |
687 |
- emake -C doc DESTDIR="${D}" install-man |
688 |
- |
689 |
- insinto /etc/fonts |
690 |
- doins fonts.conf |
691 |
- fi |
692 |
-} |
693 |
- |
694 |
-multilib_src_install_all() { |
695 |
- einstalldocs |
696 |
- find "${ED}" -name "*.la" -delete || die |
697 |
- |
698 |
- # fc-lang directory contains language coverage datafiles |
699 |
- # which are needed to test the coverage of fonts. |
700 |
- insinto /usr/share/fc-lang |
701 |
- doins fc-lang/*.orth |
702 |
- |
703 |
- dodoc doc/fontconfig-user.{txt,pdf} |
704 |
- |
705 |
- if [[ -e ${ED}/usr/share/doc/fontconfig/ ]]; then |
706 |
- mv "${ED}"/usr/share/doc/fontconfig/* "${ED}"/usr/share/doc/${P} || die |
707 |
- rm -rf "${ED}"/usr/share/doc/fontconfig |
708 |
- fi |
709 |
- |
710 |
- # Changes should be made to /etc/fonts/local.conf, and as we had |
711 |
- # too much problems with broken fonts.conf we force update it ... |
712 |
- echo 'CONFIG_PROTECT_MASK="/etc/fonts/fonts.conf"' > "${T}"/37fontconfig |
713 |
- doenvd "${T}"/37fontconfig |
714 |
- |
715 |
- # As of fontconfig 2.7, everything sticks their noses in here. |
716 |
- dodir /etc/sandbox.d |
717 |
- echo 'SANDBOX_PREDICT="/var/cache/fontconfig"' > "${ED}"/etc/sandbox.d/37fontconfig |
718 |
- |
719 |
- readme.gentoo_create_doc |
720 |
- |
721 |
- keepdir /var/cache/${PN} |
722 |
-} |
723 |
- |
724 |
-pkg_preinst() { |
725 |
- # Bug #193476 |
726 |
- # /etc/fonts/conf.d/ contains symlinks to ../conf.avail/ to include various |
727 |
- # config files. If we install as-is, we'll blow away user settings. |
728 |
- ebegin "Syncing fontconfig configuration to system" |
729 |
- if [[ -e ${EROOT}/etc/fonts/conf.d ]]; then |
730 |
- for file in "${EROOT}"/etc/fonts/conf.avail/*; do |
731 |
- f=${file##*/} |
732 |
- if [[ -L ${EROOT}/etc/fonts/conf.d/${f} ]]; then |
733 |
- [[ -f ${ED}/etc/fonts/conf.avail/${f} ]] \ |
734 |
- && ln -sf ../conf.avail/"${f}" "${ED}"/etc/fonts/conf.d/ &>/dev/null |
735 |
- else |
736 |
- [[ -f ${ED}/etc/fonts/conf.avail/${f} ]] \ |
737 |
- && rm "${ED}"/etc/fonts/conf.d/"${f}" &>/dev/null |
738 |
- fi |
739 |
- done |
740 |
- fi |
741 |
- eend $? |
742 |
-} |
743 |
- |
744 |
-pkg_postinst() { |
745 |
- einfo "Cleaning broken symlinks in ${EROOT}/etc/fonts/conf.d/" |
746 |
- find -L "${EROOT}"/etc/fonts/conf.d/ -type l -delete |
747 |
- |
748 |
- readme.gentoo_print_elog |
749 |
- |
750 |
- if [[ -z ${ROOT} ]]; then |
751 |
- multilib_pkg_postinst() { |
752 |
- ebegin "Creating global font cache for ${ABI}" |
753 |
- "${EPREFIX}"/usr/bin/${CHOST}-fc-cache -srf |
754 |
- eend $? |
755 |
- } |
756 |
- |
757 |
- multilib_parallel_foreach_abi multilib_pkg_postinst |
758 |
- fi |
759 |
-} |