diff options
author | James Le Cuirot <chewi@gentoo.org> | 2024-09-28 16:21:29 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2024-09-28 16:21:29 +0100 |
commit | 904c18409565cee0b2371e7a7a20db9c752e6027 (patch) | |
tree | cc67e5a1acaac9b130bc5bf0aa159f3fb1a1af48 /www-client/vivaldi | |
parent | www-client/vivaldi-snapshot: Drop old 6.10.3458.19 (diff) | |
download | gentoo-904c18409565cee0b2371e7a7a20db9c752e6027.tar.gz gentoo-904c18409565cee0b2371e7a7a20db9c752e6027.tar.bz2 gentoo-904c18409565cee0b2371e7a7a20db9c752e6027.zip |
www-client/vivaldi: Add version 6.9.3447.48
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'www-client/vivaldi')
-rw-r--r-- | www-client/vivaldi/Manifest | 3 | ||||
-rw-r--r-- | www-client/vivaldi/vivaldi-6.9.3447.48.ebuild | 226 |
2 files changed, 229 insertions, 0 deletions
diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest index 7910f0a6a823..baf246c89c62 100644 --- a/www-client/vivaldi/Manifest +++ b/www-client/vivaldi/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-stable_6.9.3447.41-1_armhf.deb 106139084 BLAKE2B 73e58ca552a403f7f2 DIST vivaldi-stable_6.9.3447.44-1_amd64.deb 113482544 BLAKE2B 2dd42b6912bb19557931a04ed2ca31cf6ce93337843ddaa5c37e14cbeb199ca1b9bdccc1a55a022afc321e8d5c475d36070fb438df7d797e507ade549a1c7152 SHA512 94da9b5090b1fb1e32625ccc7cacec33d5492b3255fc25538592bd807129a476900bdcdb463a6f49fa93a68f42b2b917e60eca659954941b52671dd6df7e3c2a DIST vivaldi-stable_6.9.3447.44-1_arm64.deb 105102392 BLAKE2B 2e7e945276282530b36845b359a0f85770b2d2f8c0cc14037fbd58a391056a3885fac2aa38a00e212ff45500a1a30449db561e4d277c200ce0832ab0be065199 SHA512 6355f1c7ffedde42d578af1a74d237cbf6aef542df5c0da82e363911bbf06ff3bb67836ce6f885a213f83361840558cbc7ff0312a8b5a70527719e6e543723d0 DIST vivaldi-stable_6.9.3447.44-1_armhf.deb 106147656 BLAKE2B cc72f9b139a3ccdd34e2422943830bb3566f4a86024c6dde1e5191fae732198128293328ca22dfe6f82f0161bbdfbcb9d74f8cc2027b46ecba345eef55240f60 SHA512 225aab7de66be73614343cd65460dfcfbd00c16f9bbfb075ad6d1d6022d5f05a231e4898c55d87dd7a37e6f0c7ceb868479a33aeac8aa259c8764c1904ed7ba8 +DIST vivaldi-stable_6.9.3447.48-1_amd64.deb 113499756 BLAKE2B 2c8cb9764850bc75d054ccacceb1c4bee667587264be9fa42079a57d3f311e79c20feee3cf74fc4bf1a9bf8f152e9003d12317ce190b8655aa36dab2f7cb5926 SHA512 47cd64d686fb203971b3689d4c9cae1d80d44a303417c39d90933be2f9581b60bcb52e126f5b7bc58e69eb5fef8e9492fc7c9f5c33fb7c219c1f3079972bbfb3 +DIST vivaldi-stable_6.9.3447.48-1_arm64.deb 105129348 BLAKE2B 2900169ec3d9967ae610c451f14d107bb1a5dea6863de1072d97077b9a7fd95f284746523f3bd32c438261abd1e8e67ea1915be39cc2dbe49e447c93bc1cfde9 SHA512 f3424d7a2f4682360e3624c0b653de137320894782d27ae39dd80097379662ad78d7ea911acd2fc51436be9e14b40febc43cfa6ae3a08dfd00d2c23e2eff41c9 +DIST vivaldi-stable_6.9.3447.48-1_armhf.deb 106149580 BLAKE2B 87b45daf3dd4d8b9cbdf7f4273b7e7591870143139356be195434750fec6bd7c6672ea0284f4c25400e30cb0258d4df561fecce68bf29aca5e74d57dbc38a600 SHA512 6b85e9750b855aabbbb5a20ba899e21c79dfff6ad05f56f2f544a24398744cb59c5b9a0a8330b6888e61616d76bb7e2c55c071da48d5200fd6ff90ce1bf22033 diff --git a/www-client/vivaldi/vivaldi-6.9.3447.48.ebuild b/www-client/vivaldi/vivaldi-6.9.3447.48.ebuild new file mode 100644 index 000000000000..a0fd66eb84bd --- /dev/null +++ b/www-client/vivaldi/vivaldi-6.9.3447.48.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="127" +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 +} |