diff options
author | James Le Cuirot <chewi@gentoo.org> | 2022-11-13 22:46:39 +0000 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2022-11-13 22:46:39 +0000 |
commit | 12ec5a7ecbaee58503b55e9440417f723075a49c (patch) | |
tree | b361e416a8cfe810a9633f295b5f3c3ca9983255 /www-client | |
parent | app-emulation/plus42: add 1.0.13 (diff) | |
download | gentoo-12ec5a7ecbaee58503b55e9440417f723075a49c.tar.gz gentoo-12ec5a7ecbaee58503b55e9440417f723075a49c.tar.bz2 gentoo-12ec5a7ecbaee58503b55e9440417f723075a49c.zip |
www-client/vivaldi-snapshot: Add version 5.6.2839.3
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'www-client')
-rw-r--r-- | www-client/vivaldi-snapshot/Manifest | 3 | ||||
-rw-r--r-- | www-client/vivaldi-snapshot/vivaldi-snapshot-5.6.2839.3.ebuild | 207 |
2 files changed, 210 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index 99f4f1bec958..28f82b2f48f4 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_5.6.2824.8-1_armhf.deb 90219588 BLAKE2B 8e1e5cb85af3fabc00 DIST vivaldi-snapshot_5.6.2829.3-1_amd64.deb 100962232 BLAKE2B 8cbb2f8016cb8b0246ca14fce68a44f4dc2e68973b427bf6052df01876d439693d0b28e68aed0a06b636adaa6594c56bcd35d2e7c94e3668e36915657fefe40e SHA512 1b691c9175d749e3071a50e8d11b3a0e97226fd44393ec36b87b0b28967d7b45b6e21d5bd6a5e073f071e2d8dea0f80e9c5c7a1f690d14749f3b145648c241d9 DIST vivaldi-snapshot_5.6.2829.3-1_arm64.deb 90869812 BLAKE2B b5d05b995cbe944f0dbd9d5e9d4157b37e36505b7ecf76e45c065d1a6584463bb0c234418e2dfc448e6962f36b66b75e7443eea044b91f8e74416b5b03bc4974 SHA512 f367d05d1447de884e6fcf30527366a270ccb256b1211ac5b5842adf8baac7969b7b995f15aa0420dffacb855433366ee2d5288a399f0fe3448662e31b648240 DIST vivaldi-snapshot_5.6.2829.3-1_armhf.deb 90224028 BLAKE2B 0774d89cc077f6f52605804e5d59c79b5996d39c511f270e3eadb7ab953c49a405428da092cc95e85a2a497139aaa265b39526279f12047d48b9a15eeb8aa067 SHA512 5b31fd12b1eecba0e0d2de3495058cd3db8eb134896f9b7841dcfe01d855fb309682491d54c32b4b090476401f7485e3f6ad11a2032f7c64546535ec92888413 +DIST vivaldi-snapshot_5.6.2839.3-1_amd64.deb 101051284 BLAKE2B 908a5f05abfc072cfcbe7c59a31d8a8c4b877118e2b9ec303da6e8e4f15347399ff525a690ee7fc9fc5804aa5bb8bf8739440b753ec04df34a9b6ad639ce4ed6 SHA512 aff58bba17cf62f63ce991c032a87a3b3f5bd92095c8c5c8991f20f3667cc81759cbf23173d7414731a40b1e6f742c3c6994b6fd678676a1145fa29e1a6a93d4 +DIST vivaldi-snapshot_5.6.2839.3-1_arm64.deb 90954576 BLAKE2B 5799cf85c059a59978bfb50f1abbc36020f84d1388de3691e049cd6e2c59680675c2514986ed79c5a2fd1e4a41ded30de6cbc02ccec7c6a56195e6439dc9c5b9 SHA512 1751c374bb5a26375cfddd994235aca73461b87b0be25687722789b83676c8ed427481cae22d318210a0f4a7cea95c3083cf8b9a9c9d67eb95b37d031c041a58 +DIST vivaldi-snapshot_5.6.2839.3-1_armhf.deb 90294052 BLAKE2B 5c3d0b42c1a7c245403a3ae689e430c3b7c36d04e770faf1d4b3aab4107cdbfbd20d673d1236211f9b37406f9e366b69e339572af4ad420e7c674355481f3460 SHA512 0f581741de6c2398eab5dbb672f46a51f847f9d41d2045ea67daa86d376f5540a93c6996d2277f98ddbf4ac739b35e076ed9819e8a7c05e86127b5f7ad8a1fb5 diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-5.6.2839.3.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.6.2839.3.ebuild new file mode 100644 index 000000000000..82e87d9746ea --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.6.2839.3.ebuild @@ -0,0 +1,207 @@ +# 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-core-2.46.0:2 + ( app-accessibility/at-spi2-atk 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 +} |