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