Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/vivaldi-snapshot/
Date: Sat, 02 Apr 2022 08:53:46
Message-Id: 1648889505.3e42d6c7d340827df802a824280cd868669a0883.chewi@gentoo
1 commit: 3e42d6c7d340827df802a824280cd868669a0883
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 2 08:51:45 2022 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 2 08:51:45 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e42d6c7
7
8 www-client/vivaldi-snapshot: Add version 5.2.2623.12
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
12
13 www-client/vivaldi-snapshot/Manifest | 3 +
14 .../vivaldi-snapshot-5.2.2623.12.ebuild | 204 +++++++++++++++++++++
15 2 files changed, 207 insertions(+)
16
17 diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest
18 index 93230eea1f6a..5d63c4f9f869 100644
19 --- a/www-client/vivaldi-snapshot/Manifest
20 +++ b/www-client/vivaldi-snapshot/Manifest
21 @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_5.2.2621.3-1_armhf.deb 78893836 BLAKE2B 14782d76e3fcc13704
22 DIST vivaldi-snapshot_5.2.2623.10-1_amd64.deb 87804176 BLAKE2B b35073433a8cd4ee0a8e7c5d6eebf2541bc499f70be653fb92cc0bc61d36cae9108927511d8a893ba0362670b5b6a52e865f68715b0cf6f6f5daea2bfe76044e SHA512 9a1e466a31b2af9b31ece27e221a1b175d51a6cb3ba3788d66b7b1f4ab1aefb421084a0f17e13cff694ba4975950e5e10a9c26347db211bd8e60d65ff9354531
23 DIST vivaldi-snapshot_5.2.2623.10-1_arm64.deb 83010508 BLAKE2B 5efbe54d43fff49442985e84c1a8e2db25f3ee3cd493cab7b1815c5a07370737f94c19c7172a4c86c53748dd9a20567108eb636ae532c9708cb5c2a0da8b030b SHA512 562254434f4d6bd2b1b8abc7f3ccc23c601cd2eb3eca20055c3f262814188f7c4734c9ddc4c90f8a9ecbb94a2833abd40ab3480e52716937a572489398d7a90d
24 DIST vivaldi-snapshot_5.2.2623.10-1_armhf.deb 78897080 BLAKE2B eff2cf8a1aeab3a088b8f1488874369e77bc29bd3dc4b2617e124f260a4528f9bc4e5250654ac176b9909990da2e5cf299348830988879cdf0282c60131c1cbb SHA512 703468ca2f6477ed59d6e3b5195bd27818eaba1ef3ba11c3f227a027ed478f63d24652f22d7cdea60c25a5f4e72bf622cc2a3650059d73feca4949dfc6000ebd
25 +DIST vivaldi-snapshot_5.2.2623.12-1_amd64.deb 87801824 BLAKE2B f477942ccf347fb1101365a4393622ad95f50aa1838b2adb35665c43028ab9890abaaeace3763e4dd1e03172b214d6eb808a555c9ad8261cbcde723cea8cd6b1 SHA512 06a39fe6c5a5b7f2d8d2e696302edc0edff4744cd2d2cb89ceeb9d9b61a052eba8b9494afbfc1640e0071618930a32a9e7420ed34e37285b8a800df873103c07
26 +DIST vivaldi-snapshot_5.2.2623.12-1_arm64.deb 83018368 BLAKE2B b04ba3d53729501850895464e102d5d1226c225302ca35e4088100dba34ef6bc643566688f9d1bd2436e883b9238e566a3bad74e2f24e75e6065495740f8fbb8 SHA512 618e62f1bae236f851928e7bd2191fc1039b903ce923e17478cec7b58c727adf894b66d952931fdd4aeb44c2bc185d053faee3532d3a315d096d225cc057e475
27 +DIST vivaldi-snapshot_5.2.2623.12-1_armhf.deb 78912876 BLAKE2B a598aa40aa8c0ba0283ef93e9b658b3ad3c57e11da8b5963a40592a74fb8981b69f73dc70dbcdf73c97dae1c4e2b3642a4ff8160a088fc2fe048f109f202da79 SHA512 6548e97f624804481cc173c2e6f4e624c0eb66dc8da782ff3f6f9738063d6e5520346d9b8e9916772cf2f789e310037d4a9c02f24f3eee84a75b8ecd409df6d2
28
29 diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-5.2.2623.12.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.2.2623.12.ebuild
30 new file mode 100644
31 index 000000000000..d6cfbbe0cedf
32 --- /dev/null
33 +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.2.2623.12.ebuild
34 @@ -0,0 +1,204 @@
35 +# Copyright 1999-2022 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=8
39 +
40 +CHROMIUM_VERSION="100"
41 +CHROMIUM_LANGS="
42 + af
43 + am
44 + ar
45 + az
46 + be
47 + bg
48 + bn
49 + ca
50 + cs
51 + da
52 + de
53 + de-CH
54 + el
55 + en-GB
56 + en-US
57 + eo
58 + es
59 + es-419
60 + es-PE
61 + et
62 + eu
63 + fa
64 + fi
65 + fil
66 + fr
67 + fy
68 + gd
69 + gl
70 + gu
71 + he
72 + hi
73 + hr
74 + hu
75 + hy
76 + id
77 + io
78 + is
79 + it
80 + ja
81 + jbo
82 + ka
83 + kab
84 + kn
85 + ko
86 + ku
87 + lt
88 + lv
89 + mk
90 + ml
91 + mr
92 + ms
93 + nb
94 + nl
95 + nn
96 + pa
97 + pl
98 + pt-BR
99 + pt-PT
100 + ro
101 + ru
102 + sc
103 + sk
104 + sl
105 + sq
106 + sr
107 + sr-Latn
108 + sv
109 + sw
110 + ta
111 + te
112 + th
113 + tr
114 + uk
115 + vi
116 + zh-CN
117 + zh-TW
118 +"
119 +
120 +inherit chromium-2 desktop unpacker xdg
121 +
122 +VIVALDI_PN="${PN/%vivaldi/vivaldi-stable}"
123 +VIVALDI_HOME="opt/${PN}"
124 +DESCRIPTION="A browser for our friends"
125 +HOMEPAGE="https://vivaldi.com/"
126 +
127 +if [[ ${PV} = *_p* ]]; then
128 + DEB_REV="${PV#*_p}"
129 +else
130 + DEB_REV=1
131 +fi
132 +
133 +KEYWORDS="-* ~amd64 ~arm ~arm64"
134 +VIVALDI_BASE_URI="https://downloads.vivaldi.com/${VIVALDI_PN#vivaldi-}/${VIVALDI_PN}_${PV%_p*}-${DEB_REV}_"
135 +
136 +RE="\bamd64\b"; [[ ${KEYWORDS} =~ ${RE} ]] && SRC_URI+=" amd64? ( ${VIVALDI_BASE_URI}amd64.deb )"
137 +RE="\barm\b"; [[ ${KEYWORDS} =~ ${RE} ]] && SRC_URI+=" arm? ( ${VIVALDI_BASE_URI}armhf.deb )"
138 +RE="\barm64\b"; [[ ${KEYWORDS} =~ ${RE} ]] && SRC_URI+=" arm64? ( ${VIVALDI_BASE_URI}arm64.deb )"
139 +RE="\bx86\b"; [[ ${KEYWORDS} =~ ${RE} ]] && SRC_URI+=" x86? ( ${VIVALDI_BASE_URI}i386.deb )"
140 +
141 +LICENSE="Vivaldi"
142 +SLOT="0"
143 +IUSE="proprietary-codecs widevine"
144 +RESTRICT="bindist mirror"
145 +
146 +RDEPEND="
147 + app-accessibility/at-spi2-atk:2
148 + app-accessibility/at-spi2-core:2
149 + dev-libs/atk
150 + dev-libs/expat
151 + dev-libs/glib:2
152 + dev-libs/nspr
153 + dev-libs/nss
154 + media-libs/alsa-lib
155 + media-libs/mesa[gbm(+)]
156 + net-print/cups
157 + sys-apps/dbus
158 + x11-libs/cairo
159 + x11-libs/libdrm
160 + x11-libs/libX11
161 + x11-libs/libxcb
162 + x11-libs/libXcomposite
163 + x11-libs/libXdamage
164 + x11-libs/libXext
165 + x11-libs/libXfixes
166 + x11-libs/libxkbcommon
167 + x11-libs/libXrandr
168 + x11-libs/pango[X]
169 + proprietary-codecs? ( media-video/ffmpeg-chromium:${CHROMIUM_VERSION} )
170 + widevine? ( www-plugins/chrome-binary-plugins )
171 +"
172 +
173 +QA_PREBUILT="*"
174 +S="${WORKDIR}"
175 +
176 +src_unpack() {
177 + unpack_deb ${A}
178 +}
179 +
180 +src_prepare() {
181 + # Rename docs directory to our needs.
182 + mv usr/share/doc/{${VIVALDI_PN},${PF}}/ || die
183 +
184 + # Decompress the docs.
185 + gunzip usr/share/doc/${PF}/changelog.gz || die
186 +
187 + # The appdata directory is deprecated.
188 + mv usr/share/{appdata,metainfo}/ || die
189 +
190 + # Remove cron job for updating from Debian repos.
191 + rm etc/cron.daily/${PN} ${VIVALDI_HOME}/cron/${PN} || die
192 + rmdir etc/{cron.daily/,} ${VIVALDI_HOME}/cron/ || die
193 +
194 + # Remove scripts that will most likely break things.
195 + rm -vf ${VIVALDI_HOME}/update-{ffmpeg,widevine} || die
196 +
197 + pushd ${VIVALDI_HOME}/locales > /dev/null || die
198 + rm ja-KS.pak || die # No flag for Kansai as not in IETF list.
199 + chromium_remove_language_paks
200 + popd > /dev/null || die
201 +
202 + if use proprietary-codecs; then
203 + rm ${VIVALDI_HOME}/lib/libffmpeg.so || die
204 + rmdir ${VIVALDI_HOME}/lib || die
205 + fi
206 +
207 + eapply_user
208 +}
209 +
210 +src_install() {
211 + mv */ "${D}" || die
212 + dosym ../../${VIVALDI_HOME}/${PN} /usr/bin/${VIVALDI_PN}
213 + fperms 4711 /${VIVALDI_HOME}/vivaldi-sandbox
214 +
215 + local logo size
216 + for logo in "${ED}"/${VIVALDI_HOME}/product_logo_*.png; do
217 + size=${logo##*_}
218 + size=${size%.*}
219 + newicon -s "${size}" "${logo}" ${PN}.png
220 + done
221 +
222 + if use proprietary-codecs; then
223 + dosym ../../usr/$(get_libdir)/chromium/libffmpeg.so.${CHROMIUM_VERSION} \
224 + /${VIVALDI_HOME}/libffmpeg.so.$(ver_cut 1-2)
225 + fi
226 +
227 + if use widevine; then
228 + dosym ../../usr/$(get_libdir)/chromium-browser/WidevineCdm \
229 + /${VIVALDI_HOME}/WidevineCdm
230 + else
231 + rm "${ED}"/${VIVALDI_HOME}/WidevineCdm || die
232 + fi
233 +
234 + case ${PN} in
235 + vivaldi) dosym ${VIVALDI_PN} /usr/bin/${PN} ;;
236 + vivaldi-snapshot) dosym ${PN} /${VIVALDI_HOME}/vivaldi ;;
237 + esac
238 +}