From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B4ADD15800F for ; Fri, 13 Jan 2023 23:06:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C063CE0828; Fri, 13 Jan 2023 23:06:38 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A0440E0828 for ; Fri, 13 Jan 2023 23:06:38 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9DD303404AD for ; Fri, 13 Jan 2023 23:06:37 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 21572828 for ; Fri, 13 Jan 2023 23:06:35 +0000 (UTC) From: "James Le Cuirot" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "James Le Cuirot" Message-ID: <1673651074.25ecb237cd5b9fa1e2a91287f85d730900e708b6.chewi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/vivaldi/ X-VCS-Repository: repo/gentoo X-VCS-Files: www-client/vivaldi/Manifest www-client/vivaldi/vivaldi-5.6.2867.58.ebuild X-VCS-Directories: www-client/vivaldi/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: 25ecb237cd5b9fa1e2a91287f85d730900e708b6 X-VCS-Branch: master Date: Fri, 13 Jan 2023 23:06:35 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e92ffcb9-d0ca-45cf-a9d8-981ee31fbe18 X-Archives-Hash: b792d94e2de9e9f90c45e07c8abd752c commit: 25ecb237cd5b9fa1e2a91287f85d730900e708b6 Author: James Le Cuirot gentoo org> AuthorDate: Fri Jan 13 23:04:34 2023 +0000 Commit: James Le Cuirot gentoo org> CommitDate: Fri Jan 13 23:04:34 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=25ecb237 www-client/vivaldi: Add version 5.6.2867.58 Signed-off-by: James Le Cuirot gentoo.org> www-client/vivaldi/Manifest | 3 + www-client/vivaldi/vivaldi-5.6.2867.58.ebuild | 216 ++++++++++++++++++++++++++ 2 files changed, 219 insertions(+) diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest index edee8abbad59..590eef6e80ec 100644 --- a/www-client/vivaldi/Manifest +++ b/www-client/vivaldi/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-stable_5.6.2867.46-1_armhf.deb 91091520 BLAKE2B b00f1b762168a666b10 DIST vivaldi-stable_5.6.2867.50-1_amd64.deb 101326336 BLAKE2B 74fccbe8b2eaf2199f502e0c5fd8ff1cf2b9015c74ca650a7f4a4b002e07a16d6ba34e0c181233d5b663b41b2223f703978704993b65e7279cd4ab201cb421a8 SHA512 40f657bff760db6a97a4aef94c72312a62bd7a7d19438e5b1ecfbd7a4fdfa4b01c4f8734b32f081fae520368150ee5d7ed8809c4d3c09dd8405c41f9c3207e58 DIST vivaldi-stable_5.6.2867.50-1_arm64.deb 90942328 BLAKE2B a131ab4788b08d09af17b7269ac1cb84487f0c7dd60a0eceb91cab59cb434bd517d73e332af1efc13f2c27a7c749b3a96c5171491ec3afad0b0c2391b3683715 SHA512 4b4fdf03ae2e0a027a01efef64b50ee7897475afe2e432735d77aee4d1b69681d2254f6f33c8a742d5fc17bbef1542b4577a356117adcad19d24ed49194cae5b DIST vivaldi-stable_5.6.2867.50-1_armhf.deb 91102248 BLAKE2B d6c763467daaf40953923ebb92a62a45171ff96a77caef77d0474f4bff5eb25e80b63ffed5820ca726d23c03ea4c7cd06386591b69eb0e09ef0207b244875879 SHA512 c2a9e4ca54446d4ac03a1fdaa630bbf7ba4324199451a88784b750c85c2e050fb89a1645d458a84763dd905613a28ff715837cc6653f45cd525bb2eb6856c5cb +DIST vivaldi-stable_5.6.2867.58-1_amd64.deb 101303448 BLAKE2B bf2fc19a0a62c29765c7299e392e445e162c47199ce55a191652aec4481de048c3b56a17ad6a5f3f9e3b646ac5598a370d9e57d8ba4392f33f2ed85490f6bd3b SHA512 ca07c0780c7733546288e9133f2973aa21c408e2ee77a388b3f0fcba5ae19b61b52fd76eabd0538232f7709daadc4c9be7f4c1ae0326ba5ac68d41da292b52cb +DIST vivaldi-stable_5.6.2867.58-1_arm64.deb 91003620 BLAKE2B b850450286ad45f9a22c5ce691fb1e013c1625997c06e2daffa36adc2bf0ebe8e9714e4f4d460206709764b11950bd958c09189fd54304e1a1e8a02bfb386977 SHA512 36b79213b6d376fb0b47f380df7968944e3343a7305c24e17e89a311d1792fd375447113a40b3b3a93282a85d268c1ae5f2ab3c0251cfa012839b83bf463d173 +DIST vivaldi-stable_5.6.2867.58-1_armhf.deb 91108960 BLAKE2B 08df248cc122721c7f502545274a459fe39629d51ca2e76629e19499315f32c1e92c199101531c186c5e550b48e72ba033ef4a89139f9b574e20045fca9eefd0 SHA512 b6a989c84131355f1bced3c017d8745731bcf393b519d2b94ccaab727c132d4468bf1d30973fde7b872c715672dff13b62c6f87e2d0746c5e950b3ab6bf74a89 diff --git a/www-client/vivaldi/vivaldi-5.6.2867.58.ebuild b/www-client/vivaldi/vivaldi-5.6.2867.58.ebuild new file mode 100644 index 000000000000..6360223e0294 --- /dev/null +++ b/www-client/vivaldi/vivaldi-5.6.2867.58.ebuild @@ -0,0 +1,216 @@ +# 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="gtk proprietary-codecs qt5 widevine" +RESTRICT="bindist mirror" + +RDEPEND=" + || ( + >=app-accessibility/at-spi2-core-2.46.0:2 + ( app-accessibility/at-spi2-atk 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] + gtk? ( gui-libs/gtk:4 x11-libs/gtk+:3 ) + proprietary-codecs? ( media-video/ffmpeg-chromium:${CHROMIUM_VERSION} ) + qt5? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtwidgets:5 + ) + 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 + + if ! use qt5; then + rm ${VIVALDI_HOME}/libqt5_shim.so || 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 +}