diff options
author | James Le Cuirot <chewi@gentoo.org> | 2023-08-24 23:32:09 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2023-08-24 23:32:09 +0100 |
commit | ce42021325fb035174a60d92820463a6b075394e (patch) | |
tree | 7e20e23e55a015ddfa7b8b63e88a65283fabca0f | |
parent | dev-python/meson-python: Keyword 0.13.2-r1 for ~m68k (diff) | |
download | gentoo-ce42021325fb035174a60d92820463a6b075394e.tar.gz gentoo-ce42021325fb035174a60d92820463a6b075394e.tar.bz2 gentoo-ce42021325fb035174a60d92820463a6b075394e.zip |
www-client/vivaldi-snapshot: Add version 6.2.3105.25
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-6.2.3105.25.ebuild | 222 |
2 files changed, 225 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index a1c014f21e6b..ecf65ca7f2c0 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_6.2.3096.3-1_armhf.deb 97675332 BLAKE2B 90070d43aa0b6cd250 DIST vivaldi-snapshot_6.2.3102.3-1_amd64.deb 102121088 BLAKE2B 2dda1b0b94470e3b82a55efa143c0f989ee9fa47f6cb6355a245da0f60353260bf043781bdb1d54207ac1f6c4169c4644d6e32b89ff90bd0461331a2a975b659 SHA512 8e5f97cf2deead5e64c86cb08cef43b45a7b491d39d8d611e05e2e33665724c459e4858d8e8f7fed92b288f8a572badbd57ddbc7c4f358cdb67157fb04c4fdd7 DIST vivaldi-snapshot_6.2.3102.3-1_arm64.deb 97144424 BLAKE2B a33c95d53eeb6b64b10c4424278755373f2dbe5fbafbf64a12ded40544acaacdc35ce618cc37a2a616e44b559159c4f3ed922cb4230eb5c355e134de41206009 SHA512 65d7aebd4f08c8fa0a98da39d6e86d0f5dc74e55111694f865e84405ead7031c61e2a7dea33a71232bbd32538f239f450ab54d50b2030e60347dd651299b6a8b DIST vivaldi-snapshot_6.2.3102.3-1_armhf.deb 97713688 BLAKE2B 2826f6c2a164a9fc84a330a865162f92ded3d3810626bc4f4a1a175b5059809b7d66eb61d1fc5c2d7d9699250abedfa24f628ef1e3c2b15e4eb5aafb64b052c5 SHA512 de4a2042b2f2c8d5ad52d4ae7ff4c627f74d70ca0906335cf146c5a550420b78b956f89231f6db661afcf675728c81402d2545ce01c29bb63f4b1101e8527eea +DIST vivaldi-snapshot_6.2.3105.25-1_amd64.deb 99906356 BLAKE2B 0fff726a556e17951c3052ffe7afc3ebbcb4542c0d7f04df31f7f2442bd8c3940406af9e1db1437381522bff1197ef2a99b0693d818cb69478ae1a1ec53be6d3 SHA512 1f7769bea071a750d8caa5bc17001ec278b2daf40df531eef79783a7f71c61de66a1e944d70278821b1e03ea0ec3e294b6466e35616dc6d05577281be306b846 +DIST vivaldi-snapshot_6.2.3105.25-1_arm64.deb 95011684 BLAKE2B 2c305d8f1373223b2f47912256171764c82fea7d3a72c2c655dd38b968ff72c4c1de8fc142358c87f16ebaa8395991dfc76d13a314cd28b3377e16967c72c8bd SHA512 aafdc227def4f6054d255dfd93180c66f31dcf845ae28c655ce76e3962e77b81cac6f4165b0309bc3bc59bbf486c7edb190cfcadd8094420456986810e2516bf +DIST vivaldi-snapshot_6.2.3105.25-1_armhf.deb 95572536 BLAKE2B 81341ede2f472dddd6b01d64f61b95cdef50ad09dea1a99dcde9a3cca8bf324256cd673b2deea9ace9a4fd4ccd0db6cb8ab873e6b306e6742138b77bedc989ff SHA512 99e661d1c9c11f4a70be3dee403eb06e3949294e752759622443898d9da53f80053bd9434af60e83a81a8adc7dbb58e2c68b6acbe51d47c77e6bf3972b2e07da diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-6.2.3105.25.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.2.3105.25.ebuild new file mode 100644 index 000000000000..d63e17d4cb01 --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.2.3105.25.ebuild @@ -0,0 +1,222 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CHROMIUM_VERSION="114" +CHROMIUM_LANGS=" + af + am + ar + az + be + bg + bn + ca + ca-valencia + 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 + + if ! false; then # use qt6; then (TODO) + rm ${VIVALDI_HOME}/libqt6_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 +} |