Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/opera-beta/
Date: Thu, 08 Sep 2022 05:33:00
Message-Id: 1662615067.c4925167284762a9833181eafa6663d91dea33d3.sam@gentoo
1 commit: c4925167284762a9833181eafa6663d91dea33d3
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 8 05:31:07 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 8 05:31:07 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4925167
7
8 www-client/opera-beta: automated bump (91.0.4516.10)
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 www-client/opera-beta/Manifest | 1 +
13 .../opera-beta/opera-beta-91.0.4516.10.ebuild | 158 +++++++++++++++++++++
14 2 files changed, 159 insertions(+)
15
16 diff --git a/www-client/opera-beta/Manifest b/www-client/opera-beta/Manifest
17 index e730794cdb3e..3183d8c4ba81 100644
18 --- a/www-client/opera-beta/Manifest
19 +++ b/www-client/opera-beta/Manifest
20 @@ -1,4 +1,5 @@
21 DIST opera-beta_90.0.4480.41_amd64.deb 87713760 BLAKE2B 593769d761aa180917729fe794db2c0a6bf1044c7e163b0eba64a80e0afb091f6ceefb9358371062db40137f85c04448cc0deb7b72b1a10fb35ab7aa4b13c521 SHA512 81d7e84424f040af6d85f3bdfb3f0456a92895f2a7e510cfa68dcda7323a608e0fa065004c542de49d6d9a933b81c9140d48c83128b44a7e0602f5d669a4b4c9
22 +DIST opera-beta_91.0.4516.10_amd64.deb 88072156 BLAKE2B b92b6382cf13c03d49f26da4793167fc1c9c98aec366503bd264cbd2ac9f13c10eb929da5863fe90910139e25cddefe035dc4977b0784f97bac21c016444d436 SHA512 7b120b8b9c5b619844389c00ef6ed5b9fef3e709127c4ad4f7eae0cb09a2d74de2c926c605bb919b0f8442800cd5f1e54d82a4c8643fd3f9e386a8fcb8e4688e
23 DIST opera-beta_91.0.4516.3_amd64.deb 88063968 BLAKE2B 36bb20ff01d6d5a9a442fca497974fa8f43ffb6cd011e873acbc1ca6d1c4642d971ecfe949a6c905e78c48e47d20e0de29afafc5dc02ab6948bfd7ff60726b94 SHA512 cfaa8be684bf2fc003bd8ed6d05c377554581b47273bc6dcecbf3bda18a2b72d9e26aa201a58ab2e3545c32f8d9f7c7ee1f7b5bb6aa5c9fa4aac86b92f48b0bf
24 DIST opera-beta_91.0.4516.6_amd64.deb 88110388 BLAKE2B 9e032b21cd19161178441942f5a525507b3ac61abcc5b6409fd0d4b5d6d9ff08399e2461684fdeb922ebb52c99a974a031ea4365a0f78396c2f48075eb8973d9 SHA512 937bc3fb40db72f53824c06f1e4884bd42a022c594d64bc87975535f68b7d5e63e1ea8fb31e5d090021a85bfe3a15b14698217f8d5631dde615b02229dcb472d
25 DIST opera-ffmpeg-codecs-104.0.5083.0.tar.xz 1431840 BLAKE2B 172ba55d6f390eaea644803ddae8c3cee4ee2d585de873db438d43b9e7f6d07f5b0e9b659f06c126f65148148d889948cc3287ee21da00eec08f2e665be47dbc SHA512 9ca7fe8a244b634d65a28602f9e1173694faaab6de95cd0a44aeedc29dffb75b14adf842c69d5ba5631fb40e51f021fce190dc8307148d8e9218230b7cde29b8
26
27 diff --git a/www-client/opera-beta/opera-beta-91.0.4516.10.ebuild b/www-client/opera-beta/opera-beta-91.0.4516.10.ebuild
28 new file mode 100644
29 index 000000000000..b7c51e095689
30 --- /dev/null
31 +++ b/www-client/opera-beta/opera-beta-91.0.4516.10.ebuild
32 @@ -0,0 +1,158 @@
33 +# Copyright 1999-2022 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +CHROMIUM_LANGS="
38 + bg bn ca cs da de el en-GB en-US es-419 es fil fi fr hi hr hu id
39 + it ja ko lt lv ms nb nl pl pt-BR pt-PT ro ru sk sr sv sw ta te th tr uk vi
40 + zh-CN zh-TW
41 +"
42 +
43 +# These are intended for ebuild maintainer use to force RPM if DEB is not available.
44 +: ${OPERA_FORCE_RPM=no}
45 +
46 +inherit chromium-2 pax-utils xdg
47 +
48 +if [[ ${OPERA_FORCE_RPM} == yes ]]; then
49 + inherit rpm
50 + OPERA_ARCHIVE_EXT="rpm"
51 +else
52 + inherit unpacker
53 + OPERA_ARCHIVE_EXT="deb"
54 +fi
55 +
56 +DESCRIPTION="A fast and secure web browser"
57 +HOMEPAGE="https://www.opera.com/"
58 +LICENSE="OPERA-2018"
59 +SLOT="0"
60 +
61 +SRC_URI_BASE=(
62 + "https://download1.operacdn.com/pub/${PN}"
63 + "https://download2.operacdn.com/pub/${PN}"
64 + "https://download3.operacdn.com/pub/${PN}"
65 + "https://download4.operacdn.com/pub/${PN}"
66 +)
67 +
68 +if [[ ${PN} == opera ]]; then
69 + MY_PN=${PN}-stable
70 + SRC_URI_BASE=( "${SRC_URI_BASE[@]/%//desktop}" )
71 +else
72 + MY_PN=${PN}
73 +fi
74 +
75 +KEYWORDS="-* ~amd64"
76 +
77 +FFMPEG_VERSION="105.0.5195.19"
78 +
79 +SRC_URI="${SRC_URI_BASE[@]/%//${PV}/linux/${MY_PN}_${PV}_amd64.${OPERA_ARCHIVE_EXT}}
80 + proprietary-codecs? (
81 + mirror+https://dev.gentoo.org/~sultan/distfiles/www-client/opera/opera-ffmpeg-codecs-${FFMPEG_VERSION}.tar.xz
82 + )"
83 +
84 +IUSE="+proprietary-codecs suid"
85 +RESTRICT="bindist mirror strip"
86 +
87 +RDEPEND="
88 + app-accessibility/at-spi2-atk:2
89 + app-accessibility/at-spi2-core:2
90 + dev-libs/atk
91 + dev-libs/expat
92 + dev-libs/glib:2
93 + dev-libs/nspr
94 + dev-libs/nss
95 + gnome-base/gsettings-desktop-schemas
96 + media-libs/alsa-lib
97 + media-libs/mesa[gbm(+)]
98 + net-misc/curl
99 + net-print/cups
100 + sys-apps/dbus
101 + sys-libs/glibc
102 + x11-libs/cairo
103 + x11-libs/gdk-pixbuf
104 + x11-libs/gtk+:3
105 + x11-libs/libdrm
106 + x11-libs/libxcb
107 + x11-libs/libxkbcommon
108 + x11-libs/libxshmfence
109 + x11-libs/libX11
110 + x11-libs/libXcomposite
111 + x11-libs/libXdamage
112 + x11-libs/libXext
113 + x11-libs/libXfixes
114 + x11-libs/libXrandr
115 + x11-libs/pango
116 +"
117 +
118 +QA_PREBUILT="*"
119 +S=${WORKDIR}
120 +OPERA_HOME="opt/opera${PN#opera}"
121 +
122 +pkg_pretend() {
123 + # Protect against people using autounmask overzealously
124 + use amd64 || die "opera only works on amd64"
125 +}
126 +
127 +pkg_setup() {
128 + chromium_suid_sandbox_check_kernel_config
129 +}
130 +
131 +src_unpack() {
132 + :
133 +}
134 +
135 +src_install() {
136 + dodir /
137 + cd "${ED}" || die
138 + if [[ ${OPERA_FORCE_RPM} == yes ]]; then
139 + rpm_src_unpack "${A[0]}"
140 + else
141 + unpacker
142 + fi
143 +
144 + # move to /opt, bug #573052
145 + mkdir -p "${OPERA_HOME%${PN}}"
146 + if [[ ${OPERA_FORCE_RPM} == yes ]]; then
147 + mv "usr/lib64/${PN}" "${OPERA_HOME%${PN}}" || die
148 + else
149 + mv "usr/lib/x86_64-linux-gnu/${PN}" "${OPERA_HOME%${PN}}" || die
150 + fi
151 + rm -r "usr/lib" || die
152 +
153 + # disable auto update
154 + rm "${OPERA_HOME}/${PN%-*}_autoupdate"{,.licenses,.version} || die
155 +
156 + if [[ ${OPERA_FORCE_RPM} == yes ]]; then
157 + rm "${OPERA_HOME}/setup_repo.sh" || die
158 + else
159 + rm -r "usr/share/lintian" || die
160 +
161 + # fix docs
162 + mv usr/share/doc/${MY_PN} usr/share/doc/${PF} || die
163 + gzip -d usr/share/doc/${PF}/changelog.gz || die
164 + fi
165 +
166 + # fix desktop file
167 + sed -i \
168 + -e 's|^TargetEnvironment|X-&|g' \
169 + usr/share/applications/${PN}.desktop || die
170 +
171 + # remove unused language packs
172 + pushd "${OPERA_HOME}/localization" > /dev/null || die
173 + chromium_remove_language_paks
174 + popd > /dev/null || die
175 +
176 + # setup opera symlink
177 + rm "usr/bin/${PN}" || die
178 + dosym "../../${OPERA_HOME}/${PN}" "/usr/bin/${PN}"
179 +
180 + # install proprietary codecs
181 + rm "${OPERA_HOME}/resources/ffmpeg_preload_config.json" || die
182 + if use proprietary-codecs; then
183 + mv lib_extra "${OPERA_HOME}"
184 + fi
185 +
186 + # pax mark opera, bug #562038
187 + pax-mark m "${OPERA_HOME}/opera"
188 + # enable suid sandbox if requested
189 + use suid && fperms 4711 "${OPERA_HOME}/opera_sandbox"
190 +}