diff options
author | James Le Cuirot <chewi@gentoo.org> | 2023-11-18 15:25:57 +0000 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2023-11-18 15:25:57 +0000 |
commit | 62b83c28490cd84e357aacf1c73457133538f1fe (patch) | |
tree | a585a2fc4de1ba35b716b2632a7e65173811063d /www-client | |
parent | sys-kernel/installkernel-systemd: Keyword 2-r5 sparc, #917558 (diff) | |
download | gentoo-62b83c28490cd84e357aacf1c73457133538f1fe.tar.gz gentoo-62b83c28490cd84e357aacf1c73457133538f1fe.tar.bz2 gentoo-62b83c28490cd84e357aacf1c73457133538f1fe.zip |
www-client/vivaldi: Add version 6.4.3160.44
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'www-client')
-rw-r--r-- | www-client/vivaldi/Manifest | 3 | ||||
-rw-r--r-- | www-client/vivaldi/vivaldi-6.4.3160.44.ebuild | 223 |
2 files changed, 226 insertions, 0 deletions
diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest index db47cc6a3a8b..dcf10e882d00 100644 --- a/www-client/vivaldi/Manifest +++ b/www-client/vivaldi/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-stable_6.4.3160.41-1_armhf.deb 100947840 BLAKE2B bae54369ea71ba429e DIST vivaldi-stable_6.4.3160.42-1_amd64.deb 105667884 BLAKE2B f8c82e798d612756e5e141b86f5380bb16e4ad0f625f990a1a0f38b582ba49adbf21e059c9e5acbcd7c3607e9dcafc2ad0917b14bc88d0d87ddb062053a3474f SHA512 696550e2ffd4a2f2dcafa5a9dd841d0c6f77dd9eb0542a8425c7e21838a93c76eab9c0cdba1660ba245fe32b2022bfd204d7dc8a0dfb8a38a6faa77ef6e8a1f2 DIST vivaldi-stable_6.4.3160.42-1_arm64.deb 100338168 BLAKE2B 77b76252fab242aaea0b67ae34166c67df676211ac6e9d7eeae93765f2430bd7aa506cee93d8d5284b45cd3ec7daee12d56221322bfb8be6dd50d0789b7253be SHA512 ac97adadaaa00cc1640fa2fb8cf65c712307b3416b1634509b9e01d9dc145923e96c31fc03c1dd5739d2222ed4dfe6cf6cc8ce250d236c0c1be0672b8bfde9d8 DIST vivaldi-stable_6.4.3160.42-1_armhf.deb 100941112 BLAKE2B 41000cc4b743e7cabcdf404a5e2560b23a78b49ee3e66e81b7d9753b797ec8e302a99cc85c02fd21bc324d221543aa773600cb7748a96da3c7f7c708f7d31aaf SHA512 64cbbd2acba9dadd2bbb85d342425d1a9b0b8b84ff3fad6a70e0a03f3651dd5c5fd4fdf4f7632302b158bf87c50d712e4a6098d503b3f276de9737a0ca79efd2 +DIST vivaldi-stable_6.4.3160.44-1_amd64.deb 105650520 BLAKE2B 1b311740f1de24d1e342f22e214146a1c3cff7f3c76d98b0d5f1ba43317b2ed49b7c52d22e9f9875d9119e76cd1cf50e6f02d84087c97a375e2a224f15f94da1 SHA512 373dc3b77802ed49a4806b49a0cade41de1b60b6c2f00b0a64fd2fc44ad388ad099e4554f9d84031d40c64b10896c003b45942b0825cc9669cde942795410815 +DIST vivaldi-stable_6.4.3160.44-1_arm64.deb 100312072 BLAKE2B 86075140c6960a541d1b56dc8c95e50d520cd3ec9fc6af60dffd22aaeee1a864c5dd50ac67c6ed311b7a7a6eb71047ab8bee7a00f5d43f205cdf6bfb5289cec5 SHA512 dd4264a8b401397d62915728eaac8f1ba9a00c10e99e8c38d92ba8abdf524435834a212c52be2b2107e4f8428ce6b4997f02882367f756ba420caeb4ad0c4858 +DIST vivaldi-stable_6.4.3160.44-1_armhf.deb 100950780 BLAKE2B 5bbdcbbba0dd88db7b39c1717d52fd686d978d382f7a755b454275e19182ce4a80d9650950145b245f7bcaedfc24822de63d63d3d854110e23027ea9f4e67362 SHA512 d26a424fe216eaeb5bd13c502dcde826bd9560678f48cd5b7fd8ef8cfb98aaeb79156501a7db2b82dba2ba58de9861bbaf73f731d9b0945c0a23f4fc0cdbea70 diff --git a/www-client/vivaldi/vivaldi-6.4.3160.44.ebuild b/www-client/vivaldi/vivaldi-6.4.3160.44.ebuild new file mode 100644 index 000000000000..9d522c106aff --- /dev/null +++ b/www-client/vivaldi/vivaldi-6.4.3160.44.ebuild @@ -0,0 +1,223 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CHROMIUM_VERSION="114" +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 + ( app-accessibility/at-spi2-atk dev-libs/atk ) + ) + 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 +} |