diff options
author | James Le Cuirot <chewi@gentoo.org> | 2023-03-05 23:04:59 +0000 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2023-03-05 23:04:59 +0000 |
commit | 300e9f3671530a1e78c688f48633e87a8f0534f4 (patch) | |
tree | aee8cffed85d22fc607e8e5ec235662510001de9 /www-client/vivaldi-snapshot | |
parent | app-text/kjots: drop 5.1.0-r2 (diff) | |
download | gentoo-300e9f3671530a1e78c688f48633e87a8f0534f4.tar.gz gentoo-300e9f3671530a1e78c688f48633e87a8f0534f4.tar.bz2 gentoo-300e9f3671530a1e78c688f48633e87a8f0534f4.zip |
www-client/vivaldi-snapshot: Add version 5.8.2950.3
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.8.2950.3.ebuild | 216 |
2 files changed, 219 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index 2798d099ea20..dbb55887eea6 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_5.7.2921.41-1_armhf.deb 90776464 BLAKE2B e5675c7b4d51ad95f DIST vivaldi-snapshot_5.8.2936.3-1_amd64.deb 101610392 BLAKE2B c15dd96f5042e2526af582a403a6cd0d2044bc98de189bff9dd68174eb59c15fe7a35956421207fe39e372337fb0706940c40b9ae1ab44574a7e01920e84b16c SHA512 5a6ce42a40a474b459edca64589433caeac4ef36bd13b7d95d3433de4fd8cd55e1c923d4913f5904d40f055d043ed2f9296eef6a4ec116936b9d2f13c951df20 DIST vivaldi-snapshot_5.8.2936.3-1_arm64.deb 91123504 BLAKE2B 1867304c33cf1617dd906c45d13df3c2e72f0b1d26e4af1e5e81574409f2033b16644e13d58dc58b1bde009fa5e12f95a028dc8a1c03a61aa560d214430c754c SHA512 2d320899b42bda7ba75a030f13200392c974bf87b4212305cbc91933185960a0c51658e80381756e84f92ed68e04988bf873b243bf5f5582089bb053768fd954 DIST vivaldi-snapshot_5.8.2936.3-1_armhf.deb 90795304 BLAKE2B 77db349d26f05c1834349202db5c26e0a69a1f91203913700838a947fa52ffd99f0e1cf33c67edd19fe78db1114826296767e062805582f693f7f6c9208b66dc SHA512 e7b12bdcb7b3185641cdc6a40c8df497e10082b28d45048f45b3f271b778384f024a8b114ddc71f38b7c5163f08880ae438f17aef01c13bcefbb377289225dd8 +DIST vivaldi-snapshot_5.8.2950.3-1_amd64.deb 101635184 BLAKE2B a8bfd884d8ffd797e83d9a30a1d274430e7ba87569013abf81d31e6e295d154d85ed4add8429c5b450c480998a0914781ba2c67c8817fe91cc71052bec975302 SHA512 459a8ecb12ea67e6e3dee8432329de633156be6a463b45828901e204d76511faaf2e6517ae51c5c7e15a7d08e8104ea8c2b38d604707711a6e2b9d1544c8a108 +DIST vivaldi-snapshot_5.8.2950.3-1_arm64.deb 91128240 BLAKE2B fe67411b689303d2d6990a2fb4e7555cd52d4c9452803caacc828459434b8ba5bdc9f564363c5cd4016c45868af0c6d51802cf375fae01218fd8b269c25865b1 SHA512 c212dabc72781f5b4a4b9fe7761ba4f00eeeded022d28af48f67598218270b4e839d98bd7914f1be88ec87ea2eb04345ef5c5bb46ab34767967dfd10040c6ab2 +DIST vivaldi-snapshot_5.8.2950.3-1_armhf.deb 90793860 BLAKE2B cfa0db482f430bf1c619b936b76d35cd89dd5c0224c35494afa2418c818727b60fdfa11b61093b0e02edeb524ad2649757c6d9f22235b9ecad4ca7caf7169210 SHA512 d1fd04f2a2563ad81fffd18402832b24e1de6c3bc59220071f505670f806155f33af3680ddebff405be642e34c61920c98604c9a02989bb6e13242a8ff33ff71 diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-5.8.2950.3.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.8.2950.3.ebuild new file mode 100644 index 000000000000..9c296c0f9dbd --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.8.2950.3.ebuild @@ -0,0 +1,216 @@ +# 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 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="*" +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 +} |