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 52A34158089 for ; Sun, 1 Oct 2023 09:00:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 357442BC0D8; Sun, 1 Oct 2023 09:00: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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 133A02BC0D8 for ; Sun, 1 Oct 2023 09:00: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 24E64335CD2 for ; Sun, 1 Oct 2023 09:00:08 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 750F31267 for ; Sun, 1 Oct 2023 09:00:06 +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: <1696150786.c0aaf8d38f85e5b2d1e4f89c5732c5288932e616.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.2.3105.54.ebuild X-VCS-Directories: www-client/vivaldi/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: c0aaf8d38f85e5b2d1e4f89c5732c5288932e616 X-VCS-Branch: master Date: Sun, 1 Oct 2023 09:00:06 +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: 5b3a706e-2365-48d2-bcaa-8436789d5dc1 X-Archives-Hash: 9c905fc3fabdcfdd6046bc193306de82 commit: c0aaf8d38f85e5b2d1e4f89c5732c5288932e616 Author: James Le Cuirot gentoo org> AuthorDate: Sun Oct 1 08:56:43 2023 +0000 Commit: James Le Cuirot gentoo org> CommitDate: Sun Oct 1 08:59:46 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0aaf8d3 www-client/vivaldi: Add version 6.2.3105.54 Signed-off-by: James Le Cuirot gentoo.org> www-client/vivaldi/Manifest | 3 + www-client/vivaldi/vivaldi-6.2.3105.54.ebuild | 223 ++++++++++++++++++++++++++ 2 files changed, 226 insertions(+) diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest index d3bba9319687..60b81f78b9d0 100644 --- a/www-client/vivaldi/Manifest +++ b/www-client/vivaldi/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-stable_6.2.3105.47-1_armhf.deb 95606020 BLAKE2B 5e612ad6158995a2926 DIST vivaldi-stable_6.2.3105.48-1_amd64.deb 99948988 BLAKE2B fcac98bd773990ac99c2130814431829ed79a78c83f3f32ff015cfe5d70eaa31922f80bc6addd5f18af68951c973d20c5be6c4ae706ca13db7b85f5215097c86 SHA512 373e62c10366feb1e78a6ec58c2fa56ad9a07108e87cfd6631e834a10f6798797bb260233235368e5e780e564dc5268690253d1fd2c12a8713fc85cd0dec0d97 DIST vivaldi-stable_6.2.3105.48-1_arm64.deb 95036732 BLAKE2B 23c86cedfe03c194aa37c7f83fc6772e4ee734ec41e35c593fa5cd9c65a30d3dab76d37a3f4deb19e9e70552e693bc232cefae9df61609476c13ace65ea31a29 SHA512 5ccfe79322b6a27199d9a7fa6ed79468bfda519f81edde10a9a5f08d33564acba9f959de4a2be7d7e1f8a6b2f5958f40ebbe13c3680a648b01fd6bc8722e4bdd DIST vivaldi-stable_6.2.3105.48-1_armhf.deb 95608000 BLAKE2B eff37dbcae32b48b33555a84bf28600791776dd20b1e6509420a1163edfd46dfecc76bdc9c2e57b74394d70a9dc7c6d4547011ba3034dad6778cb2dbb08e0b4c SHA512 9f32c0df42b1d44c9211771959cc86a63ba3fb7755a1e7a845cfb2a8fcde7c6bd2a149e785398779b99044bd08d6586c4c395e4f1aed568f25ea29f0fed9ac61 +DIST vivaldi-stable_6.2.3105.54-1_amd64.deb 99972904 BLAKE2B 5a92cdb1a9100a3e6cf7f59fda15525b33e30cb68757541c05439981eccbd83671fdba0cb8e293f518e6eea3a809b386032f77c633d20eb60a7fe15855e74f78 SHA512 434b76738fbf6be48361f41af0161214c4b226711042195dc78b84cb3d30d268563eeb50696a28056e1a7e656464ac52001fe46c40c66f5ceb38102db11453ab +DIST vivaldi-stable_6.2.3105.54-1_arm64.deb 95022664 BLAKE2B ac955be8853a1d4b64e6b18044e798f1599adf17ebfd684c0a5eb369a1321a3f462543e8064fbb3b3c0bc55a9922bcdcc30cbd2f643153965141d02683c399e2 SHA512 f13d4ba877b04b3c15b154535364b49ecffbe23c49d6284411a0803e25bc94eb3a41ba7e9ec8392ac143b25760fbf28a76a20df2541cfbb96d635bc11857e25b +DIST vivaldi-stable_6.2.3105.54-1_armhf.deb 95581688 BLAKE2B 78bf04b737acb89d9892ccac2380f9931bdfc7dd043d73e22e1c888ee92e79b401c67ce79fa2308cec63fde3b433e009a0c9ad9ff99c19a8e4f4ed92467bedec SHA512 fafe4c98689dbfad608b2fa1b93535ae780ca4104e5955f1128cf6f210c4fe30878ca62bfbf7f5ff730a301690b02f8bd25dbf17097c2bd49b62fd42626ebdc1 diff --git a/www-client/vivaldi/vivaldi-6.2.3105.54.ebuild b/www-client/vivaldi/vivaldi-6.2.3105.54.ebuild new file mode 100644 index 000000000000..9d522c106aff --- /dev/null +++ b/www-client/vivaldi/vivaldi-6.2.3105.54.ebuild @@ -0,0 +1,223 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CHROMIUM_VERSION="114" +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="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 + + 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.${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 +}