diff options
author | James Le Cuirot <chewi@gentoo.org> | 2022-01-13 23:36:18 +0000 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2022-01-13 23:36:18 +0000 |
commit | 842dfaa52526cf2fd33c1e447a82629165c3b578 (patch) | |
tree | 5e951c69f0db17bd3f74534ee42d0a802dac7c2f /www-client | |
parent | dev-python/lxml: Stabilize 4.7.1 x86, #831147 (diff) | |
download | gentoo-842dfaa52526cf2fd33c1e447a82629165c3b578.tar.gz gentoo-842dfaa52526cf2fd33c1e447a82629165c3b578.tar.bz2 gentoo-842dfaa52526cf2fd33c1e447a82629165c3b578.zip |
www-client/vivaldi: Add version 5.0.2497.38
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/Manifest | 3 | ||||
-rw-r--r-- | www-client/vivaldi/vivaldi-5.0.2497.38.ebuild | 204 |
2 files changed, 207 insertions, 0 deletions
diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest index 48d13f54990e..570b87549acb 100644 --- a/www-client/vivaldi/Manifest +++ b/www-client/vivaldi/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-stable_5.0.2497.32-1_armhf.deb 77941764 BLAKE2B 1018304591bd9d465a7 DIST vivaldi-stable_5.0.2497.35-1_amd64.deb 86963144 BLAKE2B 4064e8a9b6723bb2540004142654161784653644d290ade9a8886b4bf78207a0f74c19293963f22d80f5ede1e0d3d4f727376e22f4039546734a0f118746168d SHA512 667e0f7b6da4600b65a31190878aa11f924137811efc614765bf7fab92ffeba87e81095060b14b41daaf61d6713117e6b678333c396b0612dce6c927f572009e DIST vivaldi-stable_5.0.2497.35-1_arm64.deb 81631944 BLAKE2B 90f29e926c88ba75633c54f1a5210b38065ed690417e54bb3e1da59375ad4c88c269e33c377737ca5bd8541a9cbdace42a53f34c13556840e2d4c170271f1b38 SHA512 43058ebf205f858bae7f7688994dcf7c3eae9c958a69ff4f80fa64b36af4e3c8b440ca7653f435ba0979ccfae2c3a4435627abcea09e3b404ea277834aba08aa DIST vivaldi-stable_5.0.2497.35-1_armhf.deb 77933892 BLAKE2B 1db12bbce3e32c9fbd389d82b43eadb33f5c83ea51e90bf47c4411799c80e31e31ebe6197ae6437d8d556b49976d58533534d7e86a2e802080b3146950f8f063 SHA512 ddcffb64fd7e98737e4cc68066b56629b245e16d6d3a6a133fc502f702195662240c6c56b4c09c18e13068cc4d815c35fbdb44d0dd5b6518ad96a46a1155cb8d +DIST vivaldi-stable_5.0.2497.38-1_amd64.deb 86973208 BLAKE2B 8c1581d2ac1382c69d1cf0c9938a7ce0bf9302d9947c5624ab80f30b028c781914189508cd2e281914682b0d55a527478e06f0072e347ee56c7adf515e94353b SHA512 81a7a6744cefadc1997fc696c6d1204e32f4fc9bc718f1eea315e4ec060d7340b6a25f777fa7f8f133c35b018e92c03d2bdd1892bf3dbef021b7cfce777252eb +DIST vivaldi-stable_5.0.2497.38-1_arm64.deb 81614372 BLAKE2B c630a534448fda19373a316e0d7249ce7e91fed07caa2e1a30d6f1713bc4b5f29111699f8e6f6d610cd15b51a18fdd7df36547d942bc358daaf9b022a5ce10db SHA512 cdd9321cf2a2b7732bf3de1a3203f6287f87c419019705c387483852479da373172399deccf9782ab64b7f67f4e0053d76f199b29b451d15057bcf6a2a3c4383 +DIST vivaldi-stable_5.0.2497.38-1_armhf.deb 77929184 BLAKE2B 09ff00ba33be0af7ed37806e3632e6158c8e68d1788d2ad12dd994f57cda43ae3619b697d078821114d06caa6ba4aa0053cc661a10cc50ffa8579423870436e9 SHA512 fd73e158b8c234888f9ef5381d5915e9de100d6125ad30eb4355e7f1b89c2b47afa87ce168ac0da05cb8b9b15782eaad9462e3617498258f46f9e7e3a84929e3 diff --git a/www-client/vivaldi/vivaldi-5.0.2497.38.ebuild b/www-client/vivaldi/vivaldi-5.0.2497.38.ebuild new file mode 100644 index 000000000000..a0fb3fa96f92 --- /dev/null +++ b/www-client/vivaldi/vivaldi-5.0.2497.38.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 +} |