1 |
commit: 9951345352e2afdb9832c31657a38a19b00a9b52 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 26 02:23:41 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 26 02:47:04 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99513453 |
7 |
|
8 |
media-gfx/inkscape: fixup X11 patch |
9 |
|
10 |
Bug: https://github.com/gentoo/gentoo/pull/20181 |
11 |
Closes: https://bugs.gentoo.org/768663 |
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
...patch => inkscape-1.1.2-automagic-libX11.patch} | 41 +++++++--------------- |
15 |
media-gfx/inkscape/inkscape-1.1.2-r2.ebuild | 2 +- |
16 |
2 files changed, 14 insertions(+), 29 deletions(-) |
17 |
|
18 |
diff --git a/media-gfx/inkscape/files/inkscape-1.0.2-automagic-libX11.patch b/media-gfx/inkscape/files/inkscape-1.1.2-automagic-libX11.patch |
19 |
similarity index 78% |
20 |
rename from media-gfx/inkscape/files/inkscape-1.0.2-automagic-libX11.patch |
21 |
rename to media-gfx/inkscape/files/inkscape-1.1.2-automagic-libX11.patch |
22 |
index b8f93642088d..fe104415fb89 100644 |
23 |
--- a/media-gfx/inkscape/files/inkscape-1.0.2-automagic-libX11.patch |
24 |
+++ b/media-gfx/inkscape/files/inkscape-1.1.2-automagic-libX11.patch |
25 |
@@ -5,45 +5,35 @@ Subject: [PATCH] CMake: Fix automagic dependency on X11 |
26 |
|
27 |
Related: https://bugs.gentoo.org/768663 |
28 |
Related: https://github.com/gentoo/gentoo/pull/20181 |
29 |
---- |
30 |
- CMakeLists.txt | 3 +++ |
31 |
- CMakeScripts/DefineDependsandFlags.cmake | 13 +++++++---- |
32 |
- src/ege-color-prof-tracker.cpp | 28 ++++++++++++------------ |
33 |
- 3 files changed, 26 insertions(+), 18 deletions(-) |
34 |
- |
35 |
-diff --git a/CMakeLists.txt b/CMakeLists.txt |
36 |
-index c5cb3f7fbd..2a04d86fbf 100644 |
37 |
--- a/CMakeLists.txt |
38 |
+++ b/CMakeLists.txt |
39 |
-@@ -36,6 +36,7 @@ project(inkscape) |
40 |
- set(CMAKE_INSTALL_DEFAULT_COMPONENT_NAME inkscape) # needs to be before any install() commands |
41 |
+@@ -36,6 +36,7 @@ set(CMAKE_INSTALL_DEFAULT_COMPONENT_NAME inkscape) # needs to be before any inst |
42 |
|
43 |
+ include(GNUInstallDirs) # for the CMAKE_INSTALL_LIBDIR variable |
44 |
include(CMakeScripts/ConfigPaths.cmake) |
45 |
+include(CMakeDependentOption) |
46 |
|
47 |
set(PROJECT_NAME inkscape) |
48 |
|
49 |
-@@ -127,6 +128,7 @@ option(WITH_LIBWPG "Compile with support of libwpg for WordPerfect Graphics" ON) |
50 |
+@@ -126,6 +127,7 @@ option(WITH_GSPELL "Compile with support of gspell" ON) |
51 |
option(WITH_NLS "Compile with Native Language Support (using gettext)" ON) |
52 |
option(WITH_JEMALLOC "Compile with JEMALLOC support" OFF) |
53 |
option(WITH_ASAN "Compile with Clang's AddressSanitizer (for debugging purposes)" OFF) |
54 |
+cmake_dependent_option(WITH_X11 "Compile with X11 support" ON "UNIX; NOT APPLE" OFF) |
55 |
+ option(WITH_INTERNAL_2GEOM "Prefer internal copy of lib2geom" OFF) |
56 |
|
57 |
option(WITH_FUZZ "Compile for fuzzing purpose (use 'make fuzz' only)" OFF) |
58 |
- mark_as_advanced(WITH_FUZZ) |
59 |
-@@ -284,6 +286,7 @@ message("WITH_LIBWPG: ${WITH_LIBWPG}") |
60 |
+@@ -285,6 +287,7 @@ message("WITH_LIBWPG: ${WITH_LIBWPG}") |
61 |
message("WITH_NLS: ${WITH_NLS}") |
62 |
message("WITH_OPENMP: ${WITH_OPENMP}") |
63 |
message("WITH_JEMALLOC: ${WITH_JEMALLOC}") |
64 |
+message("WITH_X11: ${WITH_X11}") |
65 |
+ message("WITH_INTERNAL_2GEOM: ${WITH_INTERNAL_2GEOM}") |
66 |
|
67 |
message("WITH_PROFILING: ${WITH_PROFILING}") |
68 |
- message("BUILD_TESTING: ${BUILD_TESTING}") |
69 |
-diff --git a/CMakeScripts/DefineDependsandFlags.cmake b/CMakeScripts/DefineDependsandFlags.cmake |
70 |
-index 1b5ed0d349..ef3f321977 100644 |
71 |
--- a/CMakeScripts/DefineDependsandFlags.cmake |
72 |
+++ b/CMakeScripts/DefineDependsandFlags.cmake |
73 |
-@@ -384,12 +384,17 @@ sanitize_ldflags_for_libs(SIGC++_LDFLAGS) |
74 |
+@@ -403,12 +403,17 @@ sanitize_ldflags_for_libs(SIGC++_LDFLAGS) |
75 |
list(APPEND INKSCAPE_LIBS ${SIGC++_LDFLAGS}) |
76 |
list(APPEND INKSCAPE_CXX_FLAGS ${SIGC++_CFLAGS_OTHER}) |
77 |
|
78 |
@@ -65,8 +55,6 @@ index 1b5ed0d349..ef3f321977 100644 |
79 |
|
80 |
# end Dependencies |
81 |
|
82 |
-diff --git a/src/ege-color-prof-tracker.cpp b/src/ege-color-prof-tracker.cpp |
83 |
-index 0b118f1a57..6fb721c2f3 100644 |
84 |
--- a/src/ege-color-prof-tracker.cpp |
85 |
+++ b/src/ege-color-prof-tracker.cpp |
86 |
@@ -46,11 +46,11 @@ |
87 |
@@ -83,7 +71,7 @@ index 0b118f1a57..6fb721c2f3 100644 |
88 |
|
89 |
#include "ege-color-prof-tracker.h" |
90 |
#include "helper/sp-marshal.h" |
91 |
-@@ -68,24 +68,24 @@ static void ege_color_prof_tracker_set_property( GObject* obj, guint propId, con |
92 |
+@@ -69,24 +69,24 @@ static void ege_color_prof_tracker_dispose(GObject *); |
93 |
|
94 |
class ScreenTrack { |
95 |
public: |
96 |
@@ -112,7 +100,7 @@ index 0b118f1a57..6fb721c2f3 100644 |
97 |
|
98 |
static guint signals[LAST_SIGNAL] = {0}; |
99 |
|
100 |
-@@ -296,10 +296,10 @@ void track_screen( GdkScreen* screen, EgeColorProfTracker* tracker ) |
101 |
+@@ -323,10 +323,10 @@ void track_screen( GdkScreen* screen, EgeColorProfTracker* tracker ) |
102 |
|
103 |
int numMonitors = gdk_display_get_n_monitors(display); |
104 |
|
105 |
@@ -125,7 +113,7 @@ index 0b118f1a57..6fb721c2f3 100644 |
106 |
tracked_screen->trackers= new std::vector<EgeColorProfTracker *>; |
107 |
tracked_screen->trackers->push_back(tracker ); |
108 |
tracked_screen->profiles = g_ptr_array_new(); |
109 |
-@@ -309,14 +309,14 @@ void track_screen( GdkScreen* screen, EgeColorProfTracker* tracker ) |
110 |
+@@ -336,14 +336,14 @@ void track_screen( GdkScreen* screen, EgeColorProfTracker* tracker ) |
111 |
|
112 |
g_signal_connect( G_OBJECT(screen), "size-changed", G_CALLBACK( screen_size_changed_cb ), tracker ); |
113 |
|
114 |
@@ -142,7 +130,7 @@ index 0b118f1a57..6fb721c2f3 100644 |
115 |
} |
116 |
} |
117 |
|
118 |
-@@ -408,13 +408,13 @@ void screen_size_changed_cb(GdkScreen* screen, gpointer user_data) |
119 |
+@@ -411,13 +411,13 @@ void screen_size_changed_cb(GdkScreen* screen, gpointer user_data) |
120 |
if ( numMonitors > (gint)tracked_screen->profiles->len ) { |
121 |
for ( guint i = tracked_screen->profiles->len; i < (guint)numMonitors; i++ ) { |
122 |
g_ptr_array_add( tracked_screen->profiles, nullptr ); |
123 |
@@ -158,7 +146,7 @@ index 0b118f1a57..6fb721c2f3 100644 |
124 |
} |
125 |
} else if ( numMonitors < (gint)tracked_screen->profiles->len ) { |
126 |
/* g_message("The count of monitors decreased, remove some"); */ |
127 |
-@@ -422,7 +422,7 @@ void screen_size_changed_cb(GdkScreen* screen, gpointer user_data) |
128 |
+@@ -425,7 +425,7 @@ void screen_size_changed_cb(GdkScreen* screen, gpointer user_data) |
129 |
} |
130 |
} |
131 |
|
132 |
@@ -167,7 +155,7 @@ index 0b118f1a57..6fb721c2f3 100644 |
133 |
GdkFilterReturn x11_win_filter(GdkXEvent *xevent, |
134 |
GdkEvent *event, |
135 |
gpointer data) |
136 |
-@@ -615,7 +615,7 @@ static void set_profile( guint monitor, const guint8* data, guint len ) |
137 |
+@@ -618,7 +618,7 @@ static void set_profile( guint monitor, const guint8* data, guint len ) |
138 |
} |
139 |
} |
140 |
} |
141 |
@@ -176,6 +164,3 @@ index 0b118f1a57..6fb721c2f3 100644 |
142 |
/* |
143 |
Local Variables: |
144 |
mode:c++ |
145 |
--- |
146 |
-2.26.3 |
147 |
- |
148 |
|
149 |
diff --git a/media-gfx/inkscape/inkscape-1.1.2-r2.ebuild b/media-gfx/inkscape/inkscape-1.1.2-r2.ebuild |
150 |
index bbf39788284b..3d6f15bd5aa9 100644 |
151 |
--- a/media-gfx/inkscape/inkscape-1.1.2-r2.ebuild |
152 |
+++ b/media-gfx/inkscape/inkscape-1.1.2-r2.ebuild |
153 |
@@ -110,7 +110,7 @@ S="${WORKDIR}/${MY_P}" |
154 |
PATCHES=( |
155 |
"${FILESDIR}/${PN}-1.1.2-r1-poppler-22.03.0.patch" # bug 835424 |
156 |
"${FILESDIR}/${PN}-1.1.2-r1-poppler-22.04.0.patch" # bug 835661 / bug 843275 |
157 |
- "${FILESDIR}/inkscape-1.0.2-automagic-libX11.patch" # bug 768663 |
158 |
+ "${FILESDIR}/${PN}-1.1.2-automagic-libX11.patch" # bug 768663 |
159 |
) |
160 |
|
161 |
pkg_pretend() { |