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 288BE15838C for ; Thu, 25 Jan 2024 21:52:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D728FE2A6D; Thu, 25 Jan 2024 21:52:09 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 B633AE2A6D for ; Thu, 25 Jan 2024 21:52:09 +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 B2BE03433F5 for ; Thu, 25 Jan 2024 21:52:08 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 13654EC0 for ; Thu, 25 Jan 2024 21:52:07 +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: <1706219310.8b9fda858b4623022ece3cc13cd29293362c409d.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.5.3206.57.ebuild X-VCS-Directories: www-client/vivaldi/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: 8b9fda858b4623022ece3cc13cd29293362c409d X-VCS-Branch: master Date: Thu, 25 Jan 2024 21:52:07 +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: dfb0d459-b683-4001-b209-ab708659b06e X-Archives-Hash: f6583b56756d3d86154f954fafe4f0fe commit: 8b9fda858b4623022ece3cc13cd29293362c409d Author: James Le Cuirot gentoo org> AuthorDate: Thu Jan 25 21:48:30 2024 +0000 Commit: James Le Cuirot gentoo org> CommitDate: Thu Jan 25 21:48:30 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b9fda85 www-client/vivaldi: Add version 6.5.3206.57 Signed-off-by: James Le Cuirot gentoo.org> www-client/vivaldi/Manifest | 3 + www-client/vivaldi/vivaldi-6.5.3206.57.ebuild | 224 ++++++++++++++++++++++++++ 2 files changed, 227 insertions(+) diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest index 2d1f778ffe49..b8238a71ca84 100644 --- a/www-client/vivaldi/Manifest +++ b/www-client/vivaldi/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-stable_6.5.3206.53-1_armhf.deb 102296752 BLAKE2B 077413b9b729d857af DIST vivaldi-stable_6.5.3206.55-1_amd64.deb 106977300 BLAKE2B 9adef9c66bf26b118c8206306962e173073d488de5faeb887cbe6d1bc6912dac9f53ae8337a8fc5d19ee83f91eda54a3e2a16c5852a90123a40d4011f63aacca SHA512 d25c70dbb84b114dbaab0a80db5d553abb753f7a62a3d6eaa3215458d7b4f968cdbe50a1bfd6f42f00e5e2b420a9be59f7b4383650de14f316c4d1c19ad2e444 DIST vivaldi-stable_6.5.3206.55-1_arm64.deb 100873888 BLAKE2B a9e1aae83a50aa99f6a170141b9b3fd9916d24398868c4f2d17f1d2e4c1806d8f17586b4a38641758caa1901efdc2f9b6f0327e72812bfeb5ab8370a48808227 SHA512 d75e324cbd559176d061f9dc6c7f4212d46d6b10897163e9e9fa5f2daa67308a8fe3ff596b46297695300acf2e6cbe6d09a5552a7843d589a60169abf94355aa DIST vivaldi-stable_6.5.3206.55-1_armhf.deb 102286752 BLAKE2B 301a41bc56616bf495e7f4da3960646968d42658e23cae4c732cbc278a692dd7d6cbd80e0450f9b7657d009b57709fdcd30c5c288b51acdcf51dfc79c0ed9848 SHA512 60a8e082a90541281bd4e90086276488c8671afd8ac7258af9da6a22ae60ebe0b672001584a7bde4786fd1cb62ac0bd6f6889933349e9d6107436e8267be2633 +DIST vivaldi-stable_6.5.3206.57-1_amd64.deb 106941900 BLAKE2B e5995860ee060d2189b4551932724437957d7a1f9cac3f664b5c77ec5e917a8891f2087a612acbf53f4fb05202bf03667b1702919d92a546524ac1d263085c79 SHA512 7e27232195e6d229f58133c248535d41b55dd1c28753a8d28874af7bc8256c652c4620d3c6ee4c2a902b9f3096fc0193dd8309ea1c72dc632c39666e2a19e954 +DIST vivaldi-stable_6.5.3206.57-1_arm64.deb 100880024 BLAKE2B fb98c1842e51d52b085ebf98b6c23de92391f2955c1f8ba4e191c4961479f38423c247b171aa5929b269939a3b6d8fb4744d2804f96309b95c4187150a6469a5 SHA512 42280d7510b61db4d1338bee3e8a95952107194045dc31a625d6eee0531d335a6bb7395b11fff41d102a92b3974bf6165a79b9d1ba03dd8e084fed405142fa73 +DIST vivaldi-stable_6.5.3206.57-1_armhf.deb 102270576 BLAKE2B a68db6d499acbb2cb83a217146abbf89516f1f69c5d76817b03a730edc824e6e513374ee9fc6275c9a705976520d14eb8abec00550eb9348d84547cc230ba93f SHA512 35184f704abdf8e6ae4fc8850a2e554be5916a45eb029868aa759f2071f9112294e34b2ad7768bfd11309b30b26e7175f70964d8130384f72bf50a94e0b84970 diff --git a/www-client/vivaldi/vivaldi-6.5.3206.57.ebuild b/www-client/vivaldi/vivaldi-6.5.3206.57.ebuild new file mode 100644 index 000000000000..ea7dea4f525e --- /dev/null +++ b/www-client/vivaldi/vivaldi-6.5.3206.57.ebuild @@ -0,0 +1,224 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CHROMIUM_VERSION="120" +CHROMIUM_LANGS=" + af + am + ar + az + be + bg + bn + ca + ca-valencia + 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}_" + +SRC_URI=" + amd64? ( ${VIVALDI_BASE_URI}amd64.deb ) + arm? ( ${VIVALDI_BASE_URI}armhf.deb ) + arm64? ( ${VIVALDI_BASE_URI}arm64.deb ) +" + +LICENSE="Vivaldi" +SLOT="0" +IUSE="ffmpeg-chromium gtk proprietary-codecs qt5 widevine" +RESTRICT="bindist mirror" +#REQUIRED_USE="ffmpeg-chromium? ( proprietary-codecs )" + +RDEPEND=" + >=app-accessibility/at-spi2-core-2.46.0:2 + 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? ( + !ffmpeg-chromium? ( >=media-video/ffmpeg-6.1-r1:0/58.60.60[chromium] ) + ffmpeg-chromium? ( 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 + + if ! false; then # use qt6; then (TODO) + rm ${VIVALDI_HOME}/libqt6_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$(usex ffmpeg-chromium .${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 +}