diff options
author | James Le Cuirot <chewi@gentoo.org> | 2023-05-20 13:29:32 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2023-05-20 13:35:10 +0100 |
commit | d0611720b60c3f6df0758b4d10959dccee836a29 (patch) | |
tree | 9537097cc4453baa9606fe643b0a6aac459077ad /www-client | |
parent | net-irc/inspircd: add 3.16.0 (diff) | |
download | gentoo-d0611720b60c3f6df0758b4d10959dccee836a29.tar.gz gentoo-d0611720b60c3f6df0758b4d10959dccee836a29.tar.bz2 gentoo-d0611720b60c3f6df0758b4d10959dccee836a29.zip |
www-client/vivaldi: Add version 6.0.2979.22
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.0.2979.22.ebuild | 218 |
2 files changed, 221 insertions, 0 deletions
diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest index b1bcbb19b44c..48bb5a5b42e5 100644 --- a/www-client/vivaldi/Manifest +++ b/www-client/vivaldi/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-stable_6.0.2979.15-1_armhf.deb 92549764 BLAKE2B de7a333f72fd29e873d DIST vivaldi-stable_6.0.2979.18-1_amd64.deb 97994516 BLAKE2B 523dd44f6cf60d5d3c88d6cf7f4a47f1c9d1c9e2b8decb16d09f692b7936ec0e4e7874f5b19020b5ef9fe6a54670cc3453edd164e7bae633c82f22a1f0117274 SHA512 863c361c3b03c7a445128e061487a3cc4cfad04ab859ee81555129c31a13ee0a7eb7b391388fa3ccbc7e8b19345f60af830131d87919850a405622e5322511f5 DIST vivaldi-stable_6.0.2979.18-1_arm64.deb 92669888 BLAKE2B 2e19aa531d7d4aa0389a93a15b65818d78e69eb03b7975420007200443d13e3c5da620bab276dd36a21691776a6dece7135de97e4a12a47e8b907228818dd643 SHA512 41bc379d18333d3e03574e2b0804a9bc353eb3f39bd9be7cd1a7376eb971bfb98f78355336a5aedd614e220833cca7f2b34a5339dc99467a0a19d0a7120906c8 DIST vivaldi-stable_6.0.2979.18-1_armhf.deb 92533028 BLAKE2B 20ba6648eabb8bb5efb80d7f07d0263859482b2770ad9d2bfb8332822f66e0934189019c60abf88381a999934b0851226d4a661c7d8fb4c1e67cd6f13c38a130 SHA512 3445746d427d0d12026b0fa8146f5d741a1aaa1df1eba638a450cc807f3229810653058a6fa431d41a40a9ec05933ece0d84cbe7475be02014da2e8f61cafe53 +DIST vivaldi-stable_6.0.2979.22-1_amd64.deb 97994468 BLAKE2B 3f721946b10bd1d80cc6837e236fc61433cec78c2404396a08cc9ee5c5824514af04668db9e8f856cbdc8625bc05d7cb3614260a3d24d5491b22869cbfb0035f SHA512 f6e2b160ab6965f3bbe0cb94b8af2d9963bff818638310b7dd9e9cd5d6bf3a6d7536f4557df5495445dad54aa7ad7f23eb1524c495ded3e0d0e9a854a75556d2 +DIST vivaldi-stable_6.0.2979.22-1_arm64.deb 92700856 BLAKE2B 28c7c015a2a7581ce7ee93aa9642ed08688318c13f09b160afb98cee5b4a82e1a671d354fb16ea2038361b395bbaad1655cf5bd80d3c90f816030d13a22858d8 SHA512 9128bd246ac669a9428de2d2882c726269c84544b764b7ae933cdb228f8b7880daa80321a0b288634d7d93806afdeb5f040ccfc5d6bf60b340eee47caa922e47 +DIST vivaldi-stable_6.0.2979.22-1_armhf.deb 92539664 BLAKE2B c183a2053657eb0d57b9b02359dc111e8a6bb02e0494faba1b33515f8d339bf2fd5d3ccbf8c388c6a97a13a70b2aa78dc275e5635d3937c84f64fb80024fad13 SHA512 3edeef5d7a9f3e42c50a6460a833a3775154a64ccda0f8fd887dd68b7b763bf72d0b4408b8548d2b0053a3b4c91bafd79a0078ac3cf693f1354daa99582a9929 diff --git a/www-client/vivaldi/vivaldi-6.0.2979.22.ebuild b/www-client/vivaldi/vivaldi-6.0.2979.22.ebuild new file mode 100644 index 000000000000..655ed5d159b9 --- /dev/null +++ b/www-client/vivaldi/vivaldi-6.0.2979.22.ebuild @@ -0,0 +1,218 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CHROMIUM_VERSION="112" +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}_" + +RE="\bamd64\b"; [[ ${KEYWORDS} =~ ${RE} ]] && SRC_URI+=" amd64? ( ${VIVALDI_BASE_URI}amd64.deb )" +RE="\barm\b"; [[ ${KEYWORDS} =~ ${RE} ]] && SRC_URI+=" arm? ( ${VIVALDI_BASE_URI}armhf.deb )" +RE="\barm64\b"; [[ ${KEYWORDS} =~ ${RE} ]] && SRC_URI+=" arm64? ( ${VIVALDI_BASE_URI}arm64.deb )" +RE="\bx86\b"; [[ ${KEYWORDS} =~ ${RE} ]] && SRC_URI+=" x86? ( ${VIVALDI_BASE_URI}i386.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 + + 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 +} |