diff options
-rw-r--r-- | www-client/vivaldi/Manifest | 3 | ||||
-rw-r--r-- | www-client/vivaldi/vivaldi-6.8.3381.57.ebuild | 226 |
2 files changed, 229 insertions, 0 deletions
diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest index 483cea41e0ee..112f499698f6 100644 --- a/www-client/vivaldi/Manifest +++ b/www-client/vivaldi/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-stable_6.8.3381.53-1_armhf.deb 102066244 BLAKE2B b830264d91c26b1005 DIST vivaldi-stable_6.8.3381.55-1_amd64.deb 108181608 BLAKE2B 6d12ed4dab695e8e8d02091b0966fb6b65fc86ccc0dbc6d238acc7706c8c92ce508fe97796e6bbcfb33ac6b6855706efebfb513d37c353190b4335bfb25a2db3 SHA512 5e21f3fb714ce95941ff26da59a25b54deabae93cce6d1c60b45a4b7f06146f1c33f3005e5d06cc33d6a73a21ca0f84ba027c278f8c90268dd50b7b503c66161 DIST vivaldi-stable_6.8.3381.55-1_arm64.deb 100839256 BLAKE2B c323f37cfb10ddafe315f7e705d1a7c8b1af7ae045b575a5f8816410d2a24147a2037197265dede5052059cc25f9fcab1b40d06e4d5065e2de09c30ccaf51b8e SHA512 9b7fd40d4167c9624085d41c2cc1f4558e06b36149effa2297a02cd2204f988246f84e152d7d991ca9731656dcda84391efb9b6e46d6de1a9c7d223c1474bb4f DIST vivaldi-stable_6.8.3381.55-1_armhf.deb 102058636 BLAKE2B e9e93cf593352b0d6e84c41113f985d7e2a705640f515c9890f429f6693566eeacdd065e1b7d0f5f5f5c14b55a2fef7a60f32fb95df7a5c53c382037fdde7750 SHA512 f8cd47a5c9f47d47b1dcbccf8c3b3cf17df56dd39a340b198674fc51c9919c006d3628c0d7b7ea1560f07621203f87095e4692e6a1339fdb76300f176c1261aa +DIST vivaldi-stable_6.8.3381.57-1_amd64.deb 108200056 BLAKE2B 48d59945b70d07e315c2d258a4dbcee0786700d0fa4c491bf7c5d1f81f76c5b15a067ad801328f1453cac5bca0abe9c907714b0197ee6c2cf394c46118914e80 SHA512 c0f373c6e83d662852e4aefd2aff3b23396f3b15bec9af7893c171e08a51b7147825a3dacbe1b56ac754e0d66f1a3e39280ba0099708db0dc0d3b77f0a1765d3 +DIST vivaldi-stable_6.8.3381.57-1_arm64.deb 100833760 BLAKE2B cfc2c3c7d83646384a6eb63ae146411377e1b85fa11f42fe9779454c3aa31df69abb6928923fa5bba8865f8babaca365851d750d5bed445a857496cbaa9b4fbf SHA512 c8262b9e87e8d3ba58f7897f97b8d6e5f283711727f427f58a47a7d7bf9ec5dbb35a347c7a1d910d3b2f0db5f7c11d579eb058f6f437369aef932d0dd95e4512 +DIST vivaldi-stable_6.8.3381.57-1_armhf.deb 102067572 BLAKE2B 50d928bc3afefece7e7912bfb85080923f80bb188300f8e780145a188c08030aa8d30d9d747e96346b1425e07680ae363bd6ebaf475bf3b61222ed8cf217aae3 SHA512 7408595e1a426630268309e88b11d0eda8f9c44bf1732e92a5e47842c3630f55b691cb570aa52fbe41735198ce35d778f026d397db79cef133b5c409d47b5a41 diff --git a/www-client/vivaldi/vivaldi-6.8.3381.57.ebuild b/www-client/vivaldi/vivaldi-6.8.3381.57.ebuild new file mode 100644 index 000000000000..ccc6676d81ad --- /dev/null +++ b/www-client/vivaldi/vivaldi-6.8.3381.57.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 +} |