diff options
author | James Le Cuirot <chewi@gentoo.org> | 2022-02-05 09:54:49 +0000 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2022-02-05 09:56:56 +0000 |
commit | b87af7bf75d035967a60d9af061c3951eda790b4 (patch) | |
tree | dea61fc6fdbad21a7289e95306f0627f0fa4144c /www-client | |
parent | virtual/dist-kernel: Stabilize 5.10.96 x86, #832719 (diff) | |
download | gentoo-b87af7bf75d035967a60d9af061c3951eda790b4.tar.gz gentoo-b87af7bf75d035967a60d9af061c3951eda790b4.tar.bz2 gentoo-b87af7bf75d035967a60d9af061c3951eda790b4.zip |
www-client/vivaldi-snapshot: Add version 5.1.2567.24
Package-Manager: Portage-3.0.30, 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-5.1.2567.24.ebuild | 204 |
2 files changed, 207 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index 24c2b5994e72..bb63c915cd12 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_5.1.2567.18-1_armhf.deb 78123500 BLAKE2B 6c2bef964baf64071 DIST vivaldi-snapshot_5.1.2567.22-1_amd64.deb 87348968 BLAKE2B 55328b4fe9f77aa8e91af784fd75ae2bb903c772001b8a6fd19a246898f3cc922dafcbd018203b4d2e10b231145b3b084ddaf40932769851a46c667918e2ac24 SHA512 2266876fd2e3864293cceebd1b3e0947a8de33176234ab5c696383996e718d63b1888f23406c0113a7c2cd33d9531fc3a6eb35bcc868a1183ab62ecdad2cbf62 DIST vivaldi-snapshot_5.1.2567.22-1_arm64.deb 82252416 BLAKE2B 8a929577786a262a03269852194463ee3913a8ab9b48a10bc946ad9d83da689181be3aaaa1d25f2239886011805ade0bb83499d3a5fe5be789276fa1a9e939d2 SHA512 d985a9529ec91ed960e055eef489ea27295e6e79a666527251536e26bfb06ade6616ecf67ff25ffe01a2a1233822b6d10f7d91b55d2b6264132c3c7cbf00e0ee DIST vivaldi-snapshot_5.1.2567.22-1_armhf.deb 78108904 BLAKE2B 42265fd79649455e186cf218066b1ce74d3677691d1ea2dd9635c141fb0c4689a8420d584d8857ec9e9c45401c5fc191fc41f936c601e1b1808c8d136c18c4fb SHA512 939c32333d256a6ab599a6570a8526ab0ef4dd8e4aec67ec629fdba95b0db881734691d8b5a8eefb829dcfa7df93133919a920a24f8ee3408325ac6611ec7037 +DIST vivaldi-snapshot_5.1.2567.24-1_amd64.deb 87352852 BLAKE2B 983462bcd71bd53e1fe2bf493ea0a6f465b958446633699118ac4cf824b2c8947c49ebf84a254443f42393620ec827e94fea2becbae3cd64eae288551f0b22d1 SHA512 d3346e96c3c40c79ce18bdfe07d67643b17b46cb2be10aca4d05742f3c307e6106a2893bb44e7a3f1b83ab697a6d5d285e0c066c2fc87cb5cc50dc57eadfeca9 +DIST vivaldi-snapshot_5.1.2567.24-1_arm64.deb 82227660 BLAKE2B 72eb6f00f3f6857f364fcbaf49e37d6317a0a4aa20ab9bf7279f732a54f9b1ad46f19cc2ae48d8b7b9cf602e3feeda090956a42942df971765fcbc2f8fe26bd9 SHA512 5ceb45b4aad49efcb705183135dcb5f9afbce213a7043aadbc4dea7ab73b18fe53238a0c47ef01afd867edb0bc10a69d3a141efdf0f70b4df4cd79de6da24afc +DIST vivaldi-snapshot_5.1.2567.24-1_armhf.deb 78091572 BLAKE2B 68de80e499eaf2761e34db5aff3d805a788684f6a6a7f6663a035de04d1c9f1d065f15ce2d631dc27fd2bc82ec3414b81540733089f42a675dc6565a6e2c3857 SHA512 102e17b67fd4eae3abd08064e5278b40ac23cbae09e7c7733aed45c1144118bc15077c366376b3752170cae6d022bf88299ae19e8af7c43ac34dcb324a86537a diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-5.1.2567.24.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.1.2567.24.ebuild new file mode 100644 index 000000000000..a0fb3fa96f92 --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.1.2567.24.ebuild @@ -0,0 +1,204 @@ +# Copyright 1999-2022 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/${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 +} |