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 84D89158091 for ; Mon, 6 Jun 2022 20:45:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9A056E08FC; Mon, 6 Jun 2022 20:45:56 +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 78870E08FC for ; Mon, 6 Jun 2022 20:45:56 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5D0CD341836 for ; Mon, 6 Jun 2022 20:45:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D3325326 for ; Mon, 6 Jun 2022 20:45:23 +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: <1654548015.1143262d8927c4da14ba6771e794e5e8229cc54f.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.3.2679.30.ebuild X-VCS-Directories: www-client/vivaldi-snapshot/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: 1143262d8927c4da14ba6771e794e5e8229cc54f X-VCS-Branch: master Date: Mon, 6 Jun 2022 20:45:23 +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: eaed6231-e4b3-40bf-a620-9c97af8a52d8 X-Archives-Hash: 1e5f8af74e9ce715245f9c98184ddf8f commit: 1143262d8927c4da14ba6771e794e5e8229cc54f Author: James Le Cuirot gentoo org> AuthorDate: Mon Jun 6 20:40:15 2022 +0000 Commit: James Le Cuirot gentoo org> CommitDate: Mon Jun 6 20:40:15 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1143262d www-client/vivaldi-snapshot: Add version 5.3.2679.30 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: James Le Cuirot gentoo.org> www-client/vivaldi-snapshot/Manifest | 3 + .../vivaldi-snapshot-5.3.2679.30.ebuild | 195 +++++++++++++++++++++ 2 files changed, 198 insertions(+) diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index ec58df75e5cd..ac29624a7b35 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_5.3.2679.16-1_armhf.deb 80307212 BLAKE2B 8572a1c4bb3111cbf DIST vivaldi-snapshot_5.3.2679.25-1_amd64.deb 88892740 BLAKE2B c625d58a9d32be2e65d6e5c20bc42822b081222c0fee29302cd4d722064f5f57b0bb12b216fbaa7691c1f7bebcf81df20adb6dc98f0f85ad6f4248b6aa616cb8 SHA512 661950428ce8689b05533ae2514b9961ef3ad94adb1e6224d1fc59dafbc7440ce8339907cef5846c0aaca0aa37a6f4da6fa6c7f76695491218e05b9455c96419 DIST vivaldi-snapshot_5.3.2679.25-1_arm64.deb 80660840 BLAKE2B 304b11b3045724b017c44edec00f9aee57f3143c4f498aeb9d2c49ac9d52f32d117d064a235fcecb5f62c2cc4e121e6fa95a12a06f036659684515674c5761ad SHA512 32f3d69840e295ae99165701d71905e40f4c8b8adb25dc493f26cd4202207c4d9447b1e542f799709c9efe222a81c3e20c8f565e2e2f0be21aac3ef10bfc2779 DIST vivaldi-snapshot_5.3.2679.25-1_armhf.deb 80313340 BLAKE2B 9fae97f5cff64b23c6e31f7442362005aea36825da9a7f80888adacc9d79375158e02249b93535b4519cd5fcc790d442920a9dda6a0130f700b4850d1f21c22d SHA512 e61dd1cd5759bd0196d012a714307253a6b0c16c7dfdd7e5d8824591d4f4372530d732853f64efa88b85c8d536cb682e25a1857c6bb3d32ad6abd2ad20696d9c +DIST vivaldi-snapshot_5.3.2679.30-1_amd64.deb 88880648 BLAKE2B 2a41919ef97ff2ce5939b750aa4098a13f8d3aa437f67117ece3b625931c08614c74e781839f467c228d0fa3c3feda4235a76f6edf506b590eb3aa3c89988cf3 SHA512 145871bea5ed29b93930951c911dcec0033656f96af30b5273ae2b50aecdf693edf85284bfc97618acfa00a8cf1722c65ba0df2bdd7da744ecc20c5f463b2d37 +DIST vivaldi-snapshot_5.3.2679.30-1_arm64.deb 80724604 BLAKE2B 832e7d6b6c646f389e73ad7fd69d98751fe761925d303717ab6376232fde542144c840d9b15446f1dada8f80f5c0391ca6bf7628c6e0228fd25092df0b5e28cb SHA512 23a3bf09d4037918d7a8b5c8883dfbf1181b5c7c5020be07bf13fecc42bd01cec037c705d00495cca6b0765c144ebf5de6fa9989ce5bcbcffc7c0a8f33d13de2 +DIST vivaldi-snapshot_5.3.2679.30-1_armhf.deb 80320400 BLAKE2B a86615a56b645689bbd410d42e5415452c8ecf1827e59a3043bf353be652a2bf927beb412fa5a46ed7182290f72ac4c0a422ed088502c108eaa2564aea5661fb SHA512 c5681ecb699b0a10f2bd56fd2c91c87410989102913719afd3525293a413e4a7546e8e507852851228be21c41e37872fcc36d26a3a1805d76c14f1cb59de02e8 diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-5.3.2679.30.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.3.2679.30.ebuild new file mode 100644 index 000000000000..63af99839e3a --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.3.2679.30.ebuild @@ -0,0 +1,195 @@ +# 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 + bg + bn + ca + cs + da + de + de-CH + el + en-GB + en-US + eo + es + es-419 + es-PE + et + fa + fi + fil + fr + fy + gd + gu + he + hi + hr + hu + id + io + it + ja + jbo + kab + kn + ko + ku + lt + lv + ml + mr + ms + nb + nl + nn + pl + pt-BR + pt-PT + ro + ru + sc + sk + sl + sr + 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-atk:2 + app-accessibility/at-spi2-core:2 + 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 +}