diff options
author | James Le Cuirot <chewi@gentoo.org> | 2022-08-20 11:07:39 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2022-08-20 11:07:39 +0100 |
commit | d19c613b130c0b9541584bf27b5a8f816634895f (patch) | |
tree | aa5d53ef77cd4e1c81ca634fd304931811e8e7d8 /www-client | |
parent | media-libs/libsdl2: Add 2.24.0 (diff) | |
download | gentoo-d19c613b130c0b9541584bf27b5a8f816634895f.tar.gz gentoo-d19c613b130c0b9541584bf27b5a8f816634895f.tar.bz2 gentoo-d19c613b130c0b9541584bf27b5a8f816634895f.zip |
www-client/vivaldi-snapshot: Add version 5.5.2770.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-5.5.2770.3.ebuild | 206 |
2 files changed, 209 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index e68a2d55c787..8fe340c67e74 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_5.4.2753.27-1_armhf.deb 88397740 BLAKE2B 82522a95b2b483d31 DIST vivaldi-snapshot_5.4.2763.3-1_amd64.deb 97638124 BLAKE2B 40b3516a128c5bf5dba27d06fd9431fe0c91365d022a035adb89a717f0525c62958b38834219e48043df0f70a1933caf7102c8d9c3987e7890219c52fffa865f SHA512 b723dc5e4d63ee9f4cd22e658560410edabd3e1949fb7e3cc16ab46e61738f51fd6c605be22df10844407ca89f96924012ded619ed10c6dcedde93b1fca3ecab DIST vivaldi-snapshot_5.4.2763.3-1_arm64.deb 87867500 BLAKE2B cd0c4e9c01fff150b368d2624fb6560e96666517fd2ef2d5107f38cd185a911a5cc0182377264222a8c3b1ed83724b759bb57677cecd350bc3fd3026bd732499 SHA512 40cf24f82416634bdebbd29d9d10de14f49ed9f53333c1a2d3cd73d5c1626a1920cf9e436661b16db07b32967457b4ed7d328c26100c28943f457398cf2945b1 DIST vivaldi-snapshot_5.4.2763.3-1_armhf.deb 88389572 BLAKE2B dcd70264f4cf74e4da18298fa70e62c186a7bea03e05629125c730c348d91cede6d6ac05bbe7b5172510ee0bb58c5fcdfeb1f8c2e6957563d77b5ca55a65d475 SHA512 3906c1a902b06cb02ee89e9e55a010be147214c401918b924582359528096b70be081f97b22acdc3286312e9c42c9175e95a197ab5f3e134649f7b6f0db6137c +DIST vivaldi-snapshot_5.5.2770.3-1_amd64.deb 97618168 BLAKE2B 99f7bab3523ffad607f61b07ad32a56d33ee28f75e1df98d116a04d3e7f5eef42c55f7e8a357b30118b4d65c7e7c27db5e7d5a57108eb197b542a8164ec9f1c7 SHA512 12863ac479a73abfab2e15ab56e79e454366e3d2fce05b876c1a6211f1066b2498ccf92c5118f8937aab52db3c01b8765c605e5ac01983f46337c363ad3329c4 +DIST vivaldi-snapshot_5.5.2770.3-1_arm64.deb 87840948 BLAKE2B bd67be7e88cff485bfaf14d6fa765e5460bb169f07b2bc1e0671c3ef1585bc1d3606c4563ea171677458404404fc74e27e9b4ae2e21afde3525052c2cf4698dd SHA512 bff26bc72c1975a89df7fa0510de18c4575f316b598c7b279955f660a09e07e71bbe173136f8424ecd46947c9c02220629ebb81be30c03da632c2f5acfaa53e3 +DIST vivaldi-snapshot_5.5.2770.3-1_armhf.deb 88366040 BLAKE2B 912f480fce94b1e7a756ad4c91485431e4a2fd6ec0cc06bf5ee27a29af32660bb5cbe43539c7f8a03929e6d7afb174c5542a9f7c64e1d0088edf6dd589d4ae4d SHA512 4d38d10ae24049ca0e961e81cf341b1dfeb673f066573ef53c3b501a95caa2f62c54208f4c519c4b64947549343f6e2539b1f1421356f9597dd22d54d4b02016 diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-5.5.2770.3.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.5.2770.3.ebuild new file mode 100644 index 000000000000..cc815568ad94 --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.5.2770.3.ebuild @@ -0,0 +1,206 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CHROMIUM_VERSION="102" +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 + ur + 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] + || ( gui-libs/gtk:4 x11-libs/gtk+:3 ) + 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/${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 +} |