commit: d1d4230aa4badf878a0665e349ed7d43158622b1 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> AuthorDate: Tue Mar 14 21:26:11 2023 +0000 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> CommitDate: Tue Mar 14 21:26:11 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1d4230a
www-client/vivaldi-snapshot: Add version 5.8.2955.3 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org> www-client/vivaldi-snapshot/Manifest | 3 + .../vivaldi-snapshot-5.8.2955.3.ebuild | 216 +++++++++++++++++++++ 2 files changed, 219 insertions(+) diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index 533b95de986a..0d4fdabac962 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_5.8.2936.3-1_armhf.deb 90795304 BLAKE2B 77db349d26f05c1834 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 +DIST vivaldi-snapshot_5.8.2955.3-1_amd64.deb 102187676 BLAKE2B 02bcd74ac2962b1658fc33d60eec1503942de83fe2ad286f1acfb16aac4563ce129464b20bd3ff1952d9e790aedb5381e08b9d7d780c76789ef8e436c8a45887 SHA512 9875ac97b0280a2e1c197cd2354ef57b9dd678d742eddcca2582abb726a2a9466e0e80297154c2deb77d6fece9fb4c5320d434f33be6af1c67a21592b1cca353 +DIST vivaldi-snapshot_5.8.2955.3-1_arm64.deb 91700956 BLAKE2B 978ecdfc77da4b005eb33ace8a4de42008dd1c33f5c469f67a864b36ba606b174c37753aff57e16a7da97142b2e577baaeac04969fa599f0d5972adb9128316f SHA512 67db24d0b40b0afae9bb658e0b0c7984bc91a123a4fed4cafa6d72dcc7e2e943b9e175a4dc714278f9f52293868d0bd7022f4bb59e234af62c645549ee312d38 +DIST vivaldi-snapshot_5.8.2955.3-1_armhf.deb 91397548 BLAKE2B a6677ff044f823a2b693a1edbbce32105ca1d17fafbfd2a8a6f1accae96c1c14379cfa9c9acda6c554c1de360c51d32b4059c226c99022b1489d033c10f4406f SHA512 1e8b4303f114bf58785f70eb730240b7feabb207648ee5f7418afe3e281e25433d7d5ffe19c83f071a67bc8f5a60e360f2816b9a6afd67e076d63a3fd47ca6ec diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-5.8.2955.3.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.8.2955.3.ebuild new file mode 100644 index 000000000000..9c296c0f9dbd --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.8.2955.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 +}