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)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2F84B15ACFB for ; Sat, 22 Apr 2023 21:49:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3705FE085A; Sat, 22 Apr 2023 21:49:31 +0000 (UTC) Received: from smtp.gentoo.org (mail.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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0DB08E085A for ; Sat, 22 Apr 2023 21:49:31 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 477D834126F for ; Sat, 22 Apr 2023 21:49:30 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C03948AC for ; Sat, 22 Apr 2023 21:49:28 +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: <1682199970.6eeec66b66b702c547f7dd3ad4d8f7532494c407.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-6.0.2979.15.ebuild X-VCS-Directories: www-client/vivaldi/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: 6eeec66b66b702c547f7dd3ad4d8f7532494c407 X-VCS-Branch: master Date: Sat, 22 Apr 2023 21:49:28 +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: 5a81e53e-8885-4b9f-ad5b-5cf3681d4757 X-Archives-Hash: 992d81919448cf5c4098ab21b591b812 commit: 6eeec66b66b702c547f7dd3ad4d8f7532494c407 Author: James Le Cuirot gentoo org> AuthorDate: Sat Apr 22 21:46:10 2023 +0000 Commit: James Le Cuirot gentoo org> CommitDate: Sat Apr 22 21:46:10 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6eeec66b www-client/vivaldi: Add version 6.0.2979.15 Signed-off-by: James Le Cuirot gentoo.org> www-client/vivaldi/Manifest | 3 + www-client/vivaldi/vivaldi-6.0.2979.15.ebuild | 217 ++++++++++++++++++++++++++ 2 files changed, 220 insertions(+) diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest index 81c9707942b1..b45b4727f3af 100644 --- a/www-client/vivaldi/Manifest +++ b/www-client/vivaldi/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-stable_5.7.2921.65-1_armhf.deb 90794256 BLAKE2B a2ae0724660f5c08efd DIST vivaldi-stable_5.7.2921.68-1_amd64.deb 101588752 BLAKE2B 69c2d1af3871f9807721b0be605e77ece9df1e069c0026cf767abe8c709d64e7fa9e28cc08433a2028a991eb24737e2480b072b82da5b9fe7c0c3608b1a57b7d SHA512 95cc1f92e3a72478932921560ad617329146da068824bbd58755314f20cdb9bc6b5ad6d11832d7e7540f3773058c0d33e79ad099358db8bc3f30be65820ab5dd DIST vivaldi-stable_5.7.2921.68-1_arm64.deb 91114968 BLAKE2B e8fcc80bdbb2668fa52bb96812907eddb49fb2ee4fcfb29ea7022777a01082818eba9d9db8fad99bf88f7cf5f532b63a1c7d34c04e49f851f0bd1f6972724a00 SHA512 f68b4900b07ec1c028f472da1c7769c2767b3396f75ae9e3c26bcf6509f99e456fdb1065779f07ec03b7c824fe612e345e808af9f76a3c279d4ee164da6a5f49 DIST vivaldi-stable_5.7.2921.68-1_armhf.deb 90800820 BLAKE2B c1ff1ec4d04fa5a03cb0e6607b6c499276d066126614a725ae92634e09531ef71331d184f876fbb5bdc6f5c4fdf456af1fef42dd6368d04d8e78c4863c153c63 SHA512 c9cd973a6e23dfa697ad6117572302655f495e6189683fb6b5566706463fb3b1e27e3852b66c63a9b46a338c392973685e9facf406103cf379e0c7c9faa42871 +DIST vivaldi-stable_6.0.2979.15-1_amd64.deb 98024608 BLAKE2B d1c3496895d02d7e7940f4c8c2c7ae547ff7ff5fcadb1befc259d0d9c1688223794185dcd240620e20562c067f9cb0401afad8b36ff85dd62f599073421980b7 SHA512 a06b3b4bff040ed078a0e24f42c4ef6bb7e59ea9bc84c1d6e35cdf7fce914d1d1e98779867225e39047fa1b9ad94bc4e986d2400f11bd0b24697a41cee5dd9d2 +DIST vivaldi-stable_6.0.2979.15-1_arm64.deb 92692968 BLAKE2B 6264239c353f7b46545b675866b33ddd72af955d42fce902664ed0db9a82f4b8b657bd7894143183b0803adcec4ba2596621b8e8234e68a0e9e51ba85926fd78 SHA512 8cad20e2898d89b7235ad3adb11024b46a32e821c5d8fb12ea9a1f39a45508d47c5aab3f5a0f284ef30b89ba4ec2fed51c6423ef2684f0bd5b25f41684f4755f +DIST vivaldi-stable_6.0.2979.15-1_armhf.deb 92549764 BLAKE2B de7a333f72fd29e873d1e698412046e134e84df5ad96b4e10585e4fa850c96a8439c34236792d07615c90e801c478d900e5003a00ca2edf47564ab0a5775a829 SHA512 ebc4c6cc7a0819d9472b8bb95d096dce6455a6892ee974e0804a4f0846b09710862f180b41ca9dae823d338772a0dd955b80f9dbc7e9ffcaf4fcc8146dfe6942 diff --git a/www-client/vivaldi/vivaldi-6.0.2979.15.ebuild b/www-client/vivaldi/vivaldi-6.0.2979.15.ebuild new file mode 100644 index 000000000000..28280ba78958 --- /dev/null +++ b/www-client/vivaldi/vivaldi-6.0.2979.15.ebuild @@ -0,0 +1,217 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CHROMIUM_VERSION="106" +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 linux-info 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="*" +CONFIG_CHECK="~CPU_FREQ" +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 +}