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/vivaldi/
Date: Wed, 02 Sep 2020 11:50:59
Message-Id: 1599047450.5f7b3a14f4b20cfeeb88bc735aeb0683b97cf320.jer@gentoo
1 commit: 5f7b3a14f4b20cfeeb88bc735aeb0683b97cf320
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 2 11:49:54 2020 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 2 11:50:50 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f7b3a14
7
8 www-client/vivaldi: Version 3.3.2022.26_p1
9
10 Package-Manager: Portage-3.0.5, Repoman-3.0.1
11 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
12
13 www-client/vivaldi/Manifest | 4 +
14 www-client/vivaldi/vivaldi-3.3.2022.26_p1.ebuild | 125 +++++++++++++++++++++++
15 2 files changed, 129 insertions(+)
16
17 diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest
18 index 53c21aef5b3..5f0491aeacd 100644
19 --- a/www-client/vivaldi/Manifest
20 +++ b/www-client/vivaldi/Manifest
21 @@ -2,3 +2,7 @@ DIST vivaldi-3.2.1967.47_p1-amd64.deb 71853076 BLAKE2B ed79da0a11cb676496b3c9ce0
22 DIST vivaldi-3.2.1967.47_p1-arm64.deb 64630720 BLAKE2B 777ef7ac03176f5786cdcbd77223f5ff6243aad6e3fe34dbf6dbe4e9c886fab6b9f3a88fea06bb9c6f61dae5ad172fc9c02f4d3c049be7aff204c3e0ce3a4d87 SHA512 4ef35dcf6acef23b39bf7746c020515d8adf43290057e6bb8a25ed7af8034e95b3e2afebf0cd056de0e21c3ec5dc4249c0055812756785cb4982877a4cc14e2c
23 DIST vivaldi-3.2.1967.47_p1-armhf.deb 63645748 BLAKE2B b7acb3c7672306ad8defc903b5c73dfe20e8de42489c3638d62999d249c25ee4749937b3cff55cab3d91d12365261673046f644f0f124fa6adf660ed24a58f16 SHA512 63db5f2786fcabc37f5ee23ab5ee2c5b79d945bd93b394dfd8ad5005211bc5eca8708bdedb987097f94a8615e8197e7ca978a80bc5205c8d1c0ce3517f11763e
24 DIST vivaldi-3.2.1967.47_p1-i386.deb 70102476 BLAKE2B 399da7d7d080ff52ee40f2f119f9864ab34141405a83c4d6924cbf23143a2e428d6b7d9e8ffbe5addaf18a1b97077bf116f7446fa0ee7609747ae4b33efd2947 SHA512 bdb5ef6ee869ba25f7e9fcecbc03b490833dc547fe8c854ab4709debf8e298353fd93761f3da0a920f3819b765ae55f7c477745e117653f532de247bae7089cd
25 +DIST vivaldi-3.3.2022.26_p1-amd64.deb 72512136 BLAKE2B 387a811b51e37eb64c20ce2ad32091304e31bcad9011ceeb9b41db88996b8e5e9775ecfa01c23aaccef9516fe6fd19e7f9699218e6bc4476c0e44838cebd3bf3 SHA512 efee6c37028a6b15328de7176c9a76f9347b9729f4c448bea0f8a846d0867b516ff1f6ff129004fd2c2e073d7b9567721debef952fe6290c8b0f68e04cd2e8a9
26 +DIST vivaldi-3.3.2022.26_p1-arm64.deb 65262128 BLAKE2B 3bb054b3b6f0d1277ada57fe8276fc0c52f6fe714ff6980fab0f627d444ece747d49241793af29738bf9faf6f867f3d14e23db177aa88ccca24e8e2df425f77f SHA512 bf2b04ad731e3b123542aaf474d6a894dab6ee12100244714a7458c4704045f9c6b3ce60893414866633eb840fcc53b448f7fa30b325ad87d1f86b23fe2afc74
27 +DIST vivaldi-3.3.2022.26_p1-armhf.deb 64322356 BLAKE2B ea6ab8146852a1625516bc165cf11abe907d626ead0641f6c5c8645b68a4dff171e4d8bc3611f6391b0d33009a7ebcffee9f7d67a7863fe0b9745427cff883be SHA512 5f8dd987599be53ad103da28a3e22b4a8eb783900ebbc59726abe4f731bfa3b29fa95a24c4cbba8b7b71157e31ec8ac4c1109cfbc12f9b8c47e36547823b5cd4
28 +DIST vivaldi-3.3.2022.26_p1-i386.deb 70804172 BLAKE2B 73529fd2766c5d7db569f231e51b2a6cbddb4927e8f66a6b7d6e7814b32ac5ea1fdfb71da783712906fbd5210fa973afad3b08d5ad4eb7e22c001ac502b10da9 SHA512 26be9ba625ae03331ad42f4bf0219c9b05b8788ed5b107f1a571396ec21f5d14ab407219012fa5558827d967f7c66f7c3e49cfa3bcacd2140a8cc91c5d0e9b10
29
30 diff --git a/www-client/vivaldi/vivaldi-3.3.2022.26_p1.ebuild b/www-client/vivaldi/vivaldi-3.3.2022.26_p1.ebuild
31 new file mode 100644
32 index 00000000000..a156328cef5
33 --- /dev/null
34 +++ b/www-client/vivaldi/vivaldi-3.3.2022.26_p1.ebuild
35 @@ -0,0 +1,125 @@
36 +# Copyright 1999-2020 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=7
40 +CHROMIUM_LANGS="
41 + af am ar be bg bn ca cs da de de-CH el en-GB en-US eo es es-419 es-PE et eu
42 + fa fi fil fr fy gd gl gu he hi hr hu hy id io is it ja jbo ka kn ko ku lt
43 + lv mk ml mr ms nb nl nn pl pt-BR pt-PT ro ru sc sk sl sq sr sv sw ta te th
44 + tr uk vi zh-CN zh-TW
45 +"
46 +inherit chromium-2 multilib unpacker toolchain-funcs xdg-utils
47 +
48 +#VIVALDI_BRANCH="snapshot"
49 +
50 +VIVALDI_PN="${PN}-${VIVALDI_BRANCH:-stable}"
51 +VIVALDI_BIN="${PN}${VIVALDI_BRANCH/snapshot/-snapshot}"
52 +VIVALDI_HOME="opt/${VIVALDI_BIN}"
53 +DESCRIPTION="A browser for our friends"
54 +HOMEPAGE="https://vivaldi.com/"
55 +VIVALDI_BASE_URI="https://downloads.${PN}.com/${VIVALDI_BRANCH:-stable}/${VIVALDI_PN}_${PV/_p/-}_"
56 +SRC_URI="
57 + amd64? ( ${VIVALDI_BASE_URI}amd64.deb -> ${P}-amd64.deb )
58 + arm64? ( ${VIVALDI_BASE_URI}arm64.deb -> ${P}-arm64.deb )
59 + arm? ( ${VIVALDI_BASE_URI}armhf.deb -> ${P}-armhf.deb )
60 + x86? ( ${VIVALDI_BASE_URI}i386.deb -> ${P}-i386.deb )
61 +"
62 +
63 +LICENSE="Vivaldi"
64 +SLOT="0"
65 +KEYWORDS="-* ~amd64 ~arm ~arm64 ~x86"
66 +RESTRICT="bindist mirror"
67 +
68 +DEPEND="
69 + virtual/libiconv
70 +"
71 +RDEPEND="
72 + dev-libs/expat
73 + dev-libs/glib:2
74 + dev-libs/nspr
75 + dev-libs/nss
76 + media-libs/alsa-lib
77 + media-libs/fontconfig
78 + media-libs/freetype
79 + media-libs/speex
80 + net-print/cups
81 + sys-apps/dbus
82 + sys-libs/libcap
83 + x11-libs/cairo
84 + x11-libs/gdk-pixbuf
85 + x11-libs/gtk+:3
86 + x11-libs/libX11
87 + x11-libs/libXScrnSaver
88 + x11-libs/libXcomposite
89 + x11-libs/libXcursor
90 + x11-libs/libXdamage
91 + x11-libs/libXext
92 + x11-libs/libXfixes
93 + x11-libs/libXi
94 + x11-libs/libXrandr
95 + x11-libs/libXrender
96 + x11-libs/libXtst
97 + x11-libs/pango[X]
98 +"
99 +QA_PREBUILT="*"
100 +S=${WORKDIR}
101 +
102 +src_unpack() {
103 + unpack_deb ${A}
104 +}
105 +
106 +src_prepare() {
107 + iconv -c -t UTF-8 usr/share/applications/${VIVALDI_PN}.desktop > "${T}"/${VIVALDI_PN}.desktop || die
108 + mv "${T}"/${VIVALDI_PN}.desktop usr/share/applications/${VIVALDI_PN}.desktop || die
109 +
110 + sed -i \
111 + -e "s|${VIVALDI_BIN}|${PN}|g" \
112 + usr/share/applications/${VIVALDI_PN}.desktop \
113 + usr/share/xfce4/helpers/${VIVALDI_BIN}.desktop || die
114 +
115 + mv usr/share/doc/${VIVALDI_PN} usr/share/doc/${PF} || die
116 + chmod 0755 usr/share/doc/${PF} || die
117 +
118 + gunzip usr/share/doc/${PF}/changelog.gz || die
119 +
120 + rm \
121 + _gpgbuilder \
122 + etc/cron.daily/${VIVALDI_BIN} \
123 + || die
124 + rmdir \
125 + etc/cron.daily/ \
126 + etc/ \
127 + || die
128 +
129 + local c d
130 + for d in 16 22 24 32 48 64 128 256; do
131 + mkdir -p usr/share/icons/hicolor/${d}x${d}/apps || die
132 + cp \
133 + ${VIVALDI_HOME}/product_logo_${d}.png \
134 + usr/share/icons/hicolor/${d}x${d}/apps/${PN}.png || die
135 + done
136 +
137 + pushd "${VIVALDI_HOME}/locales" > /dev/null || die
138 + chromium_remove_language_paks
139 + popd > /dev/null || die
140 +
141 + eapply_user
142 +}
143 +
144 +src_install() {
145 + rm -r usr/share/appdata || die
146 + mv * "${D}" || die
147 + dosym /${VIVALDI_HOME}/${PN} /usr/bin/${PN}
148 +
149 + fperms 4711 /${VIVALDI_HOME}/${PN}-sandbox
150 +}
151 +
152 +pkg_postrm() {
153 + xdg_desktop_database_update
154 + xdg_icon_cache_update
155 +}
156 +
157 +pkg_postinst() {
158 + xdg_desktop_database_update
159 + xdg_icon_cache_update
160 +}