1 |
commit: 727b37cf3827dfefdcc0202160f6d19b9a9c2350 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jun 26 13:33:54 2018 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 27 19:00:20 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=727b37cf |
7 |
|
8 |
dev-qt/qtwebengine: Add missing mesa[egl] use dep |
9 |
|
10 |
Package-Manager: Portage-2.3.40, Repoman-2.3.9 |
11 |
|
12 |
dev-qt/qtwebengine/qtwebengine-5.9.6-r1.ebuild | 130 +++++++++++++++++++++++++ |
13 |
1 file changed, 130 insertions(+) |
14 |
|
15 |
diff --git a/dev-qt/qtwebengine/qtwebengine-5.9.6-r1.ebuild b/dev-qt/qtwebengine/qtwebengine-5.9.6-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..321ce8a986d |
18 |
--- /dev/null |
19 |
+++ b/dev-qt/qtwebengine/qtwebengine-5.9.6-r1.ebuild |
20 |
@@ -0,0 +1,130 @@ |
21 |
+# Copyright 1999-2018 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=6 |
25 |
+PYTHON_COMPAT=( python2_7 ) |
26 |
+inherit multiprocessing pax-utils python-any-r1 qt5-build |
27 |
+ |
28 |
+DESCRIPTION="Library for rendering dynamic web content in Qt5 C++ and QML applications" |
29 |
+ |
30 |
+if [[ ${QT5_BUILD_TYPE} == release ]]; then |
31 |
+ KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
32 |
+fi |
33 |
+ |
34 |
+IUSE="alsa bindist designer geolocation pax_kernel pulseaudio +system-ffmpeg +system-icu widgets" |
35 |
+REQUIRED_USE="designer? ( widgets )" |
36 |
+ |
37 |
+RDEPEND=" |
38 |
+ app-arch/snappy:= |
39 |
+ dev-libs/glib:2 |
40 |
+ dev-libs/nspr |
41 |
+ dev-libs/nss |
42 |
+ ~dev-qt/qtcore-${PV} |
43 |
+ ~dev-qt/qtdeclarative-${PV} |
44 |
+ ~dev-qt/qtgui-${PV} |
45 |
+ ~dev-qt/qtnetwork-${PV} |
46 |
+ ~dev-qt/qtprintsupport-${PV} |
47 |
+ ~dev-qt/qtwebchannel-${PV}[qml] |
48 |
+ dev-libs/expat |
49 |
+ dev-libs/libevent:= |
50 |
+ dev-libs/libxml2[icu] |
51 |
+ dev-libs/libxslt |
52 |
+ dev-libs/protobuf:= |
53 |
+ dev-libs/re2:= |
54 |
+ media-libs/fontconfig |
55 |
+ media-libs/freetype |
56 |
+ media-libs/harfbuzz:= |
57 |
+ media-libs/libpng:0= |
58 |
+ >=media-libs/libvpx-1.5:=[svc] |
59 |
+ media-libs/libwebp:= |
60 |
+ media-libs/mesa[egl] |
61 |
+ media-libs/opus |
62 |
+ net-libs/libsrtp:0= |
63 |
+ sys-apps/dbus |
64 |
+ sys-apps/pciutils |
65 |
+ sys-libs/libcap |
66 |
+ sys-libs/zlib[minizip] |
67 |
+ virtual/jpeg:0 |
68 |
+ virtual/libudev |
69 |
+ x11-libs/libdrm |
70 |
+ x11-libs/libX11 |
71 |
+ x11-libs/libXcomposite |
72 |
+ x11-libs/libXcursor |
73 |
+ x11-libs/libXdamage |
74 |
+ x11-libs/libXext |
75 |
+ x11-libs/libXfixes |
76 |
+ x11-libs/libXi |
77 |
+ x11-libs/libXrandr |
78 |
+ x11-libs/libXrender |
79 |
+ x11-libs/libXScrnSaver |
80 |
+ x11-libs/libXtst |
81 |
+ alsa? ( media-libs/alsa-lib ) |
82 |
+ designer? ( ~dev-qt/designer-${PV} ) |
83 |
+ geolocation? ( ~dev-qt/qtpositioning-${PV} ) |
84 |
+ pulseaudio? ( media-sound/pulseaudio:= ) |
85 |
+ system-ffmpeg? ( media-video/ffmpeg:0= ) |
86 |
+ system-icu? ( dev-libs/icu:= ) |
87 |
+ widgets? ( |
88 |
+ ~dev-qt/qtdeclarative-${PV}[widgets] |
89 |
+ ~dev-qt/qtwidgets-${PV} |
90 |
+ ) |
91 |
+" |
92 |
+DEPEND="${RDEPEND} |
93 |
+ ${PYTHON_DEPS} |
94 |
+ >=app-arch/gzip-1.7 |
95 |
+ dev-util/gperf |
96 |
+ dev-util/ninja |
97 |
+ dev-util/re2c |
98 |
+ sys-devel/bison |
99 |
+ pax_kernel? ( sys-apps/elfix ) |
100 |
+" |
101 |
+ |
102 |
+PATCHES=( |
103 |
+ "${FILESDIR}/${PN}-5.9.4-jpeg-9-1.patch" |
104 |
+ "${FILESDIR}/${PN}-5.9.4-jpeg-9-2.patch" |
105 |
+ "${FILESDIR}/${PN}-5.9.6-gcc8.patch" # bug 657124 |
106 |
+) |
107 |
+ |
108 |
+src_prepare() { |
109 |
+ use pax_kernel && PATCHES+=( "${FILESDIR}/${PN}-5.9.3-paxmark-mksnapshot.patch" ) |
110 |
+ |
111 |
+ # bug 620444 - ensure local headers are used |
112 |
+ find "${S}" -type f -name "*.pr[fio]" | xargs sed -i -e 's|INCLUDEPATH += |&$$QTWEBENGINE_ROOT/include |' || die |
113 |
+ |
114 |
+ qt_use_disable_config alsa alsa src/core/config/linux.pri |
115 |
+ qt_use_disable_config pulseaudio pulseaudio src/core/config/linux.pri |
116 |
+ |
117 |
+ qt_use_disable_mod designer webenginewidgets src/plugins/plugins.pro |
118 |
+ |
119 |
+ qt_use_disable_mod geolocation positioning \ |
120 |
+ mkspecs/features/configure.prf \ |
121 |
+ src/core/core_chromium.pri \ |
122 |
+ src/core/core_common.pri |
123 |
+ |
124 |
+ qt_use_disable_mod widgets widgets src/src.pro |
125 |
+ |
126 |
+ qt5-build_src_prepare |
127 |
+} |
128 |
+ |
129 |
+src_configure() { |
130 |
+ export NINJA_PATH=/usr/bin/ninja |
131 |
+ export NINJAFLAGS="${NINJAFLAGS:--j$(makeopts_jobs) -l$(makeopts_loadavg "${MAKEOPTS}" 0) -v}" |
132 |
+ |
133 |
+ local myqmakeargs=( |
134 |
+ $(usex bindist '' 'WEBENGINE_CONFIG+=use_proprietary_codecs') |
135 |
+ $(usex system-ffmpeg 'WEBENGINE_CONFIG+=use_system_ffmpeg' '') |
136 |
+ $(usex system-icu 'WEBENGINE_CONFIG+=use_system_icu' '') |
137 |
+ ) |
138 |
+ qt5-build_src_configure |
139 |
+} |
140 |
+ |
141 |
+src_install() { |
142 |
+ qt5-build_src_install |
143 |
+ |
144 |
+ # bug 601472 |
145 |
+ if [[ ! -f ${D%/}${QT5_LIBDIR}/libQt5WebEngine.so ]]; then |
146 |
+ die "${CATEGORY}/${PF} failed to build anything. Please report to https://bugs.gentoo.org/" |
147 |
+ fi |
148 |
+ |
149 |
+ pax-mark m "${D%/}${QT5_LIBEXECDIR}"/QtWebEngineProcess |
150 |
+} |