1 |
commit: cc40eb6f345c1193e853cb752bc8b727d6602e53 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Nov 4 05:09:18 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Nov 4 05:09:18 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc40eb6f |
7 |
|
8 |
app-text/dvisvgm: fix configure w/ clang 16 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
...{dvisvgm-2.14.ebuild => dvisvgm-2.14-r1.ebuild} | 12 +++++++++++- |
13 |
.../files/dvisvgm-2.14-configure-clang16.patch | 22 ++++++++++++++++++++++ |
14 |
2 files changed, 33 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/app-text/dvisvgm/dvisvgm-2.14.ebuild b/app-text/dvisvgm/dvisvgm-2.14-r1.ebuild |
17 |
similarity index 84% |
18 |
rename from app-text/dvisvgm/dvisvgm-2.14.ebuild |
19 |
rename to app-text/dvisvgm/dvisvgm-2.14-r1.ebuild |
20 |
index 7a3027f6d6e0..7c440a044d8a 100644 |
21 |
--- a/app-text/dvisvgm/dvisvgm-2.14.ebuild |
22 |
+++ b/app-text/dvisvgm/dvisvgm-2.14-r1.ebuild |
23 |
@@ -3,6 +3,8 @@ |
24 |
|
25 |
EAPI=8 |
26 |
|
27 |
+inherit autotools |
28 |
+ |
29 |
DESCRIPTION="Converts DVI files to SVG" |
30 |
HOMEPAGE="https://dvisvgm.de/" |
31 |
SRC_URI="https://github.com/mgieseki/dvisvgm/releases/download/${PV}/${P}.tar.gz" |
32 |
@@ -43,9 +45,17 @@ BDEPEND=" |
33 |
|
34 |
PATCHES=( |
35 |
"${FILESDIR}"/${P}-ghostscript.patch |
36 |
- "${FILESDIR}"/${PN}-2.14-Add-missing-cstdint-includes-for-GCC-13.patch |
37 |
+ "${FILESDIR}"/${P}-Add-missing-cstdint-includes-for-GCC-13.patch |
38 |
+ "${FILESDIR}"/${PN}-2.14-configure-clang16.patch |
39 |
) |
40 |
|
41 |
+src_prepare() { |
42 |
+ default |
43 |
+ |
44 |
+ # Drop once configure patch merged for clang 16 |
45 |
+ eautoreconf |
46 |
+} |
47 |
+ |
48 |
src_configure() { |
49 |
local myargs=( |
50 |
--without-ttfautohint |
51 |
|
52 |
diff --git a/app-text/dvisvgm/files/dvisvgm-2.14-configure-clang16.patch b/app-text/dvisvgm/files/dvisvgm-2.14-configure-clang16.patch |
53 |
new file mode 100644 |
54 |
index 000000000000..6fe679f551d1 |
55 |
--- /dev/null |
56 |
+++ b/app-text/dvisvgm/files/dvisvgm-2.14-configure-clang16.patch |
57 |
@@ -0,0 +1,22 @@ |
58 |
+https://github.com/mgieseki/dvisvgm/pull/200 |
59 |
+ |
60 |
+From e3cfc0976ec1f5bbcd389c318eabc2a783990de0 Mon Sep 17 00:00:00 2001 |
61 |
+From: Sam James <sam@g.o> |
62 |
+Date: Fri, 4 Nov 2022 05:07:09 +0000 |
63 |
+Subject: [PATCH] configure.ac: fix -Wimplicit-function-declaration |
64 |
+ |
65 |
+Clang 16 makes -Wimplicit-function-declaration an error by default. We |
66 |
+need to include <stdlib.h> for exit(). |
67 |
+ |
68 |
+Signed-off-by: Sam James <sam@g.o> |
69 |
+--- a/configure.ac |
70 |
++++ b/configure.ac |
71 |
+@@ -55,6 +55,7 @@ AC_CHECK_LIB([kpathsea], [kpse_find_file],, |
72 |
+ |
73 |
+ AC_MSG_CHECKING([kpathsea version]) |
74 |
+ AC_RUN_IFELSE([AC_LANG_SOURCE([#include <stdio.h> |
75 |
++ #include <stdlib.h> |
76 |
+ #include <kpathsea/kpathsea.h> |
77 |
+ int main() { |
78 |
+ FILE *f; |
79 |
+ |