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 E54ED158451 for ; Thu, 11 Jan 2024 22:17:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 51105E2A79; Thu, 11 Jan 2024 22:17:36 +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 3348AE2A79 for ; Thu, 11 Jan 2024 22:17:36 +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 22E8F343159 for ; Thu, 11 Jan 2024 22:17:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 71F1CAE5 for ; Thu, 11 Jan 2024 22:17:33 +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: <1705011337.2f39f04a841a1315e82e3e9afff835b8697e903f.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.53.ebuild X-VCS-Directories: www-client/vivaldi/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: 2f39f04a841a1315e82e3e9afff835b8697e903f X-VCS-Branch: master Date: Thu, 11 Jan 2024 22:17:33 +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: c9c94cc4-448f-4dc6-bb64-25cae9099b44 X-Archives-Hash: 9962c6ed8009047df4a426c23f3b0d44 commit: 2f39f04a841a1315e82e3e9afff835b8697e903f Author: James Le Cuirot gentoo org> AuthorDate: Thu Jan 11 22:15:37 2024 +0000 Commit: James Le Cuirot gentoo org> CommitDate: Thu Jan 11 22:15:37 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f39f04a www-client/vivaldi: Add version 6.5.3206.53 Signed-off-by: James Le Cuirot gentoo.org> www-client/vivaldi/Manifest | 3 + www-client/vivaldi/vivaldi-6.5.3206.53.ebuild | 224 ++++++++++++++++++++++++++ 2 files changed, 227 insertions(+) diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest index 17e012e80345..30204063ef68 100644 --- a/www-client/vivaldi/Manifest +++ b/www-client/vivaldi/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-stable_6.5.3206.48-1_armhf.deb 102282592 BLAKE2B 827f7d544d8927661d DIST vivaldi-stable_6.5.3206.50-1_amd64.deb 106997072 BLAKE2B 64e3d502ad5c2e3d657c9d3a8d79fab2ec2e96eaa437d5fdd8d50747ffad003bb21ee57c2dad6bee6877b67f51c4c48c0df8b9a861ad255bdd8fca4fc88c2517 SHA512 0a3a5bfa60374eddaf7d6cd45c1d702719993db77caa94b641b03a306bc020226f753e1557f3de332694f63a53f5ab65e5d278a674085eff9979efeeb962f3f9 DIST vivaldi-stable_6.5.3206.50-1_arm64.deb 100873932 BLAKE2B 544dacdcec653e3c8a22696ffae0115dad7c2e2c953f7812d1be40353de333407231f0106fe842b60520f6987aeb98a7b2bfb7b416c4dd5cbf773ff8218779e2 SHA512 d734e1df774198c1e9174d4dc1861060ba0c2c58a76a0e34657eb4ff96fbe92e0cd1f2963a24694d72c05662113d7ee6f38ef2dac073f8169d1c9a1128a135ab DIST vivaldi-stable_6.5.3206.50-1_armhf.deb 102279324 BLAKE2B 805084c8e944a22195ac08c90f092344f87b64e91beb1067b2e291e513d7740409bd64bec3291e35443d39b6064491174b5cc5ec7ff510a5f112b675a2e150cb SHA512 638e75fdbe84bfb373dc4d8270d671500bd00476ffe34154882b23a90274f95871ce123edc84e342084607a7a5e344cdd213459a9d758eba630c8009901b8cf7 +DIST vivaldi-stable_6.5.3206.53-1_amd64.deb 106990300 BLAKE2B 24d2556454d35826995be43f54bed4d679ff6859ff0ac69eaaf644fb325a91035fd0043048e6345416c727a6ce02ab3871abd48cabc4456caafa16a1fbba1cc2 SHA512 eaa1a62c796a34de6de5046ff247b5aebe0c558068c8d1690c30e2250ce9faa18b5c9944648e46ca049bd847ac0086115a42b080a51b2538022a5bf39a2f3881 +DIST vivaldi-stable_6.5.3206.53-1_arm64.deb 100854724 BLAKE2B 76bf62fca8265982d8e683a6f74e3b30ce606f1c96c02f776b7e5065724177e6c10d340e1f75b5103c2ce969db4d3e81aeda5365383550d86a0fccaa94e98a29 SHA512 842358cda63bc14485e5ecb7298357641a0420cd63a2497cea179dfe69d76495dc54dccf7b716b4d1ab66c90e7f2dac85af10f67b9844c9e928fa51b4764d8ff +DIST vivaldi-stable_6.5.3206.53-1_armhf.deb 102296752 BLAKE2B 077413b9b729d857aff362380df02b8022648e379de9cad444dab4b6c5579582f771cd06d3f9aab54b32a19f9556f14643be88aa4426e6b4d3fb8f673379f9f8 SHA512 af7cbad230e34e29f90eed47b5afdeca305c4535080f0c72ebd3cf9d0c0f6524687128bdba1dc95010be5bfa1367322e27cff390b92d5096eaa193bcc8f173b1 diff --git a/www-client/vivaldi/vivaldi-6.5.3206.53.ebuild b/www-client/vivaldi/vivaldi-6.5.3206.53.ebuild new file mode 100644 index 000000000000..ea7dea4f525e --- /dev/null +++ b/www-client/vivaldi/vivaldi-6.5.3206.53.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 +}