diff options
Diffstat (limited to 'www-client')
-rw-r--r-- | www-client/vivaldi-snapshot/Manifest | 3 | ||||
-rw-r--r-- | www-client/vivaldi-snapshot/vivaldi-snapshot-6.8.3358.3.ebuild | 226 |
2 files changed, 229 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index b62e0e537fce..e249f1a70bb0 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -1,3 +1,6 @@ DIST vivaldi-snapshot_6.7.3329.19-1_amd64.deb 108490132 BLAKE2B f28432dd33c73b9d0dce456bfeb73bf4fa4fff13fce2bb38b4ce08c9c4826b974618afef9469cb598680f3164051bc373b657f0570e6c55abb71bb64008f6af8 SHA512 14ac65dae0ab50b7ddfb473f8a6420ec6048d3dfb8a8a8ef73931976dd55e1312f0b148e1980e2a89fe40e1369731e4b7654a2eb5b7082b6e5bf26a513dbe164 DIST vivaldi-snapshot_6.7.3329.19-1_arm64.deb 99180668 BLAKE2B 54d3d54f79abb2bae61cd772c401b9833cbb61c4c3a87199efcccee20242d9dd5e653e7e0d34a63938a51b0591169d615ca2a321f4de49dcbaffd729e8905254 SHA512 1d68d9fb003245e36ded8ac002fc91294a8e8ff6d9793a8424db074875b649ca3b2b0aad834e1a5bd37d5cfdd086040c8965f260153076e1c5930b800f67876e DIST vivaldi-snapshot_6.7.3329.19-1_armhf.deb 100322788 BLAKE2B ece4bde88de64dce84aeb1eef498372f5e143f620e8e8dad7a23ebab8c615d7c0f28805c8be2f2925067d8138564d2a8010a5ca5836e0708ca60ff8e5bb11f7a SHA512 4f564b913137399b016c1d70f223152669e85f80326d838089bfc77cafe80a790b91b73b5b64f53fd0dfe6177961315c34632883e690e39bd35acb93987e4f27 +DIST vivaldi-snapshot_6.8.3358.3-1_amd64.deb 108606616 BLAKE2B 03a9e54b3f77dfdddd4901cdf0f705d2db20c7b9b85ff0a660cef11cb1b304947f86ba1befed6901be23c55aac8d0380e293bf5c80692c1f99acee3c97592152 SHA512 bad714103d34b81eb1ad8315846216f281c5890d13b6b7d562f6a5f20d24d4c20370cb64b102eafd505d0fcda70840b43f0d0370ea3ebfa53078a0d9547eae2c +DIST vivaldi-snapshot_6.8.3358.3-1_arm64.deb 99267888 BLAKE2B dfb6e4ddf32610717acf30c52ea3b58404cdbacaf18b8c86746a81b8de73fb58f64d98d37ee9f4dd5a96fe452790787098d35b1a76a25dd40bf3eb35481d8221 SHA512 b8dbc826b104fc946d69b125ba170920ecce71924e1f236f4e0db4299234c15c18f36b40c7526cb9c3eda757883070c2e95bde28f5dc1667061ea3fa2104385c +DIST vivaldi-snapshot_6.8.3358.3-1_armhf.deb 100440164 BLAKE2B 005a08199d2f932f3be7523802975140695ae9a608a8397314eb0aaeec149676b42913443b56fc27bfcaabba4a1417874c0a4a88ff87f04c43c284e9bc3e585d SHA512 290b67e63557058151157c015de763298be21e7793b867854db76af8e280c2c6626673ca561e2e465c3c4c21abdd4eebd1d014d5ec976b03b005858dec1cba21 diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-6.8.3358.3.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.8.3358.3.ebuild new file mode 100644 index 000000000000..8e5ee528e3af --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.8.3358.3.ebuild @@ -0,0 +1,226 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CHROMIUM_VERSION="124" +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 + 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 toolchain-funcs 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 + +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 ) +" + +S="${WORKDIR}" +LICENSE="Vivaldi" +SLOT="0" +KEYWORDS="-* ~amd64 ~arm ~arm64" +IUSE="ffmpeg-chromium gtk proprietary-codecs qt5 qt6 widevine" +RESTRICT="bindist mirror" +REQUIRED_USE="ffmpeg-chromium? ( proprietary-codecs )" + +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? ( + !ffmpeg-chromium? ( >=media-video/ffmpeg-6.1-r1:0/58.60.60[chromium] ) + ffmpeg-chromium? ( media-video/ffmpeg-chromium:${CHROMIUM_VERSION} ) + ) + qt5? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtwidgets:5 + ) + qt6? ( dev-qt/qtbase:6[gui,widgets] ) + widevine? ( www-plugins/chrome-binary-plugins ) +" + +QA_PREBUILT="*" +CONFIG_CHECK="~CPU_FREQ" + +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. + rm kmr.pak || die # No flag for Kurmanji. + chromium_remove_language_paks + popd > /dev/null || die + + if use proprietary-codecs; then + einfo Bundled $($(tc-getSTRINGS) ${VIVALDI_HOME}/lib/libffmpeg.so | grep -m1 "^FFmpeg version ") + 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 ! use qt6; then + 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$(usex ffmpeg-chromium .${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 +} |