diff options
author | James Le Cuirot <chewi@gentoo.org> | 2023-04-05 22:02:50 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2023-04-05 22:04:57 +0100 |
commit | 4c5f882f757a48060b48670c22b40c9f7c79e853 (patch) | |
tree | 8e79bb906f79fbc294fc62be4b71b657548510c6 | |
parent | www-client/vivaldi-snapshot: Drop old 5.8.2955.3 (diff) | |
download | gentoo-4c5f882f757a48060b48670c22b40c9f7c79e853.tar.gz gentoo-4c5f882f757a48060b48670c22b40c9f7c79e853.tar.bz2 gentoo-4c5f882f757a48060b48670c22b40c9f7c79e853.zip |
www-client/vivaldi-snapshot: Add version 5.8.2978.3
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
-rw-r--r-- | www-client/vivaldi-snapshot/Manifest | 3 | ||||
-rw-r--r-- | www-client/vivaldi-snapshot/vivaldi-snapshot-5.8.2978.3.ebuild | 217 |
2 files changed, 220 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index b4feb8b8e463..d1f0aa79ca6a 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -1,3 +1,6 @@ DIST vivaldi-snapshot_5.8.2970.3-1_amd64.deb 103027168 BLAKE2B 5ce43f91c5f24fbb80a3dfbf4976bc5cd14ce080f74d34c2ae4843bea2e3b945d32e1d8a058fbc66c7ebb4c82b5b14f078776f0fa998dbccf7eec2fac8f36621 SHA512 33fa39ed9255dbe41780ec01f2d8e8172ce6b84ffdee89939cb32040cfaf1f8f03f18bafb76555fbc52b4e97d71e3f2e6e59735887db364cf21eefb67d1a5118 DIST vivaldi-snapshot_5.8.2970.3-1_arm64.deb 92635600 BLAKE2B e4f3c06074cc7d0ec218172666569a93bfaacaa45e2aa2cfa88606b4c774e98cf70381cd58a5b4c0e4a0b02b85a978a4cc31249bf85c3ee3d0fdc41df3d8c3a6 SHA512 0822daa5572d13cd0774e1eed78baa1883b6db5a493719558ab0ed49bd129d4cd489972ca43d36fc91349496e55a74f88e8147197b10319c387a8fc058af7cf3 DIST vivaldi-snapshot_5.8.2970.3-1_armhf.deb 92473192 BLAKE2B e23a5acef5453067f8620056a353c143e87a043daf00555fafd264feb4a76bccd3b99763bb978050e1c508c34f59f7e21ed234ab21998eb5a07ab16a6dd1aa3c SHA512 fec8f5993f4bc7c204a70884621671bb051d377a301140a92788a24ccc23d597a52f1faffba846cca7a18bd79cf681bd0ca5203e90d9012a9a42e771b8716436 +DIST vivaldi-snapshot_5.8.2978.3-1_amd64.deb 97972172 BLAKE2B ce80fa422f33ca138de1f2afefd2ea26e1c2fc4dfdcfd1a4c382548a5c14a67eb625717f41f856c4f35a7b29755cb5ff64cd494f81a69d75b29b62bde9822675 SHA512 bb7355e480a0234142a35a56e789b8464119addc38fdc245ca73fe7b6624c5f668410fd698b3df11db68ec9b489557b289da48aefd63181bf4e79df94d5655a9 +DIST vivaldi-snapshot_5.8.2978.3-1_arm64.deb 92674984 BLAKE2B b660ef3370c68636d9132a8e2bf32cf5b2f9cb44984e339310edcfa422775ba2ac06d2f0ea708a43e772ae503ffdf6df86cef8857e013a5f7dbe6d6dc70f2154 SHA512 c28d45e38518a7f68e6d1f89a4d6cff885820937a0807b51379cd699899633464b627120245d1a729d904b5e52e8c45ff4e14189237a34dfa4b103267bef1dfe +DIST vivaldi-snapshot_5.8.2978.3-1_armhf.deb 92498876 BLAKE2B 6ae36b35f1e45cb46c7dad65d8323f0af6ad40b383073b6b800c58f9c36497fb93444f9826752b5ae891bcd07aa71357ef3439290fe66161688cd7b54137d7a9 SHA512 74028fcff3b2c8408a0b4d4d4e0780a169f6d86fb33b7af79b088a74ac627b5b4c83f7cd79e6fdb38aaebe66689820636b0142fa3451ccb0822f1cb4e578133c diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-5.8.2978.3.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.8.2978.3.ebuild new file mode 100644 index 000000000000..28280ba78958 --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.8.2978.3.ebuild @@ -0,0 +1,217 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CHROMIUM_VERSION="106" +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 linux-info 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="gtk proprietary-codecs qt5 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] + gtk? ( gui-libs/gtk:4 x11-libs/gtk+:3 ) + proprietary-codecs? ( media-video/ffmpeg-chromium:${CHROMIUM_VERSION} ) + qt5? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtwidgets:5 + ) + widevine? ( www-plugins/chrome-binary-plugins ) +" + +QA_PREBUILT="*" +CONFIG_CHECK="~CPU_FREQ" +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 + + if ! use qt5; then + rm ${VIVALDI_HOME}/libqt5_shim.so || 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 +} |