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/
Date: Wed, 11 Mar 2020 17:31:47
Message-Id: 1583947882.46db89e77cf8676501abe2be42615d81b561e4ba.asturm@gentoo
1 commit: 46db89e77cf8676501abe2be42615d81b561e4ba
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 11 17:06:18 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 11 17:31:22 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46db89e7
7
8 dev-qt/qtwebkit: 5.212.0_pre20200309 (alpha4) version bump
9
10 - Build with python3.
11 - Unconditionally depend on media-libs/woff2
12
13 Closes: https://bugs.gentoo.org/698990
14 Closes: https://bugs.gentoo.org/704748
15 Package-Manager: Portage-2.3.93, Repoman-2.3.20
16 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
17
18 dev-qt/qtwebkit/Manifest | 1 +
19 .../qtwebkit/qtwebkit-5.212.0_pre20200309.ebuild | 146 +++++++++++++++++++++
20 2 files changed, 147 insertions(+)
21
22 diff --git a/dev-qt/qtwebkit/Manifest b/dev-qt/qtwebkit/Manifest
23 index eaf27bbbb9d..f9c66a241ca 100644
24 --- a/dev-qt/qtwebkit/Manifest
25 +++ b/dev-qt/qtwebkit/Manifest
26 @@ -1 +1,2 @@
27 DIST qtwebkit-5.212.0-alpha3.tar.xz 12457896 BLAKE2B 1b6ce78706a9696f0eb1fbe287d0d095d0089daf645a9ca60f9f31b9057669180b14d67a3bdfb387fc09dbbeee658c0e895a95edc46b2020f06f2b58188ba65d SHA512 38794514b886de3fa63a41277c2bcbb970e87a12070962b527e3898466cf7ad3b65ce4588669498415d365310b37729e81aabb457808fe11120558ef8e35445f
28 +DIST qtwebkit-5.212.0-alpha4.tar.xz 12528508 BLAKE2B 72d7444f270f47b62044cf683ed306803660bfbafe1450440ea29e43e3c0e6e841b6e860dfa8affc1b32b7c539448f04e22a7ae38cce055d37905dfb3240aab0 SHA512 33f11270bd030599beff9c1983a6c5ff2d61f407cc8a6825f7f405d46f9184c720fc7f60c7359f08f828db96a2170092875066a0d5c0a21ff09bc48a2603fbf6
29
30 diff --git a/dev-qt/qtwebkit/qtwebkit-5.212.0_pre20200309.ebuild b/dev-qt/qtwebkit/qtwebkit-5.212.0_pre20200309.ebuild
31 new file mode 100644
32 index 00000000000..406b871dda5
33 --- /dev/null
34 +++ b/dev-qt/qtwebkit/qtwebkit-5.212.0_pre20200309.ebuild
35 @@ -0,0 +1,146 @@
36 +# Copyright 1999-2020 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=7
40 +
41 +if [[ ${PV} = *9999 ]]; then
42 + EGIT_BRANCH="qtwebkit-5.212"
43 + EGIT_REPO_URI="https://github.com/qtwebkit/qtwebkit.git"
44 + inherit git-r3
45 +else
46 + MY_P="${PN}-${PV/_pre20200309/-alpha4}" # present as upgrade over previous snapshot
47 + SRC_URI="https://github.com/annulen/webkit/releases/download/${MY_P}/${MY_P}.tar.xz"
48 + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
49 + S="${WORKDIR}/${MY_P}"
50 +fi
51 +PYTHON_COMPAT=( python3_{6,7,8} )
52 +USE_RUBY="ruby25 ruby26 ruby27"
53 +inherit check-reqs cmake flag-o-matic python-any-r1 qmake-utils ruby-single toolchain-funcs
54 +
55 +DESCRIPTION="WebKit rendering library for the Qt5 framework (deprecated)"
56 +HOMEPAGE="https://www.qt.io/"
57 +
58 +LICENSE="BSD LGPL-2+"
59 +SLOT="5/5.212"
60 +IUSE="geolocation gles2 +gstreamer +hyphen +jit multimedia nsplugin opengl orientation +printsupport qml webp X"
61 +
62 +REQUIRED_USE="
63 + nsplugin? ( X )
64 + qml? ( opengl )
65 + ?? ( gstreamer multimedia )
66 +"
67 +
68 +# Dependencies found at Source/cmake/OptionsQt.cmake
69 +QT_MIN_VER="5.12.3:5"
70 +BDEPEND="
71 + ${PYTHON_DEPS}
72 + ${RUBY_DEPS}
73 + dev-lang/perl
74 + dev-util/gperf
75 + >=sys-devel/bison-2.4.3
76 + sys-devel/flex
77 + virtual/pkgconfig
78 +"
79 +DEPEND="
80 + dev-db/sqlite:3
81 + dev-libs/icu:=
82 + dev-libs/libxml2
83 + dev-libs/libxslt
84 + >=dev-qt/qtcore-${QT_MIN_VER}
85 + >=dev-qt/qtgui-${QT_MIN_VER}
86 + >=dev-qt/qtnetwork-${QT_MIN_VER}
87 + >=dev-qt/qtwidgets-${QT_MIN_VER}=
88 + media-libs/libpng:0=
89 + media-libs/woff2
90 + virtual/jpeg:0
91 + geolocation? ( >=dev-qt/qtpositioning-${QT_MIN_VER} )
92 + gstreamer? (
93 + dev-libs/glib:2
94 + media-libs/gstreamer:1.0
95 + media-libs/gst-plugins-bad:1.0
96 + media-libs/gst-plugins-base:1.0
97 + )
98 + hyphen? ( dev-libs/hyphen )
99 + multimedia? ( >=dev-qt/qtmultimedia-${QT_MIN_VER}[widgets] )
100 + opengl? (
101 + >=dev-qt/qtgui-${QT_MIN_VER}[gles2=]
102 + >=dev-qt/qtopengl-${QT_MIN_VER}[gles2=]
103 + )
104 + orientation? ( >=dev-qt/qtsensors-${QT_MIN_VER} )
105 + printsupport? ( >=dev-qt/qtprintsupport-${QT_MIN_VER} )
106 + qml? (
107 + >=dev-qt/qtdeclarative-${QT_MIN_VER}
108 + >=dev-qt/qtwebchannel-${QT_MIN_VER}[qml]
109 + )
110 + webp? ( media-libs/libwebp:= )
111 + X? (
112 + x11-libs/libX11
113 + x11-libs/libXcomposite
114 + x11-libs/libXrender
115 + )
116 +"
117 +RDEPEND="${DEPEND}"
118 +
119 +CHECKREQS_DISK_BUILD="16G" # bug 417307
120 +
121 +_check_reqs() {
122 + if [[ ${MERGE_TYPE} != binary ]] && is-flagq "-g*" && ! is-flagq "-g*0"; then
123 + einfo "Checking for sufficient disk space to build ${PN} with debugging flags"
124 + check-reqs_$1
125 + fi
126 +}
127 +
128 +pkg_pretend() {
129 + _check_reqs pkg_pretend
130 +}
131 +
132 +pkg_setup() {
133 + _check_reqs pkg_setup
134 + python-any-r1_pkg_setup
135 +}
136 +
137 +src_configure() {
138 + # Respect CC, otherwise fails on prefix, bug #395875
139 + tc-export CC
140 +
141 + # Multiple rendering bugs on youtube, github, etc without this, bug #547224
142 + append-flags $(test-flags -fno-strict-aliasing)
143 +
144 + local mycmakeargs=(
145 + -DPORT=Qt
146 + -DENABLE_API_TESTS=OFF
147 + -DENABLE_TOOLS=OFF
148 + -DENABLE_GEOLOCATION=$(usex geolocation)
149 + -DUSE_GSTREAMER=$(usex gstreamer)
150 + -DUSE_LIBHYPHEN=$(usex hyphen)
151 + -DENABLE_JIT=$(usex jit)
152 + -DUSE_QT_MULTIMEDIA=$(usex multimedia)
153 + -DENABLE_NETSCAPE_PLUGIN_API=$(usex nsplugin)
154 + -DENABLE_OPENGL=$(usex opengl)
155 + -DENABLE_PRINT_SUPPORT=$(usex printsupport)
156 + -DENABLE_DEVICE_ORIENTATION=$(usex orientation)
157 + -DENABLE_WEBKIT2=$(usex qml)
158 + $(cmake_use_find_package webp WebP)
159 + -DENABLE_X11_TARGET=$(usex X)
160 + )
161 +
162 + if has_version "virtual/rubygems[ruby_targets_ruby27]"; then
163 + mycmakeargs+=( -DRUBY_EXECUTABLE=$(type -P ruby27) )
164 + elif has_version "virtual/rubygems[ruby_targets_ruby26]"; then
165 + mycmakeargs+=( -DRUBY_EXECUTABLE=$(type -P ruby26) )
166 + else
167 + mycmakeargs+=( -DRUBY_EXECUTABLE=$(type -P ruby25) )
168 + fi
169 +
170 + cmake_src_configure
171 +}
172 +
173 +src_install() {
174 + cmake_src_install
175 +
176 + # bug 572056
177 + if [[ ! -f ${ED}$(qt5_get_libdir)/libQt5WebKit.so ]]; then
178 + eerror "${CATEGORY}/${PF} could not build due to a broken ruby environment."
179 + die 'Check "eselect ruby" and ensure you have a working ruby in your $PATH'
180 + fi
181 +}