diff options
author | James Le Cuirot <chewi@gentoo.org> | 2022-01-23 20:55:27 +0000 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2022-01-23 20:55:27 +0000 |
commit | 2f1b83b7790953d56d315f72a4c2b555a32414b1 (patch) | |
tree | b07fce130658adb32149d630cbc5950bd1c2fd44 /www-client | |
parent | dev-libs/expat: Drop vulnerable (diff) | |
download | gentoo-2f1b83b7790953d56d315f72a4c2b555a32414b1.tar.gz gentoo-2f1b83b7790953d56d315f72a4c2b555a32414b1.tar.bz2 gentoo-2f1b83b7790953d56d315f72a4c2b555a32414b1.zip |
www-client/vivaldi: Add version 5.0.2497.48
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.48.ebuild | 204 |
2 files changed, 207 insertions, 0 deletions
diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest index 6b31fcf80a32..12b57d411525 100644 --- a/www-client/vivaldi/Manifest +++ b/www-client/vivaldi/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-stable_5.0.2497.35-1_armhf.deb 77933892 BLAKE2B 1db12bbce3e32c9fbd3 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 +DIST vivaldi-stable_5.0.2497.48-1_amd64.deb 86975784 BLAKE2B 05b03f7b4998ebfefb2b14d1b6e62d8795c0a9a20cda53a70610538327a66e045a2cb24fed607c7c7b237f3e54f91d20046e45c4700348821499a90e4af767e7 SHA512 84a463bfe4eba4d94ee8cb21a0316a51a062f938d4b4050a59894de616774574ef46ce38042569e18e359e2c85af5ba6db112a9d044267269c16aa894c36308b +DIST vivaldi-stable_5.0.2497.48-1_arm64.deb 81589608 BLAKE2B dac0542d803cd49858d9b0e4a3c4e7ef3227ae903ba2362e82a7681fb7c92902f33112056d0049f102004a7a041a0a03b7c0bf5e21db8cb20ce4e666ed7e8719 SHA512 b0e4af19f92d93aa60b476b47efe1524c3fead12daa731153c8146b128e6c52f10a6480ee7037849c306585537f853cbd03996e8954ca020b21a73d931d5147f +DIST vivaldi-stable_5.0.2497.48-1_armhf.deb 77941040 BLAKE2B 39e519229a7ba00261ca3be24ff59f7a34a33ecd97991b9acfcf630e2379c1d7f2873375cd10f3732419834fddbbf95253d2eeb8a4fcca4ac50545e7fed7b09c SHA512 e57cf9c0094ae7890efad146f39238593f94490d67adcfc0fcd5d6527fd32ee6628d46e8861b2d2085c02a828de575a29873abfc9512281f1aaf2068161e2294 diff --git a/www-client/vivaldi/vivaldi-5.0.2497.48.ebuild b/www-client/vivaldi/vivaldi-5.0.2497.48.ebuild new file mode 100644 index 000000000000..a0fb3fa96f92 --- /dev/null +++ b/www-client/vivaldi/vivaldi-5.0.2497.48.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 +} |