diff options
author | James Le Cuirot <chewi@gentoo.org> | 2023-12-03 15:39:05 +0000 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2023-12-03 15:41:08 +0000 |
commit | b747f070f3b52e77281fb4f9df808bb876296ea8 (patch) | |
tree | 05e8d0cb7081641e7cb32a060fe1653d26f880a2 /www-client | |
parent | dev-python/pytest-asyncio: Bump to 0.23.0 (diff) | |
download | gentoo-b747f070f3b52e77281fb4f9df808bb876296ea8.tar.gz gentoo-b747f070f3b52e77281fb4f9df808bb876296ea8.tar.bz2 gentoo-b747f070f3b52e77281fb4f9df808bb876296ea8.zip |
www-client/vivaldi-snapshot: Add version 6.5.3206.24
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'www-client')
-rw-r--r-- | www-client/vivaldi-snapshot/Manifest | 3 | ||||
-rw-r--r-- | www-client/vivaldi-snapshot/vivaldi-snapshot-6.5.3206.24.ebuild | 220 |
2 files changed, 223 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index 619aca3e6433..a0393f4770ec 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_6.5.3189.3-1_armhf.deb 100126020 BLAKE2B 62bd7382efb5e5076 DIST vivaldi-snapshot_6.5.3201.4-1_amd64.deb 106892644 BLAKE2B 9db9d0027e9b07ad9acc200b29f2b4efa7aa9531246ab66524b6d1eda4bb5cd14c8171fa8bc81bad806946ac65c51e987af739d64584491c90844f8a03aa027a SHA512 f4baa645eb18391c9b64c1733ccd1adccaf15b72cb3754c5a579a45e18018403e426687e905d32f69c500ea13f7627737f5bc742432b6750a61cf5c2d600bdee DIST vivaldi-snapshot_6.5.3201.4-1_arm64.deb 100779560 BLAKE2B 2de3cea82f927cad25cbf96ad4d5a2fcbb1c1c60d41a0d45ccef1024babe75fb87134fe241a7bce8db91fe05aee0e9ae624b570b77d0810f683e55cae3911736 SHA512 80f3aaefffbf311cf8f7253f2ee33051bd5eca0261d20baebec9451cccccf5f6678e25eaf761d8ea35f3e778a41c10cbc324c615083ac9b81002c23f2eab2d98 DIST vivaldi-snapshot_6.5.3201.4-1_armhf.deb 102205784 BLAKE2B e12c1a0e46169a9b194c35006bd624c8ac043f9a21acabb65cad689ddb7fc230649058c45c9f60d3c8f5c75131c0f3bb2c342cffa5ce152fc156c8d2cb4e8f75 SHA512 282577a5946807ed619b7d622b4f1a06bad18b18cfabe45b11579877edad8f54a9921ffa36bd875712288daa781bfd58003a4022e797d7700c0e85c9e1c23d4f +DIST vivaldi-snapshot_6.5.3206.24-1_amd64.deb 106846764 BLAKE2B 5f280e64bd0b62aabdb10526d8880aa683c17e0175f18b3fc1f64076f26ccb3b2441952d9975222ca6de2f640b18d29dadf586bdf6d4e1b45a97eed6f662f5ac SHA512 921daf6447d5c797582266594b785b9de71dfa72b8eb1a947dc14624299c1254f17623d49a6df1f393c25f46c9339d1fccf900276160a9b59524c69d6c5e161f +DIST vivaldi-snapshot_6.5.3206.24-1_arm64.deb 100811600 BLAKE2B beed04a690d97e8a162c1b0bfdcfa36acdaa8fc7406710ec710b76110448c4ba84a94129f9b4f234f4f813ebc1827399f828ab6f584e8b080bc5d73c8b6423cf SHA512 a17a67e8929f7a61535e9d2e96d9654933bd558dfaa9da3a0609192ba5731c5910010e2d16e62b9769a10df56e57520715404688bbda89eef1f81e72b91c5cb5 +DIST vivaldi-snapshot_6.5.3206.24-1_armhf.deb 102242064 BLAKE2B 430d87cb115abe590f787d9100ea44a1ed5a8b1313a7184ddf70a24f1c5f50c37a2e2362ca121b748ffcf181f429bf60f7621b0f4618124e3faee278c1a4c6d2 SHA512 56939bd575a430c984ab03f2b46354701fdc2611d1022a4a13a3e8b2263b4874aa91f037f197bf4c5549ff43b25c63094eee20287aae26bdc48341b306977422 diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-6.5.3206.24.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.5.3206.24.ebuild new file mode 100644 index 000000000000..724a622c2f1b --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.5.3206.24.ebuild @@ -0,0 +1,220 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CHROMIUM_VERSION="117" +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}_" + +SRC_URI=" + amd64? ( ${VIVALDI_BASE_URI}amd64.deb ) + arm? ( ${VIVALDI_BASE_URI}armhf.deb ) + arm64? ( ${VIVALDI_BASE_URI}arm64.deb ) +" + +LICENSE="Vivaldi" +SLOT="0" +IUSE="gtk proprietary-codecs qt5 widevine" +RESTRICT="bindist mirror" + +RDEPEND=" + >=app-accessibility/at-spi2-core-2.46.0:2 + 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 +} |