diff options
author | James Le Cuirot <chewi@gentoo.org> | 2022-12-10 11:37:17 +0000 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2022-12-10 11:37:17 +0000 |
commit | a90556fab475f4d0658e684fbefe186694a7bb49 (patch) | |
tree | 6bd9587749021de4303e5b29ef6c8d0d3f032651 /www-client/vivaldi-snapshot | |
parent | dev-python/curtsies: Remove old (diff) | |
download | gentoo-a90556fab475f4d0658e684fbefe186694a7bb49.tar.gz gentoo-a90556fab475f4d0658e684fbefe186694a7bb49.tar.bz2 gentoo-a90556fab475f4d0658e684fbefe186694a7bb49.zip |
www-client/vivaldi-snapshot: Add version 5.7.2876.11
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.7.2876.11.ebuild | 207 |
2 files changed, 210 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index 062c5f4b99c1..31b98cf033c3 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_5.6.2867.29-1_armhf.deb 91071132 BLAKE2B daf29e86d578d6363 DIST vivaldi-snapshot_5.6.2867.32-1_amd64.deb 101313616 BLAKE2B c623d335dcfbb313a2de0d18658e75d3a2bb818c08035374f1903fe90fbcfd54c524ae6a670965ec2ab6fbf9f90017f635896271bf2351b14fd37b3ebca15dc0 SHA512 e8145137a56529245d743dc405628ac066a74ff5dafaded273855b2d655d8c481aaa01ff040de89722bb0e5ca67988e87859fe1cf437b6cc8312369a024f975e DIST vivaldi-snapshot_5.6.2867.32-1_arm64.deb 90946192 BLAKE2B d604f4bcac4a13033d19331130214c7e8d33073fe748d8822e52896a7ccb53decf5d078bed6544a61614ed0f907bbf26fbdabe85f75d2e345d9929234aaa7701 SHA512 8f1a4b9b4b6a3a93d4746acb2e7c87de110e6b3c811817575e3c421695f3231952719e97d14950cafa8beedf1de359dcf88755af4b0e258b485cdbc75a3d7375 DIST vivaldi-snapshot_5.6.2867.32-1_armhf.deb 91077136 BLAKE2B 7cc546a408a1d6bc37fdcc5e2e9f5d5ded8e30504c21c120d8fec3c0074f48085d4d3cd90d3b92038b5f168b41db67ac988b02e0ecb898ce543c5258834546b4 SHA512 24fc0b166b38cd02ce277497686abca4178a0b2a245cbe7872c9be0c004cdc6f7818b16746736915e9e41680930082675f6c4aaeb796022b55541499153ee0b7 +DIST vivaldi-snapshot_5.7.2876.11-1_amd64.deb 101306092 BLAKE2B 02bebfdd23e3ff8c658d5d760911b30e4228e4a4ff744a5ea126c8523300f6313192e207bfabc14e0e8673f21fe104b059cfa9acf65e605027323540a6703595 SHA512 7e3b91318681a478f260c5df6f2cf9fe0454b29abcde5a7fb8758e75f979ac77e05edfd6fe79adf4c28d999abfaee59a76a82fb0de75f08ec67824ff99c747f7 +DIST vivaldi-snapshot_5.7.2876.11-1_arm64.deb 90955988 BLAKE2B 36f23f66a51c8de9c3243eeeab59cd9ebd2f9aa9cf15f68a6018ab770558c79d776ae72c95f89ebd2b8005bfc28ccb610ce725e100295b00cd8b07104d711047 SHA512 98aed92600e5d288cfc62cd4c88fba0f7a1035183f44fd725a0f2e388c0e283b9a13957a6bb7ec46599b15bc596541704bfa309f124d049ada5c681adc6cacec +DIST vivaldi-snapshot_5.7.2876.11-1_armhf.deb 91095176 BLAKE2B 7322e5d5e17665b4a36b7f26fc8e02b658174fea156258055dcfee8ec3d4b48199d337fb25e8ec46a70de51e4c73e22ec9e909d1f6feb4c679691b49a288119a SHA512 1f6acff34c974964a20f88bb3c8832b2a49ea4ac6ad7fbaf361292185f3eb9521d67a3c049a537fc46284522086a7b52e1f81a50ea29569d98da76a1eca92182 diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-5.7.2876.11.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.7.2876.11.ebuild new file mode 100644 index 000000000000..82e87d9746ea --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.7.2876.11.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 +} |