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 04934158020 for ; Tue, 6 Dec 2022 08:51:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3AD66E0798; Tue, 6 Dec 2022 08:51:34 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 1924DE0798 for ; Tue, 6 Dec 2022 08:51:34 +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 5047F340E07 for ; Tue, 6 Dec 2022 08:51:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CC080477 for ; Tue, 6 Dec 2022 08:51:31 +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: <1670316676.2b264f791b22e0ee716915b412e910e62bca1eaa.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.2867.29.ebuild X-VCS-Directories: www-client/vivaldi-snapshot/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: 2b264f791b22e0ee716915b412e910e62bca1eaa X-VCS-Branch: master Date: Tue, 6 Dec 2022 08:51:31 +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: 4b862159-124c-45c8-98ee-cbd43b726df8 X-Archives-Hash: 3bdce155598893b789f414a066228eef commit: 2b264f791b22e0ee716915b412e910e62bca1eaa Author: James Le Cuirot gentoo org> AuthorDate: Tue Dec 6 08:49:09 2022 +0000 Commit: James Le Cuirot gentoo org> CommitDate: Tue Dec 6 08:51:16 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b264f79 www-client/vivaldi-snapshot: Add version 5.6.2867.29 Signed-off-by: James Le Cuirot gentoo.org> www-client/vivaldi-snapshot/Manifest | 3 + .../vivaldi-snapshot-5.6.2867.29.ebuild | 207 +++++++++++++++++++++ 2 files changed, 210 insertions(+) diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index ed55e92f5f02..b6d3fc0373c2 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_5.6.2865.3-1_armhf.deb 90168840 BLAKE2B 0c18d86cd28b18bae9 DIST vivaldi-snapshot_5.6.2867.22-1_amd64.deb 101273840 BLAKE2B 9c23116d2fd76131718191e8e589ddf9593705bd2d18dab0e3d92e6058e2d38fbdd44fbbd5e76baf692adf9941cb30a08406c82e6e5eda8f265fa0c6872bd55c SHA512 1c4b689e33522ce7b1f7718b5ac4fba7c2dd4282cbb01d48c8efcfd40f400d85ff1f67f7609bec32be8780b5e7b0b16ea0b410ae03962d4323e2e7ae62467930 DIST vivaldi-snapshot_5.6.2867.22-1_arm64.deb 90938988 BLAKE2B 4b04f9e60f2e0ec74f1b800b05bef0d9291fa0a2d96a4e7f58e337c3be2e44d31d49ce866eeb8866e795ad2ed94ea75990d82ff3a10c136d627fd01327083295 SHA512 f1c3110f82f5a2967c14425bc95e292534f76eb5e0f454f43b6074873f7bb903db5644e6e5595d089ac836d11c5e22d1f93da2ebfa2cb6edc33a0fcb52c38f2e DIST vivaldi-snapshot_5.6.2867.22-1_armhf.deb 91068076 BLAKE2B a918c874860f433dc7ea35f62320463b0c43de4c19ff7e559abfa99bd8ff3930f7e825f43cf3b9448928cfe0f95579582035c8d4a58905b0b3458dfa862aea5c SHA512 c7595754e2d33024f0d03d03f48d7d2ba14014ea72446ae71f5670933b387a0dcda1aa6ead50fa686aeb6a9bb8c01f4e0bab12f50776718042db43371ad5e8ed +DIST vivaldi-snapshot_5.6.2867.29-1_amd64.deb 101318868 BLAKE2B 497f737007aa6f1eed519ddba6467da4987f28bfdec0319ca1c924c905269208353e9836b4ce0a6e3a0ca8776b28d367bb0e6df150230d53771d8eb5504710be SHA512 85fdeb29c5143e4d86c9a6d2725bb567647251550a89179ff3d911f6ba538ae0b3a81fa6198e30f19787b5fb52bed2e524e587ab32ca67223094e750c5a034e6 +DIST vivaldi-snapshot_5.6.2867.29-1_arm64.deb 90932908 BLAKE2B bd81ef65b633269fbb97fd740af4df90d7a356cb199c0d06b25e8aededc9b33791c2cb68cd356b76e40ad77cdcd62963c751a94307411fc804fac2e0fa22d6e4 SHA512 e39947441af79188b15e97353963b49cf1da7fc87afc24b0f183cc4f695be8a08bdbe576156eb474a912f6ae79558922385a0765e043e2a5c7ff1f6c931a1dfb +DIST vivaldi-snapshot_5.6.2867.29-1_armhf.deb 91071132 BLAKE2B daf29e86d578d63634c6e062fe39f39869a690d9a39400b52527ed70fb70ada083894a78a50eeae4d9f057ff1457a70dd2dbf856fb982bfefcfa86c92ba349f1 SHA512 79d833b9a85f4a7e748d80f28e99c3e342b29c5979aed55c2a5b851e9376908e3d0c2292b9949699a7a1fe2c8ac90086e1e6ba7da82140630ef63c188b12a444 diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-5.6.2867.29.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.6.2867.29.ebuild new file mode 100644 index 000000000000..82e87d9746ea --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.6.2867.29.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 +}