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