Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/opera/
Date: Tue, 15 Sep 2020 19:26:32
Message-Id: 1600197986.aff66bae3eaec5d7fda6161a6c4214a2785dc62f.jer@gentoo
1 commit: aff66bae3eaec5d7fda6161a6c4214a2785dc62f
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 15 19:25:43 2020 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 15 19:26:26 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aff66bae
7
8 www-client/opera: Version 70.0.3728.178
9
10 Package-Manager: Portage-3.0.7, Repoman-3.0.1
11 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
12
13 www-client/opera/Manifest | 1 +
14 www-client/opera/opera-70.0.3728.178.ebuild | 110 ++++++++++++++++++++++++++++
15 2 files changed, 111 insertions(+)
16
17 diff --git a/www-client/opera/Manifest b/www-client/opera/Manifest
18 index 28d00b5fc43..c89c0c3f9c0 100644
19 --- a/www-client/opera/Manifest
20 +++ b/www-client/opera/Manifest
21 @@ -1 +1,2 @@
22 DIST opera-stable_70.0.3728.154_amd64.deb 67310968 BLAKE2B e43b41be25dfda3079d2c57c1a9b9df54ff5d27c689fe42efc507a7f979d0ff2a828032bd3d149ab72856d07547f19a1fc625565dee11835734a4061403c7272 SHA512 d708e96be745693de15a23b03716ba77430cc1feeaf56f85ba35dc9b537261a92bc1749d363ed0fba6600810a12e6d470f208c472fee116f6a3f0e100b3ad957
23 +DIST opera-stable_70.0.3728.178_amd64.deb 67334984 BLAKE2B 5cc3bfdaa19f948eec19ca69af6023526d126e31d8d5c5869f2c86fa63d834c72ca82e6982c57984af531450ed1fc243c7dbae0b2f36d752210aa195570dc660 SHA512 22fbde279f97b7c619621713f980385951abf682f4d38aa63905b5a1f5127a58f3955b4f2d9076c2d82f3dadb2103027fb3f226469226e4b0ad7b438a3bb8169
24
25 diff --git a/www-client/opera/opera-70.0.3728.178.ebuild b/www-client/opera/opera-70.0.3728.178.ebuild
26 new file mode 100644
27 index 00000000000..58c0be89c0a
28 --- /dev/null
29 +++ b/www-client/opera/opera-70.0.3728.178.ebuild
30 @@ -0,0 +1,110 @@
31 +# Copyright 1999-2020 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +CHROMIUM_LANGS="
36 + be bg bn ca cs da de el en-GB en-US es-419 es fil fi fr-CA 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 +inherit chromium-2 multilib unpacker xdg-utils
42 +
43 +DESCRIPTION="A fast and secure web browser"
44 +HOMEPAGE="https://www.opera.com/"
45 +LICENSE="OPERA-2014"
46 +SLOT="0"
47 +SRC_URI_BASE="
48 + https://download1.operacdn.com/pub/
49 + https://download2.operacdn.com/pub/
50 + https://download3.operacdn.com/pub/
51 + https://download4.operacdn.com/pub/
52 +"
53 +for uri in ${SRC_URI_BASE}; do
54 +SRC_URI+="
55 + "${uri}${PN}/desktop/${PV}/linux/${PN}-stable_${PV}_amd64.deb"
56 +"
57 +done
58 +KEYWORDS="~amd64"
59 +
60 +RDEPEND="
61 + dev-libs/expat
62 + dev-libs/glib:2
63 + dev-libs/nspr
64 + dev-libs/nss
65 + media-libs/alsa-lib
66 + media-libs/fontconfig
67 + media-libs/freetype
68 + net-misc/curl
69 + net-print/cups
70 + sys-apps/dbus
71 + x11-libs/cairo
72 + x11-libs/gdk-pixbuf
73 + x11-libs/gtk+:3
74 + x11-libs/libX11
75 + x11-libs/libXScrnSaver
76 + x11-libs/libXcomposite
77 + x11-libs/libXcursor
78 + x11-libs/libXdamage
79 + x11-libs/libXext
80 + x11-libs/libXfixes
81 + x11-libs/libXi
82 + x11-libs/libXrandr
83 + x11-libs/libXrender
84 + x11-libs/libXtst
85 + x11-libs/libnotify
86 + x11-libs/pango[X]
87 +"
88 +
89 +QA_PREBUILT="*"
90 +S=${WORKDIR}
91 +
92 +src_unpack() {
93 + unpack_deb ${A}
94 +}
95 +
96 +src_prepare() {
97 + default
98 +
99 + OPERA_HOME="usr/$(get_libdir)/${PN}"
100 +
101 + case ${ARCH} in
102 + amd64)
103 + mv usr/lib/x86_64-linux-gnu usr/$(get_libdir) || die
104 + rm -r usr/lib || die
105 + ;;
106 + esac
107 +
108 + rm usr/bin/${PN} || die
109 +
110 + rm usr/share/doc/${PN}-stable/copyright || die
111 + mv usr/share/doc/${PN}-stable usr/share/doc/${PF} || die
112 + gunzip usr/share/doc/${PF}/changelog.gz || die
113 +
114 + pushd "${OPERA_HOME}"/localization > /dev/null || die
115 + chromium_remove_language_paks
116 + popd > /dev/null || die
117 +
118 + sed -i \
119 + -e 's|^TargetEnvironment|X-&|g' \
120 + usr/share/applications/${PN}.desktop || die
121 +}
122 +
123 +src_install() {
124 + rm "${OPERA_HOME}"/${PN}_autoupdate || die
125 + mv * "${D}" || die
126 + dosym ../$(get_libdir)/${PN}/${PN} /usr/bin/${PN}
127 + fperms 4711 /"${OPERA_HOME}"/opera_sandbox
128 +}
129 +
130 +pkg_postrm() {
131 + xdg_desktop_database_update
132 + xdg_icon_cache_update
133 + xdg_mimeinfo_database_update
134 +}
135 +
136 +pkg_postinst() {
137 + xdg_desktop_database_update
138 + xdg_icon_cache_update
139 + xdg_mimeinfo_database_update
140 +}