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 DFC80158020 for ; Sat, 15 Oct 2022 12:42:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A8345E0932; Sat, 15 Oct 2022 12:42:21 +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 8CE5FE0932 for ; Sat, 15 Oct 2022 12:42:21 +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 75093341180 for ; Sat, 15 Oct 2022 12:42:20 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AF7A961D for ; Sat, 15 Oct 2022 12:42:18 +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: <1665837667.012ba34e0cf0e8f2f07d14c6af8f4d5ecba4af8a.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.6.2824.8.ebuild X-VCS-Directories: www-client/vivaldi-snapshot/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: 012ba34e0cf0e8f2f07d14c6af8f4d5ecba4af8a X-VCS-Branch: master Date: Sat, 15 Oct 2022 12:42:18 +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: 6f9d216f-c44d-4a6c-9a50-bc800d73fedc X-Archives-Hash: 726ed31c3eed9264ecb8a7619de3abb0 commit: 012ba34e0cf0e8f2f07d14c6af8f4d5ecba4af8a Author: James Le Cuirot gentoo org> AuthorDate: Sat Oct 15 12:41:07 2022 +0000 Commit: James Le Cuirot gentoo org> CommitDate: Sat Oct 15 12:41:07 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=012ba34e www-client/vivaldi-snapshot: Add version 5.6.2824.8 Signed-off-by: James Le Cuirot gentoo.org> www-client/vivaldi-snapshot/Manifest | 3 + .../vivaldi-snapshot-5.6.2824.8.ebuild | 207 +++++++++++++++++++++ 2 files changed, 210 insertions(+) diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index bd8c443aac73..c7b0f5d8d579 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_5.5.2805.30-1_armhf.deb 89325068 BLAKE2B 1eac5ff149f402d61 DIST vivaldi-snapshot_5.6.2817.3-1_amd64.deb 101017564 BLAKE2B aeccf333cff4400a5c56a65ed5fc5e11ee5a370a3752ae62b055276932878eb7eadc5ed93a131846fa6e196a9b972f06acd0ce43276d9791f58f42bfb35931a9 SHA512 440880f3d7d07cd57f7c006577b9f486cf6583dd59369f97353548bb06d5bf467e3641bbb590ea0270023d68519bbd074ba75dfada700fc003cf633a017043e5 DIST vivaldi-snapshot_5.6.2817.3-1_arm64.deb 90944724 BLAKE2B a341a66dde76db6c681b2597a69fe5767b732d244fa511540fb6e6ce79864e85ebcad4fa7d7ee4f9d753e6ea065491aec6493a18e4c2ee5d5a472f53fb279b10 SHA512 180c389b7ad4678c25acab5dd6ef5fc36f3ab7e0ed7f19ed0ee945a696f3b2a5f69d494bf2e54783faa14a601270d357169eab157dc6c5fadebeccf91d99b683 DIST vivaldi-snapshot_5.6.2817.3-1_armhf.deb 90288976 BLAKE2B a71c0d5aeb4a01b9f4a763bc126293177f1137ec3431fb503be4640c8fc7a83b831cffdd77932026a0c0eb30b136204a6773114a5b8d8157a3dd5ed6dc6dc5dc SHA512 c9516e1dba9ce9a486f83996cf4b0559118b84bb6495e7d07374d64918ee91141d8a3f36191714e26c2f19c69916906ff14b27d32c3e210d19e3fb71a656dc4d +DIST vivaldi-snapshot_5.6.2824.8-1_amd64.deb 101016412 BLAKE2B bd5443c9dbad7c3cd1af7f6d6e7f7ac4d58b515e48f18b5ff4114d73a397af9f2bbcfabdde91fc8463b329f6c35bf96c3562a9a56e4e6ffdbd5789a335a8c141 SHA512 b81e2cae4c6a262d0955660e019032b2fdf41cddb9d01fb389e327f57281611bb4c0f2c49e1317bc3fe72a8f34df14aedf95485ac506f7d87c327d485e1e3def +DIST vivaldi-snapshot_5.6.2824.8-1_arm64.deb 90856752 BLAKE2B 64ad412e0ed662d1c20597a789c24d8d1cc93236758fe4eca2ef6312ce24ab650216bb31511fe1869479682f0b220f4567813c459d1d84734d7bdbfebedea1f2 SHA512 c4348ac73bbcc1f2c27b51e40e507e1a1009583cd8d783c43b6622ecff4370167d5e145fb1e8ea3a269ccaeb3a933c806725dd90c7344339cd0b4ad75b5f012f +DIST vivaldi-snapshot_5.6.2824.8-1_armhf.deb 90219588 BLAKE2B 8e1e5cb85af3fabc0085fbc03e9454613712d3a9f3ac0f1e2842d839915f6d6727e889ae6242fd3edfd98179db667bd1e190fda0ce5605a7f05ddfc0ec4a169e SHA512 75b92dfa1217847e68a681bb54d93ec8f4c9a52f3cacf30f8bac61f31d25584e5638b774561196577b24f3173eadb44168f731be23e252c4082916d47d5adf5a diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-5.6.2824.8.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.6.2824.8.ebuild new file mode 100644 index 000000000000..82e87d9746ea --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.6.2824.8.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 +}