Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-qt/qtwebkit/files/, dev-qt/qtwebkit/
Date: Thu, 15 Nov 2018 23:12:59
Message-Id: 1542323534.f85385e4bf45d1e5af44a1b494c914a9f2020887.asturm@gentoo
1 commit: f85385e4bf45d1e5af44a1b494c914a9f2020887
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 14 23:56:54 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 15 23:12:14 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f85385e4
7
8 dev-qt/qtwebkit: Fix pkgconfig
9
10 Package-Manager: Portage-2.3.51, Repoman-2.3.12
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 ...0180120-cmake-fix-pkgconfig_deps-spelling.patch | 97 ++++++++++++++++++++++
14 ...twebkit-5.212.0_pre20180120-fix-pkgconfig.patch | 29 +++++++
15 .../qtwebkit/qtwebkit-5.212.0_pre20180120.ebuild | 6 +-
16 3 files changed, 131 insertions(+), 1 deletion(-)
17
18 diff --git a/dev-qt/qtwebkit/files/qtwebkit-5.212.0_pre20180120-cmake-fix-pkgconfig_deps-spelling.patch b/dev-qt/qtwebkit/files/qtwebkit-5.212.0_pre20180120-cmake-fix-pkgconfig_deps-spelling.patch
19 new file mode 100644
20 index 00000000000..a460cec609b
21 --- /dev/null
22 +++ b/dev-qt/qtwebkit/files/qtwebkit-5.212.0_pre20180120-cmake-fix-pkgconfig_deps-spelling.patch
23 @@ -0,0 +1,97 @@
24 +From 326604b27878566d581ea8c1991abd280453a75b Mon Sep 17 00:00:00 2001
25 +From: Andrew Webster <awebster@××××.com>
26 +Date: Tue, 20 Mar 2018 09:08:00 -0400
27 +Subject: [PATCH] [cmake] Make spelling for PKGCONFIG_DEPS consistent
28 +
29 +It was referenced as PKGCONGIG_DEPS and PKGCONFIG_DEPS which left
30 +Qt5WebKitWidgets with empty dependencies. Correcting to
31 +PKGCONFIG_DEPS gives it the proper dependencies.
32 +
33 +Qt5WebKit was already working, but the spelling has also been
34 +corrected to avoid confusion.
35 +---
36 + Source/WebKit/PlatformQt.cmake | 14 +++++++-------
37 + 1 file changed, 7 insertions(+), 7 deletions(-)
38 +
39 +diff --git a/Source/WebKit/PlatformQt.cmake b/Source/WebKit/PlatformQt.cmake
40 +index 28976b611cd8..de3eabab1157 100644
41 +--- a/Source/WebKit/PlatformQt.cmake
42 ++++ b/Source/WebKit/PlatformQt.cmake
43 +@@ -427,7 +427,7 @@ install(
44 + COMPONENT Data
45 + )
46 +
47 +-set(WEBKIT_PKGCONGIG_DEPS "Qt5Core Qt5Gui Qt5Network")
48 ++set(WEBKIT_PKGCONFIG_DEPS "Qt5Core Qt5Gui Qt5Network")
49 + set(WEBKIT_PRI_DEPS "core gui network")
50 + set(WEBKIT_PRI_EXTRA_LIBS "")
51 + set(WEBKIT_PRI_RUNTIME_DEPS "core_private gui_private")
52 +@@ -448,11 +448,11 @@ if (USE_MEDIA_FOUNDATION)
53 + set(WEBKIT_PRI_EXTRA_LIBS "-lmfuuid -lstrmiids ${WEBKIT_PRI_EXTRA_LIBS}")
54 + endif ()
55 + if (USE_QT_MULTIMEDIA)
56 +- set(WEBKIT_PKGCONGIG_DEPS "${WEBKIT_PKGCONGIG_DEPS} Qt5Multimedia")
57 ++ set(WEBKIT_PKGCONFIG_DEPS "${WEBKIT_PKGCONFIG_DEPS} Qt5Multimedia")
58 + set(WEBKIT_PRI_RUNTIME_DEPS "multimedia ${WEBKIT_PRI_RUNTIME_DEPS}")
59 + endif ()
60 +
61 +-set(WEBKITWIDGETS_PKGCONGIG_DEPS "${WEBKIT_PKGCONGIG_DEPS} Qt5Widgets Qt5WebKit")
62 ++set(WEBKITWIDGETS_PKGCONFIG_DEPS "${WEBKIT_PKGCONGIG_DEPS} Qt5Widgets Qt5WebKit")
63 + set(WEBKITWIDGETS_PRI_DEPS "${WEBKIT_PRI_DEPS} widgets webkit")
64 + set(WEBKITWIDGETS_PRI_RUNTIME_DEPS "${WEBKIT_PRI_RUNTIME_DEPS} widgets_private")
65 +
66 +@@ -465,12 +465,12 @@ if (ENABLE_PRINT_SUPPORT)
67 + endif ()
68 +
69 + if (USE_QT_MULTIMEDIA)
70 +- set(WEBKITWIDGETS_PKGCONGIG_DEPS "${WEBKITWIDGETS_PKGCONGIG_DEPS} Qt5MultimediaWidgets")
71 ++ set(WEBKITWIDGETS_PKGCONFIG_DEPS "${WEBKITWIDGETS_PKGCONFIG_DEPS} Qt5MultimediaWidgets")
72 + set(WEBKITWIDGETS_PRI_RUNTIME_DEPS "${WEBKITWIDGETS_PRI_RUNTIME_DEPS} multimediawidgets")
73 + endif ()
74 +
75 + if (QT_STATIC_BUILD)
76 +- set(WEBKITWIDGETS_PKGCONGIG_DEPS "${WEBKITWIDGETS_PKGCONGIG_DEPS} Qt5PrintSupport")
77 ++ set(WEBKITWIDGETS_PKGCONFIG_DEPS "${WEBKITWIDGETS_PKGCONFIG_DEPS} Qt5PrintSupport")
78 + set(WEBKITWIDGETS_PRI_DEPS "${WEBKITWIDGETS_PRI_DEPS} printsupport")
79 + set(EXTRA_LIBS_NAMES WebCore JavaScriptCore WTF)
80 + append_lib_names_to_list(EXTRA_LIBS_NAMES ${LIBXML2_LIBRARIES} ${SQLITE_LIBRARIES} ${ZLIB_LIBRARIES} ${JPEG_LIBRARIES} ${PNG_LIBRARIES})
81 +@@ -494,7 +494,7 @@ if (QT_STATIC_BUILD)
82 + endif ()
83 + list(REMOVE_DUPLICATES EXTRA_LIBS_NAMES)
84 + foreach (LIB_NAME ${EXTRA_LIBS_NAMES})
85 +- set(WEBKIT_PKGCONGIG_DEPS "${WEBKIT_PKGCONGIG_DEPS} ${LIB_PREFIX}${LIB_NAME}")
86 ++ set(WEBKIT_PKGCONFIG_DEPS "${WEBKIT_PKGCONFIG_DEPS} ${LIB_PREFIX}${LIB_NAME}")
87 + set(WEBKIT_PRI_EXTRA_LIBS "${WEBKIT_PRI_EXTRA_LIBS} -l${LIB_PREFIX}${LIB_NAME}")
88 + endforeach ()
89 + endif ()
90 +@@ -504,7 +504,7 @@ if (NOT MACOS_BUILD_FRAMEWORKS)
91 + BASE_NAME Qt5WebKit
92 + DESCRIPTION "Qt WebKit module"
93 + INCLUDE_INSTALL_DIR "${KDE_INSTALL_INCLUDEDIR}/QtWebKit"
94 +- DEPS "${WEBKIT_PKGCONGIG_DEPS}"
95 ++ DEPS "${WEBKIT_PKGCONFIG_DEPS}"
96 + FILENAME_VAR WebKit_PKGCONFIG_FILENAME
97 + )
98 + set(ECM_PKGCONFIG_INSTALL_DIR "${LIB_INSTALL_DIR}/pkgconfig" CACHE PATH "The directory where pkgconfig will be installed to.")
99 +From 8c76aabf062232c3fb26839b76716006eca44eec Mon Sep 17 00:00:00 2001
100 +From: Andrew Webster <awebster@××××.com>
101 +Date: Tue, 20 Mar 2018 10:33:59 -0400
102 +Subject: [PATCH] [cmake] Another PKGCONFIG_DEPS correction
103 +
104 +---
105 + Source/WebKit/PlatformQt.cmake | 2 +-
106 + 1 file changed, 1 insertion(+), 1 deletion(-)
107 +
108 +diff --git a/Source/WebKit/PlatformQt.cmake b/Source/WebKit/PlatformQt.cmake
109 +index de3eabab1157..6ab441b98d29 100644
110 +--- a/Source/WebKit/PlatformQt.cmake
111 ++++ b/Source/WebKit/PlatformQt.cmake
112 +@@ -452,7 +452,7 @@ if (USE_QT_MULTIMEDIA)
113 + set(WEBKIT_PRI_RUNTIME_DEPS "multimedia ${WEBKIT_PRI_RUNTIME_DEPS}")
114 + endif ()
115 +
116 +-set(WEBKITWIDGETS_PKGCONFIG_DEPS "${WEBKIT_PKGCONGIG_DEPS} Qt5Widgets Qt5WebKit")
117 ++set(WEBKITWIDGETS_PKGCONFIG_DEPS "${WEBKIT_PKGCONFIG_DEPS} Qt5Widgets Qt5WebKit")
118 + set(WEBKITWIDGETS_PRI_DEPS "${WEBKIT_PRI_DEPS} widgets webkit")
119 + set(WEBKITWIDGETS_PRI_RUNTIME_DEPS "${WEBKIT_PRI_RUNTIME_DEPS} widgets_private")
120 +
121
122 diff --git a/dev-qt/qtwebkit/files/qtwebkit-5.212.0_pre20180120-fix-pkgconfig.patch b/dev-qt/qtwebkit/files/qtwebkit-5.212.0_pre20180120-fix-pkgconfig.patch
123 new file mode 100644
124 index 00000000000..e5d7796ee14
125 --- /dev/null
126 +++ b/dev-qt/qtwebkit/files/qtwebkit-5.212.0_pre20180120-fix-pkgconfig.patch
127 @@ -0,0 +1,29 @@
128 +From fbd1de045999d1e5b5dcae7ac6c1e674ac0044fe Mon Sep 17 00:00:00 2001
129 +From: Dmitry Shachnev <mitya57@×××××.com>
130 +Date: Sat, 24 Feb 2018 15:09:53 +0300
131 +Subject: [PATCH] [cmake] Fix include dir in the generated pkg-config files
132 +
133 +---
134 + Source/WebKit/PlatformQt.cmake | 2 ++
135 + 1 file changed, 2 insertions(+)
136 +
137 +diff --git a/Source/WebKit/PlatformQt.cmake b/Source/WebKit/PlatformQt.cmake
138 +index 6fe440be800c..28976b611cd8 100644
139 +--- a/Source/WebKit/PlatformQt.cmake
140 ++++ b/Source/WebKit/PlatformQt.cmake
141 +@@ -503,6 +503,7 @@ if (NOT MACOS_BUILD_FRAMEWORKS)
142 + ecm_generate_pkgconfig_file(
143 + BASE_NAME Qt5WebKit
144 + DESCRIPTION "Qt WebKit module"
145 ++ INCLUDE_INSTALL_DIR "${KDE_INSTALL_INCLUDEDIR}/QtWebKit"
146 + DEPS "${WEBKIT_PKGCONGIG_DEPS}"
147 + FILENAME_VAR WebKit_PKGCONFIG_FILENAME
148 + )
149 +@@ -728,6 +729,7 @@ if (NOT MACOS_BUILD_FRAMEWORKS)
150 + ecm_generate_pkgconfig_file(
151 + BASE_NAME Qt5WebKitWidgets
152 + DESCRIPTION "Qt WebKitWidgets module"
153 ++ INCLUDE_INSTALL_DIR "${KDE_INSTALL_INCLUDEDIR}/QtWebKitWidgets"
154 + DEPS "${WEBKITWIDGETS_PKGCONFIG_DEPS}"
155 + FILENAME_VAR WebKitWidgets_PKGCONFIG_FILENAME
156 + )
157
158 diff --git a/dev-qt/qtwebkit/qtwebkit-5.212.0_pre20180120.ebuild b/dev-qt/qtwebkit/qtwebkit-5.212.0_pre20180120.ebuild
159 index cee7596f99c..d520d1f87ea 100644
160 --- a/dev-qt/qtwebkit/qtwebkit-5.212.0_pre20180120.ebuild
161 +++ b/dev-qt/qtwebkit/qtwebkit-5.212.0_pre20180120.ebuild
162 @@ -76,7 +76,11 @@ DEPEND="${RDEPEND}
163
164 S=${WORKDIR}/${COMMIT}
165
166 -PATCHES=( "${FILESDIR}/${P}-functional.patch" )
167 +PATCHES=(
168 + "${FILESDIR}/${P}-functional.patch"
169 + "${FILESDIR}/${P}-fix-pkgconfig.patch"
170 + "${FILESDIR}/${P}-cmake-fix-pkgconfig_deps-spelling.patch"
171 +)
172
173 CHECKREQS_DISK_BUILD="16G" # bug 417307