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 76BF615800A for ; Wed, 16 Aug 2023 09:05:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 912AB2BC024; Wed, 16 Aug 2023 09:05:41 +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 744D62BC024 for ; Wed, 16 Aug 2023 09:05:41 +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 595B3335C7B for ; Wed, 16 Aug 2023 09:05:40 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 95C86BE8 for ; Wed, 16 Aug 2023 09:05:38 +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: <1692176719.5cd6458a34654cf5791140cf05bf546da7684906.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.1.3035.302.ebuild X-VCS-Directories: www-client/vivaldi/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: 5cd6458a34654cf5791140cf05bf546da7684906 X-VCS-Branch: master Date: Wed, 16 Aug 2023 09:05:38 +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: 63a93f6c-29bd-46da-affb-391d9bb1030f X-Archives-Hash: 53a51781837ea86af2b0b01796f9f7ca commit: 5cd6458a34654cf5791140cf05bf546da7684906 Author: James Le Cuirot gentoo org> AuthorDate: Wed Aug 16 09:01:57 2023 +0000 Commit: James Le Cuirot gentoo org> CommitDate: Wed Aug 16 09:05:19 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5cd6458a www-client/vivaldi: Add version 6.1.3035.302 Signed-off-by: James Le Cuirot gentoo.org> www-client/vivaldi/Manifest | 3 + www-client/vivaldi/vivaldi-6.1.3035.302.ebuild | 218 +++++++++++++++++++++++++ 2 files changed, 221 insertions(+) diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest index 2f62aa6da7eb..b008bd5a3f29 100644 --- a/www-client/vivaldi/Manifest +++ b/www-client/vivaldi/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-stable_6.1.3035.204-1_armhf.deb 93654696 BLAKE2B 35021af8455f33e732 DIST vivaldi-stable_6.1.3035.257-1_amd64.deb 97902344 BLAKE2B 9968fd28633f8a0c9d31a48480a290be57413282c9d330535a436762bed4f76aeaf5a074cb60cf6eb8d9dc61c7cb317f01ec2bcacf8da17ae222ab7bc7e9de72 SHA512 a2e4b489cff9c9d5ffcd38b5c6d7a7795d4d9b41b22a6829b3f02c715d32313dbd82e86777421b49dbb0f292df2741df6f6ef41c8cd819bc25cfc5a8af542c74 DIST vivaldi-stable_6.1.3035.257-1_arm64.deb 93469632 BLAKE2B 03ef84bcad19afaf7a7a9f78ee2f603735f582359d86fa3ddd5ee194f0c3c23f2970abc8eff7e3b0e7094b4dcf91aec9ab0e53e388ffd3e5b189efa380d0e604 SHA512 1e01557baa8a6516106a0e895ffe644cbf8399efc323b19ce99fa6b3069abf716589f097f9af590e20d4c1a1a6fb5ac326808bf3003388cdb744a6fca057a48e DIST vivaldi-stable_6.1.3035.257-1_armhf.deb 93650248 BLAKE2B 33de3d74811c89041d64b451d8cc6402b063838af2fc462845bf50d69707cc81eaf0a391d9434c62194401575043c8dafa6e2ba85923fe9295305d0405ace2c1 SHA512 a7e987b5e8d20f57772bc138d676ec8120dff39ea47cf91804b88e2c481d0a48d06744c185012609beec9260b113f9374588dc125db41e49b27cae63eb02f52b +DIST vivaldi-stable_6.1.3035.302-1_amd64.deb 97919976 BLAKE2B bbf156706000de6c7826d03568fabe2b8c17bc43cf6d5552155f7d597758cf71c3c7113568e9f83426555c92186dd6dc6f920659e841782b247a347a0dc7fa8c SHA512 f2ac4429d4b0d7cd9b7d45607a0e337b9c05779bf61d8953bda7e08f827057a990e316695649dbbaf7f346500fb4691d9069e4577065b138cd5db849eb2216d7 +DIST vivaldi-stable_6.1.3035.302-1_arm64.deb 93485696 BLAKE2B a49bb241c60d3505adc4a7d4f227999d46a793ac3b91a2bb33549bd1675d6c4c511305759818267ba407f6b531fd8c3c0d809e949ea57aa184d38378d7c775db SHA512 03416efe33526ad739bc5d99402f584b147a9efc10ba5f9f3cabd430a71b930cf4e4b1983c3ca0e865cb156ca4a4f808e8e06b1276ce2fa402045a3bbf21bc00 +DIST vivaldi-stable_6.1.3035.302-1_armhf.deb 93654880 BLAKE2B c29c365e6600911827487e3c32daadc0f3efb8245763d454719a7f9a1e322cf61bac08489ffd106049114c046971f8684f4d5b34d42743d1b957e02681035a5d SHA512 291479644f742979ebe37f5971f5d3e617df220522716fd533f44d89a3cef5ff90ba26e45593b2cf4bdca4e4206bf0bc123765aab7319c6961b531254455bfaf diff --git a/www-client/vivaldi/vivaldi-6.1.3035.302.ebuild b/www-client/vivaldi/vivaldi-6.1.3035.302.ebuild new file mode 100644 index 000000000000..0411bd537ae5 --- /dev/null +++ b/www-client/vivaldi/vivaldi-6.1.3035.302.ebuild @@ -0,0 +1,218 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CHROMIUM_VERSION="114" +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}_" + +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="gtk proprietary-codecs qt5 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] + gtk? ( gui-libs/gtk:4 x11-libs/gtk+:3 ) + proprietary-codecs? ( 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 + + 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 +}