diff options
author | James Le Cuirot <chewi@gentoo.org> | 2024-06-02 16:42:43 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2024-06-02 16:47:10 +0100 |
commit | 0c98b546c86c14860b22e30a2d028de8391f6d5c (patch) | |
tree | 42ff49ec9ae30cbe484cd0eb4dd503b57d245038 /www-client/vivaldi-snapshot | |
parent | profiles: Force ffmpeg-chromium for newer Vivaldi versions (diff) | |
download | gentoo-0c98b546c86c14860b22e30a2d028de8391f6d5c.tar.gz gentoo-0c98b546c86c14860b22e30a2d028de8391f6d5c.tar.bz2 gentoo-0c98b546c86c14860b22e30a2d028de8391f6d5c.zip |
www-client/vivaldi-snapshot: Add version 6.8.3371.4
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-6.8.3371.4.ebuild | 226 |
2 files changed, 229 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index e249f1a70bb0..c6f7a22fe5aa 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_6.7.3329.19-1_armhf.deb 100322788 BLAKE2B ece4bde88de64dce 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 +DIST vivaldi-snapshot_6.8.3371.4-1_amd64.deb 109917056 BLAKE2B feddbdd2d8781a168901d1484af3cbd73a5d7599a8ea42491b402f383ad2e1823da92a0a91573ba9ee3e6ee7e3533ac7ff0e48e3af6ed5dc1ae56942f97662ac SHA512 44d16aa9173be369248c0e87aa0e6531957ba2841199a6602fcefa4b92f8580934cf1c844b55fd30210dca5a8b72fdfc20166db878080e32b67205e12ede3f98 +DIST vivaldi-snapshot_6.8.3371.4-1_arm64.deb 100800948 BLAKE2B b2b30d470fbab7caf94ed5a6adcc285b4e555296974bf21b59e024a31096d8ed3e3366ab99039ce478e423c67e9c894bb409ead273d2a99ef9ecfda25a74ad03 SHA512 cd53275acade5364e4e1ff895ccb50cb9be741a19b02da6687b09f0b644fe8732589f2badb343b1b4093d5aa9db1cea92d16fc6f2c57d2eeafb8515811a9134a +DIST vivaldi-snapshot_6.8.3371.4-1_armhf.deb 101975264 BLAKE2B 3979d3284353a321f8122bb7d897126b9edcf2c9263254ce126392a84d0fa7d0555d7bd4f656a1240f9eff3a81b5e5c770515430acaa0a130f7cc5213f16369a SHA512 9be04b55e7e30863aec40dc81e66035040598de5a5bc2d63567e106974560d4146f2e9fd25af662975f4cef7be6ea615aa73bdf30ec0c49433cafe43fb48953d diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-6.8.3371.4.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.8.3371.4.ebuild new file mode 100644 index 000000000000..ccc6676d81ad --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.8.3371.4.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="126" +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 +} |