diff options
author | James Le Cuirot <chewi@gentoo.org> | 2021-11-18 22:06:44 +0000 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2021-11-18 22:06:44 +0000 |
commit | 73c2ea85349ff27dda71e486d88a40e7d5a13c7a (patch) | |
tree | 1f1c416db874952daed174486173c429a6c00f2b /www-client | |
parent | www-apps/chromedriver-bin: bump to 96.0.4664.45 (diff) | |
download | gentoo-73c2ea85349ff27dda71e486d88a40e7d5a13c7a.tar.gz gentoo-73c2ea85349ff27dda71e486d88a40e7d5a13c7a.tar.bz2 gentoo-73c2ea85349ff27dda71e486d88a40e7d5a13c7a.zip |
www-client/vivaldi-snapshot: Add version 4.4.2488.3
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'www-client')
-rw-r--r-- | www-client/vivaldi-snapshot/Manifest | 3 | ||||
-rw-r--r-- | www-client/vivaldi-snapshot/vivaldi-snapshot-4.4.2488.3.ebuild | 202 |
2 files changed, 205 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index e8a39b0bbc4c..19cea52c26dd 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_4.4.2473.3-1_armhf.deb 79523228 BLAKE2B a7f2d13033aa9deac0 DIST vivaldi-snapshot_4.4.2482.13-1_amd64.deb 86828116 BLAKE2B 577ee927a0e795aa96e4a374895014fcfede8a3434ce0a1369cd57e42c9d0048e69be03800be7cbc56613d2f1f281dec70a9369f102c5dcfc4f0a1820d8e806f SHA512 a9c354972219efb9a0dbeb6fc7e39f8dd251b468837a10687f794e6d7f3da453e2561a746af2301ef5626bca0f1fb84eb9053ed28454c745205fd9430b2b46da DIST vivaldi-snapshot_4.4.2482.13-1_arm64.deb 81455268 BLAKE2B 06f942b72123f7e2ae876712be6592f748d0781a9416aa3386ec5b35358cb17a911110e23c5088a9a20e4090a759fa7307ac03d8624108d6b70135c165b50112 SHA512 0ee8fea0e3add850addb3265d4b6afa3530ebf1af1a15ac363ddbd7abb4021521cd89150801ff312bc0c665400095cd1bc546dee4401a25e73b45b3a6334c770 DIST vivaldi-snapshot_4.4.2482.13-1_armhf.deb 77789976 BLAKE2B 91b743ba22dc73cd54758117ade440565c6a45f4d68a976ecaa2c956147cc17160989f720b6b2e229a9a237902fad88b07635f47ce260934458b7ac10a7fb472 SHA512 c3c2e936a09b0279ad57e3d04fbfa8e7463b41a48579b9cffd142142c00e173a29184b64d3589139b95296d1dfa2cc50571d04b0c1b1afbab9182fba5b09d5cf +DIST vivaldi-snapshot_4.4.2488.3-1_amd64.deb 86863140 BLAKE2B 52015cf80e627a4fa593f5b82cbc418a826d92e60d0ebc0230765d7d5709a7deda2b2daea02389316077b6d651c024c8d4af72b602dc7d5ad7bce7f8fbab639d SHA512 7fe7ffa0219af83b936c9425218ede6c97b389118a098c5c7e76b1a0e6ee4c99f3bd1f70f1fd366426157b27e60dc6d9ce69cad06aff8868562d5cc0dfb82e95 +DIST vivaldi-snapshot_4.4.2488.3-1_arm64.deb 81502080 BLAKE2B c8e6db5f5fe608788a317e4be834441e15597eb22ff583e3aba8606a5b131db87f40afd2c3cad97e7b5189fb010e9b8794024ad32d283b9d184ec405b6eb111c SHA512 5b70fcc3749c61c48143af20290e49b0c9935e097e0a663bab9a92cc408fcd9bad8a8dbbd4dc872dcde830a19a4ce89e4492a88058219316837e671c4c826abf +DIST vivaldi-snapshot_4.4.2488.3-1_armhf.deb 77836084 BLAKE2B 665a2fb56b1d520803006205fa49c82a5f379f876ecb167f101a04900ff0334040537bb2388513cb1bd19513e3b234785921aec690053a1eb8e9d3cf39b28c73 SHA512 f9037b569927f06b1089699bf17d7fec60faa32c68ef666ace306949a75729bcbb6cca9c372e1fd9ff09ae85c8f7098599212b82484fc5192fc5a51a926a4890 diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-4.4.2488.3.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-4.4.2488.3.ebuild new file mode 100644 index 000000000000..8653cc65e373 --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-4.4.2488.3.ebuild @@ -0,0 +1,202 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CHROMIUM_VERSION="96" +CHROMIUM_LANGS=" + af + am + ar + az + be + bg + bn + ca + 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 + vi + zh-CN + zh-TW +" + +inherit chromium-2 desktop 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="proprietary-codecs widevine" +RESTRICT="bindist mirror" + +RDEPEND=" + app-accessibility/at-spi2-atk:2 + app-accessibility/at-spi2-core:2 + 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] + proprietary-codecs? ( media-video/ffmpeg-chromium:${CHROMIUM_VERSION} ) + widevine? ( www-plugins/chrome-binary-plugins ) +" + +QA_PREBUILT="*" +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 + + eapply_user +} + +src_install() { + mv */ "${D}" || die + dosym /${VIVALDI_HOME}/${PN} /usr/bin/${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 + + [[ ${PN} = vivaldi-snapshot ]] && + dosym ${PN} /${VIVALDI_HOME}/vivaldi +} |