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-developer/
Date: Wed, 17 Apr 2019 07:01:36
Message-Id: 1555484488.14e64573634dee84ef080ebcc2b293178ffad7ce.jer@gentoo
1 commit: 14e64573634dee84ef080ebcc2b293178ffad7ce
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Tue Apr 16 19:56:00 2019 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 17 07:01:28 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=14e64573
7
8 www-client/opera-developer: Version 61.0.3290.0
9
10 Package-Manager: Portage-2.3.62, Repoman-2.3.12
11 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
12
13 www-client/opera-developer/Manifest | 1 +
14 .../opera-developer-61.0.3290.0.ebuild | 116 +++++++++++++++++++++
15 2 files changed, 117 insertions(+)
16
17 diff --git a/www-client/opera-developer/Manifest b/www-client/opera-developer/Manifest
18 index 2a93d10c824..4101b1d06dd 100644
19 --- a/www-client/opera-developer/Manifest
20 +++ b/www-client/opera-developer/Manifest
21 @@ -1,2 +1,3 @@
22 DIST opera-developer_61.0.3275.0_amd64.deb 66917554 BLAKE2B 05474ea5356663cf151217d89fd4fed9dce29e84341b2357614674f843b608af1b1c393b0096e3ecf46c0f0d04157c1946701324748c9a447c4f02db6d0e4ea2 SHA512 97219b5aa3c873da2290bf9df191caa7cc5acff7153fd40d5ba7ca938da16d2d7906a32e70dfbea7d2f7904f1b970fbd129607c209bf4ddb64c3547e6a84ee54
23 DIST opera-developer_61.0.3282.0_amd64.deb 67496110 BLAKE2B f538aca5794cd81bd93ab844dd0af1742145107981ffadd895e7a14a96bc53298f158ae33db1391db57c6eda8b503c4ebea844258f92138aca53dba6a54da119 SHA512 1b6d58dbd91caca806341bfd7ce727cae0c32a338b58833c7e116fcdd6498ec717019de0dcfc3a0abac87dad67d46a58777e767696a5f8653aa1da612513251c
24 +DIST opera-developer_61.0.3290.0_amd64.deb 67235090 BLAKE2B d278afc5137bf8d986b35afeaeeb81eafc9c003fb89ede35f79386533b6d42808998add223ef792c12550b22078c7c83f9eea78ef1cd4d5c0627a7f50230a41e SHA512 47fce448900edc3cc83568771916ac69274b0e1f759bfaf369a045df9eac7f74dda93d80c6b878d73184e5962edb25c9445ed5cf86d2088285716a97b2d0afa4
25
26 diff --git a/www-client/opera-developer/opera-developer-61.0.3290.0.ebuild b/www-client/opera-developer/opera-developer-61.0.3290.0.ebuild
27 new file mode 100644
28 index 00000000000..d6081fb2869
29 --- /dev/null
30 +++ b/www-client/opera-developer/opera-developer-61.0.3290.0.ebuild
31 @@ -0,0 +1,116 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=5
36 +CHROMIUM_LANGS="
37 + be bg bn ca cs da de el en-GB es es-419 fi fil fr fr-CA hi hr hu id it
38 + 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 +inherit chromium-2 gnome2-utils 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 +SRC_URI="amd64? ("
54 +for uri in ${SRC_URI_BASE}; do
55 +SRC_URI+="
56 + "${uri}${PN}/${PV}/linux/${PN}_${PV}_amd64.deb"
57 +"
58 +done
59 +SRC_URI+=")"
60 +KEYWORDS="~amd64"
61 +
62 +RDEPEND="
63 + dev-libs/expat
64 + dev-libs/glib:2
65 + dev-libs/nspr
66 + dev-libs/nss
67 + gnome-base/gconf:2
68 + media-libs/alsa-lib
69 + media-libs/fontconfig
70 + media-libs/freetype
71 + net-misc/curl
72 + net-print/cups
73 + sys-apps/dbus
74 + x11-libs/cairo
75 + x11-libs/gdk-pixbuf
76 + x11-libs/gtk+:3
77 + x11-libs/libX11
78 + x11-libs/libXScrnSaver
79 + x11-libs/libXcomposite
80 + x11-libs/libXcursor
81 + x11-libs/libXdamage
82 + x11-libs/libXext
83 + x11-libs/libXfixes
84 + x11-libs/libXi
85 + x11-libs/libXrandr
86 + x11-libs/libXrender
87 + x11-libs/libXtst
88 + x11-libs/libnotify
89 + x11-libs/pango[X]
90 +"
91 +
92 +QA_PREBUILT="*"
93 +S=${WORKDIR}
94 +OPERA_HOME="usr/$(get_libdir)/${PN}"
95 +
96 +src_unpack() {
97 + unpack_deb ${A}
98 +}
99 +
100 +src_prepare() {
101 + epatch_user
102 +
103 + case ${ARCH} in
104 + amd64)
105 + mv usr/lib/x86_64-linux-gnu usr/$(get_libdir) || die
106 + rm -r usr/lib || die
107 + ;;
108 + x86)
109 + mv usr/lib/i386-linux-gnu/${PN} usr/$(get_libdir)/ || die
110 + ;;
111 + esac
112 +
113 + mv usr/share/doc/${PN} usr/share/doc/${PF} || die
114 + gunzip usr/share/doc/${PF}/changelog.gz || die
115 +
116 + rm usr/bin/${PN} || die
117 +
118 + pushd "${OPERA_HOME}/localization" > /dev/null || die
119 + chromium_remove_language_paks
120 + popd > /dev/null || die
121 +
122 + sed -i \
123 + -e 's|^TargetEnvironment|X-&|g' \
124 + usr/share/applications/${PN}.desktop || die
125 +}
126 +
127 +src_install() {
128 + mv * "${D}" || die
129 + dosym ../$(get_libdir)/${PN}/${PN} /usr/bin/${PN}
130 + fperms 4711 /usr/$(get_libdir)/${PN}/opera_sandbox
131 +}
132 +
133 +pkg_preinst() {
134 + gnome2_icon_savelist
135 +}
136 +
137 +pkg_postrm() {
138 + gnome2_icon_cache_update
139 + xdg_desktop_database_update
140 + xdg_mimeinfo_database_update
141 +}
142 +
143 +pkg_postinst() {
144 + gnome2_icon_cache_update
145 + xdg_desktop_database_update
146 + xdg_mimeinfo_database_update
147 +}