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