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 9D782158020 for ; Fri, 23 Dec 2022 23:13:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 18E51E0898; Fri, 23 Dec 2022 23:13:08 +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 E6AD0E0898 for ; Fri, 23 Dec 2022 23:13:07 +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 AD026340DB5 for ; Fri, 23 Dec 2022 23:13:06 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0BFAE77C for ; Fri, 23 Dec 2022 23:13:05 +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: <1671835788.b055af050700a35e0c852b252d7a98bae37695e0.chewi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/vivaldi-snapshot/ X-VCS-Repository: repo/gentoo X-VCS-Files: www-client/vivaldi-snapshot/Manifest www-client/vivaldi-snapshot/vivaldi-snapshot-5.7.2887.3.ebuild X-VCS-Directories: www-client/vivaldi-snapshot/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: b055af050700a35e0c852b252d7a98bae37695e0 X-VCS-Branch: master Date: Fri, 23 Dec 2022 23:13:05 +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: e773c049-b016-4035-97e0-d531972f6c8b X-Archives-Hash: 4af7490e9b6f7d9a399a66ffa215fd12 commit: b055af050700a35e0c852b252d7a98bae37695e0 Author: James Le Cuirot gentoo org> AuthorDate: Fri Dec 23 22:49:48 2022 +0000 Commit: James Le Cuirot gentoo org> CommitDate: Fri Dec 23 22:49:48 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b055af05 www-client/vivaldi-snapshot: Add version 5.7.2887.3 Signed-off-by: James Le Cuirot gentoo.org> www-client/vivaldi-snapshot/Manifest | 3 + .../vivaldi-snapshot-5.7.2887.3.ebuild | 207 +++++++++++++++++++++ 2 files changed, 210 insertions(+) diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index 21e4778abb07..fcd8c709cd11 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_5.7.2881.6-1_armhf.deb 91093100 BLAKE2B aafaf5539771af3f82 DIST vivaldi-snapshot_5.7.2883.3-1_amd64.deb 101327184 BLAKE2B 9d190d724ad89250f0b65abf63fcf09bfdfe3c8ea0c0debfb03b5e13be0fe7a366e52f4e004ab828d3548421526ac331bdbb9b81a9ca203e621f002dc2ac66da SHA512 33336381f09b510344f97083d8a3c835a65c0e6fb92c206ef07cddd4c2f3d8a3ca235bb8dbd3620f6504323cb8c13e2eeb9cc13881c3d8ee3450b9294900c686 DIST vivaldi-snapshot_5.7.2883.3-1_arm64.deb 90962312 BLAKE2B 23a46430cf8919e5a460ca7e8422d4b0f68ab853bdb3012dc0b9b29259f765bba0deecdb04ff3c5002e96873e333535cf1960357e08f0fe7c743eed5436747e4 SHA512 6cf1d4799b2fb582c392780b3417d6c1e71d57d90af99f9913ea63919bbe1ce2b4a9ebef1949a2f726f19b818c3319652b373171ae8db08bea41d4dafe538406 DIST vivaldi-snapshot_5.7.2883.3-1_armhf.deb 91105528 BLAKE2B 74e01f53aa7988ccd4bf879f670142a2f3257222d69edc9ea062051f1a2d1482d1ab9bbaac52a2db6e74cc9f5b17788d60a489d11aef052ec817abb08ce48df9 SHA512 5fd65f6bfb132f1d75c28fd5086dcf9684eb8dbd6de6a616994d6b76120265ddb4ac0b3e34796e72a90990cf4018edfa3ad734b56b7eba9f8ad3d16c2fcca95c +DIST vivaldi-snapshot_5.7.2887.3-1_amd64.deb 101316368 BLAKE2B 5cadae31a66647117433b058857c53559577fd7e0549fa7e282e24dba62ad46213548582da2805dd10f7011a31db112b8ff4d9ac0e44223238d51417e0011acc SHA512 b45202024d839f516be4989f364e7f39c52b56b992ef8edd9c8f6c9c1ddc0c4061d51254fd9d4e33ead0d7131bc72e81348480d2e59130a9d81a48107e7e2c99 +DIST vivaldi-snapshot_5.7.2887.3-1_arm64.deb 90963408 BLAKE2B 22aa34d874b9d758f4096c56f5ef1ef48749bbd15ce6c505cc02f6b1090549544c98c5bf47621df64eab25277bf87dda37d1eecd6930c14e55386d10cf644cb2 SHA512 2efdcf19277a85bb0e5d92de33c6b4c9ada589ac4e6fc7cd56e1701eee467932261c0efbebfa1fe1c7896fd8e2cb2adbcb1fabfa0d8878d22894202192bb994f +DIST vivaldi-snapshot_5.7.2887.3-1_armhf.deb 91114572 BLAKE2B 56371fa3e2ebd02a950086f788767c732eeef8370f3391bd75dbb6953073540fa27ed9b43cb8c679ee2254b254606610e1aa98c854b8f89216e369cf021c0ffc SHA512 8593b1222eb10c4d53a63df78e6f7050cfb87aee4477223429b89baffa1cb99e755db441bc03442393d5a78c666cb93dcb8a20ecbe10597315a39909a32d1b47 diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-5.7.2887.3.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.7.2887.3.ebuild new file mode 100644 index 000000000000..82e87d9746ea --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.7.2887.3.ebuild @@ -0,0 +1,207 @@ +# 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="proprietary-codecs 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] + || ( gui-libs/gtk:4 x11-libs/gtk+:3 ) + proprietary-codecs? ( media-video/ffmpeg-chromium:${CHROMIUM_VERSION} ) + 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 + + 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 +}