From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1544118-garchives=archives.gentoo.org@lists.gentoo.org> 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) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C648C15800A for <garchives@archives.gentoo.org>; Mon, 7 Aug 2023 14:43:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 19EDF2BC019; Mon, 7 Aug 2023 14:43:47 +0000 (UTC) Received: from smtp.gentoo.org (dev.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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 001752BC019 for <gentoo-commits@lists.gentoo.org>; Mon, 7 Aug 2023 14:43:46 +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 21FAA335D68 for <gentoo-commits@lists.gentoo.org>; Mon, 7 Aug 2023 14:43:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 74997F1D for <gentoo-commits@lists.gentoo.org>; Mon, 7 Aug 2023 14:43:44 +0000 (UTC) From: "James Le Cuirot" <chewi@gentoo.org> 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" <chewi@gentoo.org> Message-ID: <1691419218.77dee7d6ae66f9358bdd63d823991529658df236.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-6.2.3096.3.ebuild X-VCS-Directories: www-client/vivaldi-snapshot/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: 77dee7d6ae66f9358bdd63d823991529658df236 X-VCS-Branch: master Date: Mon, 7 Aug 2023 14:43:44 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c9df998c-16cd-46fe-84db-f815e74074bf X-Archives-Hash: 9ddc6d0ddac7caf9ed28d2d32f8f0192 commit: 77dee7d6ae66f9358bdd63d823991529658df236 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> AuthorDate: Mon Aug 7 14:40:18 2023 +0000 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> CommitDate: Mon Aug 7 14:40:18 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77dee7d6 www-client/vivaldi-snapshot: Add version 6.2.3096.3 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org> www-client/vivaldi-snapshot/Manifest | 3 + .../vivaldi-snapshot-6.2.3096.3.ebuild | 222 +++++++++++++++++++++ 2 files changed, 225 insertions(+) diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index 31fed5c9ca08..45c7d1702e9f 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -7,3 +7,6 @@ DIST vivaldi-snapshot_6.2.3070.3-1_armhf.deb 97512472 BLAKE2B 6cc0bf0e559f4751c6 DIST vivaldi-snapshot_6.2.3077.3-1_amd64.deb 102087520 BLAKE2B a7eb0384e502933a5e0bc402325599b2f035c5b05c0697394dd2f3b7fb96373af78847fb4ac68efcf282d9f0193e7564b3317bce9dae36a6c2bd806b07348bc7 SHA512 1f1f51ce0efc083999e47dca84ed836381ffafd10b648b36108356656d6b7ba368c614af0da3eeec633a18e3d5a350adf684a2611ed3fa1e6065b328237d1912 DIST vivaldi-snapshot_6.2.3077.3-1_arm64.deb 96982292 BLAKE2B 9e78a0326e7698bf1fd50e18691301e59102f148e06fa82e734e5e2436d69bc13cbf5839e0141fd7da7a8423df7a7150526507d4743faa1499ab1ba8af74d4ac SHA512 a83e341fe765cd1b0d6434f5abd7fc5ad2616e9785609fbd92835cd71cb5f959bfcf07d826e3c5935c8fa83cc36070579946cd7a3894bad8d2d755a4d1b40a70 DIST vivaldi-snapshot_6.2.3077.3-1_armhf.deb 97523048 BLAKE2B 4ecf48c5e49dfa5eac58ca25dfb9aa6507a05baa50b19d34f4bbe5090a09df3c2ecca89eeea2c333df02164f706a1882c45e4896720e412bc7b11ef3756c2a31 SHA512 d50f40e87984e9de57fdfb765a38e35aa2dca8e2ddeb2d5624497bd078e39e169550df0aaa66a9921d46497a27dcba5765305a0c88fb8beea1306aab4b44e7d7 +DIST vivaldi-snapshot_6.2.3096.3-1_amd64.deb 102038836 BLAKE2B 36e2e7e883f7a354dc2241f2f0121e04309b439c068886827b88f93edab70e77fb2ba59738dda59e90fb8c0379c6b60bace5e4ff2f4f8983e34de2362b6e5407 SHA512 aed351422094ab708bf1962ab4803671dd903b4eb094cfb2076df759a2e8f5359db11ddf939f02771edf99a3603a3c20f929cfc6a92aa7b927e97363a6e9f7e6 +DIST vivaldi-snapshot_6.2.3096.3-1_arm64.deb 97107556 BLAKE2B 98c4ccad073ff768bf3b163da430a517a55c2da8c893766b2fc95f2934f8297489012b4db42b5af0167f1fc54d3608133576e95e91a2528b2137372d9808eb74 SHA512 b05592823534269cd94a10c780e7315a80d303669f8d8143b0c71733eb54b603963e6b35ea2c9e8ec965075f224c0125c7f029b497381b8a941e2e5a67371101 +DIST vivaldi-snapshot_6.2.3096.3-1_armhf.deb 97675332 BLAKE2B 90070d43aa0b6cd2500a83f65af49e8dbd6a53f61f84aece3cc1e13decd2fd15b805ff79bc5eedda3db2ba23c3854ed01000dadf4a3e0fe6d03f035b80f4315a SHA512 1ef1e3af3d522f8792fa349492220dbed99a2a5aa6da51f90654dc6459540da30083e722b1a7b45c8add7ccd4ee7eef751e7665e07d9c6bd37b5114c4967e2e0 diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-6.2.3096.3.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.2.3096.3.ebuild new file mode 100644 index 000000000000..d63e17d4cb01 --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.2.3096.3.ebuild @@ -0,0 +1,222 @@ +# 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 + + if ! false; then # use qt6; then (TODO) + rm ${VIVALDI_HOME}/libqt6_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 +}