Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/qt:master commit in: dev-qt/qtwebengine/
Date: Sat, 24 Sep 2022 21:24:35
Message-Id: 1664051148.13a7e23110dfe990e0c7b94b1c57f07f072eed3f.asturm@gentoo
1 commit: 13a7e23110dfe990e0c7b94b1c57f07f072eed3f
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 24 20:25:48 2022 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 24 20:25:48 2022 +0000
6 URL: https://gitweb.gentoo.org/proj/qt.git/commit/?id=13a7e231
7
8 dev-qt/qtwebengine: drop 6.3.9999
9
10 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
11
12 dev-qt/qtwebengine/qtwebengine-6.3.9999.ebuild | 242 -------------------------
13 1 file changed, 242 deletions(-)
14
15 diff --git a/dev-qt/qtwebengine/qtwebengine-6.3.9999.ebuild b/dev-qt/qtwebengine/qtwebengine-6.3.9999.ebuild
16 deleted file mode 100644
17 index 2ce46d9a..00000000
18 --- a/dev-qt/qtwebengine/qtwebengine-6.3.9999.ebuild
19 +++ /dev/null
20 @@ -1,242 +0,0 @@
21 -# Copyright 2021-2022 Gentoo Authors
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=8
25 -
26 -PYTHON_COMPAT=( python3_{9,10} )
27 -PYTHON_REQ_USE="xml(+)"
28 -CHROMIUM_VER="94.0.4606.126"
29 -CHROMIUM_PATCHES_VER="104.0.5112.81"
30 -
31 -inherit check-reqs estack flag-o-matic multiprocessing python-any-r1 qt6-build
32 -
33 -DESCRIPTION="Library for rendering dynamic web content in Qt6 C++ and QML applications"
34 -
35 -if [[ ${QT6_BUILD_TYPE} == release ]]; then
36 - KEYWORDS="~amd64"
37 -fi
38 -
39 -IUSE="
40 - alsa bindist designer geolocation +jumbo-build kerberos pulseaudio screencast
41 - +system-ffmpeg +system-icu widgets
42 -"
43 -REQUIRED_USE="designer? ( widgets )"
44 -
45 -BDEPEND="
46 - $(python_gen_any_dep 'dev-python/html5lib[${PYTHON_USEDEP}]')
47 - dev-util/gperf
48 - dev-util/ninja
49 - dev-util/re2c
50 - net-libs/nodejs[ssl]
51 - sys-devel/bison
52 - sys-devel/flex
53 -"
54 -RDEPEND="
55 - app-arch/snappy:=
56 - dev-libs/glib:2
57 - dev-libs/nspr
58 - dev-libs/nss
59 - dev-libs/expat
60 - dev-libs/libevent:=
61 - dev-libs/libxml2[icu]
62 - dev-libs/libxslt
63 - dev-libs/re2:=
64 - =dev-qt/qtdeclarative-${PV}*
65 - =dev-qt/qtwebchannel-${PV}*
66 - media-libs/fontconfig
67 - media-libs/freetype
68 - media-libs/harfbuzz:=
69 - media-libs/lcms:2
70 - media-libs/libjpeg-turbo:=
71 - media-libs/libpng:=
72 - >=media-libs/libvpx-1.5:=[svc(+)]
73 - media-libs/libwebp:=
74 - media-libs/opus
75 - sys-apps/dbus
76 - sys-apps/pciutils
77 - sys-libs/zlib[minizip]
78 - virtual/libudev
79 - x11-libs/libdrm
80 - x11-libs/libX11
81 - x11-libs/libXcomposite
82 - x11-libs/libXcursor
83 - x11-libs/libxcb:=
84 - x11-libs/libXdamage
85 - x11-libs/libXext
86 - x11-libs/libXfixes
87 - x11-libs/libXi
88 - x11-libs/libxkbcommon
89 - x11-libs/libxkbfile
90 - x11-libs/libXrandr
91 - x11-libs/libXrender
92 - x11-libs/libXScrnSaver
93 - x11-libs/libXtst
94 - alsa? ( media-libs/alsa-lib )
95 - geolocation? ( =dev-qt/qtpositioning-${PV}* )
96 - kerberos? ( virtual/krb5 )
97 - pulseaudio? ( media-libs/libpulse:= )
98 - screencast? ( media-video/pipewire:= )
99 - system-ffmpeg? ( media-video/ffmpeg:= )
100 - system-icu? ( >=dev-libs/icu-69.1:= )
101 - widgets? (
102 - =dev-qt/qtbase-${PV}*[widgets]
103 - )
104 -"
105 -DEPEND="${RDEPEND}
106 - media-libs/libglvnd
107 -"
108 -
109 -python_check_deps() {
110 - python_has_version "dev-python/html5lib[${PYTHON_USEDEP}]"
111 -}
112 -
113 -qtwebengine_check-reqs() {
114 - # bug #307861
115 - eshopts_push -s extglob
116 - if is-flagq '-g?(gdb)?([1-9])'; then
117 - ewarn "You have enabled debug info (probably have -g or -ggdb in your CFLAGS/CXXFLAGS)."
118 - ewarn "You may experience really long compilation times and/or increased memory usage."
119 - ewarn "If compilation fails, please try removing -g/-ggdb before reporting a bug."
120 - fi
121 - eshopts_pop
122 -
123 - [[ ${MERGE_TYPE} == binary ]] && return
124 -
125 - # (check-reqs added for bug #570534)
126 - #
127 - # Estimate the amount of RAM required
128 - # Multiplier is *10 because Bash doesn't do floating point maths.
129 - # Let's crudely assume ~2GB per compiler job for GCC.
130 - local multiplier=20
131 -
132 - # And call it ~1.5GB for Clang.
133 - if tc-is-clang ; then
134 - multiplier=15
135 - fi
136 -
137 - local CHECKREQS_DISK_BUILD="7G"
138 - local CHECKREQS_DISK_USR="150M"
139 - if ! has "distcc" ${FEATURES} ; then
140 - # bug #830661
141 - # Not super realistic to come up with good estimates for distcc right now
142 - local CHECKREQS_MEMORY=$(($(makeopts_jobs)*multiplier/10))G
143 - fi
144 -
145 - check-reqs_${EBUILD_PHASE_FUNC}
146 -}
147 -
148 -pkg_pretend() {
149 - qtwebengine_check-reqs
150 -}
151 -
152 -pkg_setup() {
153 - qtwebengine_check-reqs
154 - python-any-r1_pkg_setup
155 -}
156 -
157 -pkg_preinst() {
158 - elog "This version of Qt WebEngine is based on Chromium version ${CHROMIUM_VER}, with"
159 - elog "additional security fixes up to ${CHROMIUM_PATCHES_VER}. Extensive as it is, the"
160 - elog "list of backports is impossible to evaluate, but always bound to be behind"
161 - elog "Chromium's release schedule."
162 - elog "In addition, various online services may deny service based on an outdated"
163 - elog "user agent version (and/or other checks). Google is already known to do so."
164 - elog
165 - elog "tldr: Your web browsing experience will be compromised."
166 -}
167 -
168 -src_unpack() {
169 - # bug 307861
170 - eshopts_push -s extglob
171 - if is-flagq '-g?(gdb)?([1-9])'; then
172 - ewarn
173 - ewarn "You have enabled debug info (probably have -g or -ggdb in your CFLAGS/CXXFLAGS)."
174 - ewarn "You may experience really long compilation times and/or increased memory usage."
175 - ewarn "If compilation fails, please try removing -g/-ggdb before reporting a bug."
176 - ewarn
177 - fi
178 - eshopts_pop
179 -
180 - case ${QT6_BUILD_TYPE} in
181 - live) git-r3_src_unpack ;&
182 - release) default ;;
183 - esac
184 -}
185 -
186 -src_prepare() {
187 - # bug 620444 - ensure local headers are used
188 - find . -type f -name "*.pr[fio]" -exec \
189 - sed -i -e 's|INCLUDEPATH += |&$${QTWEBENGINE_ROOT}_build/include $${QTWEBENGINE_ROOT}/include |' {} + || die
190 -
191 - if use system-icu; then
192 - # Sanity check to ensure that bundled copy of ICU is not used.
193 - # Whole src/3rdparty/chromium/third_party/icu directory cannot be deleted because
194 - # src/3rdparty/chromium/third_party/icu/BUILD.gn is used by build system.
195 - # If usage of headers of bundled copy of ICU occurs, then lists of shim headers in
196 - # shim_headers("icui18n_shim") and shim_headers("icuuc_shim") in
197 - # src/3rdparty/chromium/third_party/icu/BUILD.gn should be updated.
198 - local file
199 - while read file; do
200 - echo "#error This file should not be used!" > "${file}" || die
201 - done < <(find src/3rdparty/chromium/third_party/icu -type f "(" -name "*.c" -o -name "*.cpp" -o -name "*.h" ")" 2>/dev/null)
202 - fi
203 -
204 - qt6-build_src_prepare
205 -}
206 -
207 -src_configure() {
208 - export NINJA_PATH="${BROOT}"/usr/bin/ninja
209 - export NINJAFLAGS="${NINJAFLAGS:--j$(makeopts_jobs) -l$(makeopts_loadavg "${MAKEOPTS}" 0) -v}"
210 -
211 - local mycmakeargs=(
212 - #-DQT_FEATURE_accessibility=off
213 - #-DQT_FEATURE_force_asserts=off
214 - #-DQT_FEATURE_opengl=off
215 - #-DQT_FEATURE_printer=off
216 - -DQT_FEATURE_qtpdf_build=off
217 - -DQT_FEATURE_qtpdf_quick_build=off
218 - -DQT_FEATURE_qtpdf_widgets_build=off
219 - -DQT_FEATURE_qtwebengine_build=on
220 - -DQT_FEATURE_qtwebengine_quick_build=on
221 - -DQT_FEATURE_qtwebengine_widgets_build=on
222 - #-DQT_FEATURE_ssl=off
223 - #-DQT_FEATURE_static=off
224 - #-DQT_FEATURE_system_zlib=off
225 - #-DQT_FEATURE_system_png=off
226 - #-DQT_FEATURE_system_jpeg=off
227 - #-DQT_FEATURE_system_freetype=off
228 - #-DQT_FEATURE_system_harfbuzz=off
229 - #-DQT_FEATURE_use_gold_linker=off
230 - #-DQT_FEATURE_use_lld_linker=off
231 - -DQT_FEATURE_webengine_embedded_build=off
232 - -DQT_FEATURE_webengine_extensions=on
233 - #-DQT_FEATURE_webengine_full_debug_info=$(usex debug)
234 - -DQT_FEATURE_webengine_geolocation=$(usex geolocation on off)
235 - -DQT_FEATURE_webengine_jumbo_build=$(usex jumbo-build)
236 - #-DQT_FEATURE_webengine_jumbo_file_merge_limit
237 - -DQT_FEATURE_webengine_kerberos=$(usex kerberos on off)
238 - -DQT_FEATURE_webengine_native_spellchecker=off
239 - -DQT_FEATURE_webengine_ozone_x11=on
240 - -DQT_FEATURE_webengine_pepper_plugins=on
241 - -DQT_FEATURE_webengine_proprietary_codecs=$(usex bindist off on)
242 - -DQT_FEATURE_webengine_printing_and_pdf=on
243 - -DQT_FEATURE_webengine_sanitizer=on
244 - -DQT_FEATURE_webengine_spellchecker=on
245 - -DQT_FEATURE_webengine_system_opus=on
246 - -DQT_FEATURE_webengine_system_libwebp=on
247 - -DQT_FEATURE_webengine_system_alsa=$(usex alsa on off)
248 - -DQT_FEATURE_webengine_system_ffmpeg=$(usex system-ffmpeg)
249 - -DQT_FEATURE_webengine_system_icu=$(usex system-icu)
250 - -DQT_FEATURE_webengine_system_libevent=on
251 - -DQT_FEATURE_webengine_system_libpci=on
252 - -DQT_FEATURE_webengine_system_libpng=on
253 - -DQT_FEATURE_webengine_system_pulseaudio=$(usex pulseaudio on off)
254 - -DQT_FEATURE_webengine_system_zlib=on
255 - -DQT_FEATURE_webengine_webchannel=on
256 - -DQT_FEATURE_webengine_webrtc=on
257 - -DQT_FEATURE_webengine_webrtc_pipewire=$(usex screencast on off)
258 - #-DQT_FEATURE_xcb=off
259 - )
260 -
261 - qt6-build_src_configure
262 -}