diff options
author | James Le Cuirot <chewi@gentoo.org> | 2022-08-06 09:42:41 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2022-08-06 09:47:00 +0100 |
commit | 6176917de7b98bdaf6a925952c97b3a549725c0d (patch) | |
tree | 80f3da5babee5221e219017c7e91add685b012f2 /www-client/vivaldi-snapshot | |
parent | www-apps/element: add 1.11.2 (diff) | |
download | gentoo-6176917de7b98bdaf6a925952c97b3a549725c0d.tar.gz gentoo-6176917de7b98bdaf6a925952c97b3a549725c0d.tar.bz2 gentoo-6176917de7b98bdaf6a925952c97b3a549725c0d.zip |
www-client/vivaldi-snapshot: www-client/vivaldi-snapshot: Add version 5.4.2753.19
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'www-client/vivaldi-snapshot')
-rw-r--r-- | www-client/vivaldi-snapshot/Manifest | 3 | ||||
-rw-r--r-- | www-client/vivaldi-snapshot/vivaldi-snapshot-5.4.2753.19.ebuild | 206 |
2 files changed, 209 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index decb776fa82c..591e86c96ca0 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -1,6 +1,9 @@ DIST vivaldi-snapshot_5.4.2741.3-1_amd64.deb 97580736 BLAKE2B e76416c32aebdb7f7d165def46ae6e40dcd949a90e817603a31a4555ddde8b4f4828a24399c66d54dc073f3015ac076d6ad1f2e2b6c4fbb0aa55c057abd3e03b SHA512 f84748c0d2e7acd0635db6f68f4355b6c2081c84866a3e2b0ecf2140dfd53e53083757f7ada621c5dc36ce00c840746192e07331c7a497e6358352a6dcd87b6d DIST vivaldi-snapshot_5.4.2741.3-1_arm64.deb 87844892 BLAKE2B ea39c175f71fd5d9d5b5fbe0a563feed363eb61f0bfa4d20d81747849347fa1e61190c0221359862c47b2c8fab332dee4e54dcf5760430629b6c821892108870 SHA512 1597ddd0a8cbaada0f42972f59c76d1b64f4753a2e25fe93385075c9030859c014ecd0aa0de162e2650fb79037a70bb7dac40a40117fc9e283d88fec05060695 DIST vivaldi-snapshot_5.4.2741.3-1_armhf.deb 88390184 BLAKE2B 9de3bba71b70d80bc5477e8d272c216ed446c2df153c57e6230a50925dc151cbd33ed0048adf2a79e21c2e8ce402cb049fa72bcb41ade7835e41b058e7745a2c SHA512 e725caa515382bf94b289849e134fa39165b322628389b2531598c4755bc0573b7b61a72fa68aee11779791943e460d27b6b7afeb733755ecebaa21e408bba1e +DIST vivaldi-snapshot_5.4.2753.19-1_amd64.deb 97606564 BLAKE2B 4196bdf0151dd1f1f108a01b65ebde08f2a5622e30da88fc635c9e43535d7a983f77953911e214da573589430591b401e5981f7c62033b35f3719fb0f2301769 SHA512 1e4fe56d4c0b92a39382bf5e87d4b7efb20ef3f585ad93535e5d269a935420b09752e453ab650ba6aa88fdf6f6900d232ae1b1390ab7630fcb8cff35a21c6ed9 +DIST vivaldi-snapshot_5.4.2753.19-1_arm64.deb 87860620 BLAKE2B 80d0ff6f3e84ecf18c54c62ba6249650334e9f0cc965599a32e45858c51db1c3b7e4eef57e406acbb55a9e6b6dc14d16f7da1b3a186928b5c2b925e7d6e37437 SHA512 e9b12fa0c96a9af93d06c04b60d9aa39debdc47bc7e3f31bcbb6943bd7437ce0ee3161f372ffd66058bfa5a8e15a7c7d308b0962049c67e734dedbfac732f405 +DIST vivaldi-snapshot_5.4.2753.19-1_armhf.deb 88363304 BLAKE2B 43777e10dbf7cdeb85fc9e90afe8e5a098641aa94114e2f7810f8d7b228a877cb1521032bdd953a73895b7048df148d7494002bc6aed36a71f9a0b6209fee825 SHA512 5849b9b3234f4b72ad8c29fa7ba497f692a014bd4497093f1b13134d86e66498ca17f1034836102bd1006c8b186b60ada2a667d087e369f72189e2e9ac7435df DIST vivaldi-snapshot_5.4.2753.3-1_amd64.deb 97611760 BLAKE2B bed4d69b994bdd998adaea722da670382e2b7d41a2e7f8dea7cd05b985a67901f65ec2eff73f38b8f4743423b0374fd2f57eb1b797029b3668d2a2a21c008fb2 SHA512 e3485b3526e72f23012151f034e884124ef0c689dded99dd30ff4fc261af90a1d1ff487ae8c68c700972742dbb8e94bf51ec2a25604fb4cd79e8f4c1ccebdeb2 DIST vivaldi-snapshot_5.4.2753.3-1_arm64.deb 87892432 BLAKE2B fe3cb84a19964981b9a1adc286b4167d7451c5d6288acd7a064ba95f036e674fc342fe31e74bfcf1af69370af99ca4965bf20442d996a01b5c91e17455f88db0 SHA512 1141a10a34bf45e48d9d20eda56fb83bc43aa13f8eeb2bba0fe91483d599f18bf9b5335ab6c154852994ae32f65bb19153ac2984622d2d5b5bc31860d75b7321 DIST vivaldi-snapshot_5.4.2753.3-1_armhf.deb 88378860 BLAKE2B 2b74af443ad7147653a3128df1c30f543ed888b8c5725549d4d95c23dc7df4dc54021c7783b831722c64958a78386528c860696a8c954cf0a34e97513b16daa3 SHA512 35a03c808fa6b90acde4a3702e5fc425cca97ea38f6289730e3edaa0295bc2318fe9858da9285c313ce878aa040dafa15d7f8f2707a2eb7eb082db6ccf5fab3f diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-5.4.2753.19.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.4.2753.19.ebuild new file mode 100644 index 000000000000..cc815568ad94 --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.4.2753.19.ebuild @@ -0,0 +1,206 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CHROMIUM_VERSION="102" +CHROMIUM_LANGS=" + af + am + ar + az + be + bg + bn + ca + cs + da + de + de-CH + el + en-GB + en-US + eo + es + es-419 + es-PE + et + eu + fa + fi + fil + fr + fy + gd + gl + gu + he + hi + hr + hu + hy + id + io + is + it + ja + jbo + ka + kab + kn + ko + ku + lt + lv + mk + ml + mr + ms + nb + nl + nn + pa + pl + pt-BR + pt-PT + ro + ru + sc + sk + sl + sq + sr + sr-Latn + sv + sw + ta + te + th + tr + uk + ur + vi + zh-CN + zh-TW +" + +inherit chromium-2 desktop unpacker xdg + +VIVALDI_PN="${PN/%vivaldi/vivaldi-stable}" +VIVALDI_HOME="opt/${PN}" +DESCRIPTION="A browser for our friends" +HOMEPAGE="https://vivaldi.com/" + +if [[ ${PV} = *_p* ]]; then + DEB_REV="${PV#*_p}" +else + DEB_REV=1 +fi + +KEYWORDS="-* ~amd64 ~arm ~arm64" +VIVALDI_BASE_URI="https://downloads.vivaldi.com/${VIVALDI_PN#vivaldi-}/${VIVALDI_PN}_${PV%_p*}-${DEB_REV}_" + +RE="\bamd64\b"; [[ ${KEYWORDS} =~ ${RE} ]] && SRC_URI+=" amd64? ( ${VIVALDI_BASE_URI}amd64.deb )" +RE="\barm\b"; [[ ${KEYWORDS} =~ ${RE} ]] && SRC_URI+=" arm? ( ${VIVALDI_BASE_URI}armhf.deb )" +RE="\barm64\b"; [[ ${KEYWORDS} =~ ${RE} ]] && SRC_URI+=" arm64? ( ${VIVALDI_BASE_URI}arm64.deb )" +RE="\bx86\b"; [[ ${KEYWORDS} =~ ${RE} ]] && SRC_URI+=" x86? ( ${VIVALDI_BASE_URI}i386.deb )" + +LICENSE="Vivaldi" +SLOT="0" +IUSE="proprietary-codecs widevine" +RESTRICT="bindist mirror" + +RDEPEND=" + app-accessibility/at-spi2-atk:2 + app-accessibility/at-spi2-core:2 + dev-libs/atk + dev-libs/expat + dev-libs/glib:2 + dev-libs/nspr + dev-libs/nss + media-libs/alsa-lib + media-libs/mesa[gbm(+)] + net-print/cups + sys-apps/dbus + x11-libs/cairo + x11-libs/libdrm + x11-libs/libX11 + x11-libs/libxcb + x11-libs/libXcomposite + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libxkbcommon + x11-libs/libXrandr + x11-libs/pango[X] + || ( gui-libs/gtk:4 x11-libs/gtk+:3 ) + proprietary-codecs? ( media-video/ffmpeg-chromium:${CHROMIUM_VERSION} ) + widevine? ( www-plugins/chrome-binary-plugins ) +" + +QA_PREBUILT="*" +S="${WORKDIR}" + +src_unpack() { + unpack_deb ${A} +} + +src_prepare() { + # Rename docs directory to our needs. + mv usr/share/doc/{${VIVALDI_PN},${PF}}/ || die + + # Decompress the docs. + gunzip usr/share/doc/${PF}/changelog.gz || die + + # The appdata directory is deprecated. + mv usr/share/{appdata,metainfo}/ || die + + # Remove cron job for updating from Debian repos. + rm etc/cron.daily/${PN} ${VIVALDI_HOME}/cron/${PN} || die + rmdir etc/{cron.daily/,} ${VIVALDI_HOME}/cron/ || die + + # Remove scripts that will most likely break things. + rm -vf ${VIVALDI_HOME}/update-{ffmpeg,widevine} || die + + pushd ${VIVALDI_HOME}/locales > /dev/null || die + rm ja-KS.pak || die # No flag for Kansai as not in IETF list. + chromium_remove_language_paks + popd > /dev/null || die + + if use proprietary-codecs; then + rm ${VIVALDI_HOME}/lib/libffmpeg.so || die + rmdir ${VIVALDI_HOME}/lib || die + fi + + eapply_user +} + +src_install() { + mv */ "${D}" || die + dosym ../../${VIVALDI_HOME}/${PN} /usr/bin/${VIVALDI_PN} + fperms 4711 /${VIVALDI_HOME}/vivaldi-sandbox + + local logo size + for logo in "${ED}"/${VIVALDI_HOME}/product_logo_*.png; do + size=${logo##*_} + size=${size%.*} + newicon -s "${size}" "${logo}" ${PN}.png + done + + if use proprietary-codecs; then + dosym ../../usr/$(get_libdir)/chromium/libffmpeg.so.${CHROMIUM_VERSION} \ + /${VIVALDI_HOME}/libffmpeg.so.$(ver_cut 1-2) + fi + + if use widevine; then + dosym ../../usr/$(get_libdir)/chromium-browser/WidevineCdm \ + /${VIVALDI_HOME}/WidevineCdm + else + rm "${ED}"/${VIVALDI_HOME}/WidevineCdm || die + fi + + case ${PN} in + vivaldi) dosym ${VIVALDI_PN} /usr/bin/${PN} ;; + vivaldi-snapshot) dosym ${PN} /${VIVALDI_HOME}/vivaldi ;; + esac +} |