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-beta/
Date: Tue, 07 Aug 2018 09:55:00
Message-Id: 1533635679.a4fa23aa15f424d5f2ce11adbc0c10895b98bbf9.jer@gentoo
1 commit: a4fa23aa15f424d5f2ce11adbc0c10895b98bbf9
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 7 08:24:32 2018 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 7 09:54:39 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a4fa23aa
7
8 www-client/opera-beta: Version 55.0.2994.29.
9
10 Package-Manager: Portage-2.3.44, Repoman-2.3.10
11
12 www-client/opera-beta/Manifest | 1 +
13 .../opera-beta/opera-beta-55.0.2994.29.ebuild | 114 +++++++++++++++++++++
14 2 files changed, 115 insertions(+)
15
16 diff --git a/www-client/opera-beta/Manifest b/www-client/opera-beta/Manifest
17 index 3e8782b815c..724dee809b8 100644
18 --- a/www-client/opera-beta/Manifest
19 +++ b/www-client/opera-beta/Manifest
20 @@ -1,2 +1,3 @@
21 DIST opera-beta_55.0.2994.20_amd64.deb 56266674 BLAKE2B a8198ecf4c9086f8e50f027256a380e3a97760cc47a8a54c3975cdff08374330fba35e77f03a9b0293cf1932cc98201f876974b59421bfb1c3c4a682d8ff1742 SHA512 607942e2cfa31c98c503077d827c74122e7ac8540500f89f72e1aff613c1b21abc260defb6ef6bcf31437e13fe98dd2b97537a4f81040d80f9d2c519f3c40e41
22 DIST opera-beta_55.0.2994.23_amd64.deb 56588490 BLAKE2B 4ddf932d0ad9cba59a9e221f880d31b3346868cc163974d63ee200dc402d4cb13f0228def39b8f469f09c82eb98e7bce5608f7395126c1721143e52db83132b4 SHA512 c0125bb6087998941f7edcdf97b399c3fd965e70491f5de3c1191a826c2687607dc87af4784d942263749e9b361ef976351c16ab925206354030922045734ba3
23 +DIST opera-beta_55.0.2994.29_amd64.deb 55842144 BLAKE2B cde94452c7986e2c913605865eb85928dc250105347db2af81e4891bdc9dfae38006861ac8bcf88df7a4dcf1ed6714b335d978ecf0e32a1ddde9d77a2130b3c2 SHA512 8808fec284cad8944000609b286636a929c84d92ca16b41c9398e22811c861ed1b219b0e4bac8dc7b8cecb1202d82588cf7194663f597270f146d3cdffbb0a67
24
25 diff --git a/www-client/opera-beta/opera-beta-55.0.2994.29.ebuild b/www-client/opera-beta/opera-beta-55.0.2994.29.ebuild
26 new file mode 100644
27 index 00000000000..135872778f9
28 --- /dev/null
29 +++ b/www-client/opera-beta/opera-beta-55.0.2994.29.ebuild
30 @@ -0,0 +1,114 @@
31 +# Copyright 1999-2018 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=5
35 +CHROMIUM_LANGS="
36 + be bg bn ca cs da de el en-GB es-419 es fil fi fr-CA fr hi hr hu id it
37 + 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 +inherit chromium-2 gnome2-utils multilib unpacker xdg-utils
41 +
42 +DESCRIPTION="A fast and secure web browser"
43 +HOMEPAGE="https://www.opera.com/"
44 +LICENSE="OPERA-2014"
45 +SLOT="0"
46 +SRC_URI_BASE="
47 + https://download1.operacdn.com/pub/
48 + https://download2.operacdn.com/pub/
49 + https://download3.operacdn.com/pub/
50 + https://download4.operacdn.com/pub/
51 +"
52 +SRC_URI="amd64? ("
53 +for uri in ${SRC_URI_BASE}; do
54 +SRC_URI+="
55 + "${uri}${PN}/${PV}/linux/${PN}_${PV}_amd64.deb"
56 +"
57 +done
58 +SRC_URI+=")"
59 +KEYWORDS="~amd64"
60 +
61 +RDEPEND="
62 + dev-libs/expat
63 + dev-libs/glib:2
64 + dev-libs/nspr
65 + dev-libs/nss
66 + gnome-base/gconf:2
67 + media-libs/alsa-lib
68 + media-libs/fontconfig
69 + media-libs/freetype
70 + net-misc/curl
71 + net-print/cups
72 + sys-apps/dbus
73 + x11-libs/cairo
74 + x11-libs/gdk-pixbuf
75 + x11-libs/gtk+:2
76 + x11-libs/libX11
77 + x11-libs/libXScrnSaver
78 + x11-libs/libXcomposite
79 + x11-libs/libXcursor
80 + x11-libs/libXdamage
81 + x11-libs/libXext
82 + x11-libs/libXfixes
83 + x11-libs/libXi
84 + x11-libs/libXrandr
85 + x11-libs/libXrender
86 + x11-libs/libXtst
87 + x11-libs/libnotify
88 + x11-libs/pango[X]
89 +"
90 +
91 +QA_PREBUILT="*"
92 +S=${WORKDIR}
93 +OPERA_HOME="usr/$(get_libdir)/${PN}"
94 +
95 +src_unpack() {
96 + unpack_deb ${A}
97 +}
98 +
99 +src_prepare() {
100 + case ${ARCH} in
101 + amd64)
102 + mv usr/lib/x86_64-linux-gnu usr/$(get_libdir) || die
103 + rm -r usr/lib || die
104 + ;;
105 + x86)
106 + mv usr/lib/i386-linux-gnu/${PN} usr/$(get_libdir)/ || die
107 + ;;
108 + esac
109 +
110 + rm usr/bin/${PN} || die
111 +
112 + rm usr/share/doc/${PN}/copyright || die
113 + mv usr/share/doc/${PN} usr/share/doc/${PF} || 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 + mv * "${D}" || die
126 + dosym ../$(get_libdir)/${PN}/${PN} /usr/bin/${PN}
127 + fperms 4711 /usr/$(get_libdir)/${PN}/opera_sandbox
128 +}
129 +
130 +pkg_preinst() {
131 + gnome2_icon_savelist
132 +}
133 +
134 +pkg_postrm() {
135 + gnome2_icon_cache_update
136 + xdg_desktop_database_update
137 + xdg_mimeinfo_database_update
138 +}
139 +
140 +pkg_postinst() {
141 + gnome2_icon_cache_update
142 + xdg_desktop_database_update
143 + xdg_mimeinfo_database_update
144 +}