From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1437190-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)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 37213158094 for <garchives@archives.gentoo.org>; Sun, 18 Sep 2022 14:08:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 210C2E084A; Sun, 18 Sep 2022 14:08:05 +0000 (UTC) Received: from smtp.gentoo.org (mail.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 0772FE084A for <gentoo-commits@lists.gentoo.org>; Sun, 18 Sep 2022 14:08:05 +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 0838F340D9B for <gentoo-commits@lists.gentoo.org>; Sun, 18 Sep 2022 14:08:04 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 655EA5D9 for <gentoo-commits@lists.gentoo.org>; Sun, 18 Sep 2022 14:08:02 +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: <1663509761.6ee786f9eb77e2bf9d42bcec95eae7852fd978ae.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-5.4.2753.51.ebuild X-VCS-Directories: www-client/vivaldi/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: 6ee786f9eb77e2bf9d42bcec95eae7852fd978ae X-VCS-Branch: master Date: Sun, 18 Sep 2022 14:08:02 +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: decfbbbd-ad9a-445f-b55a-820cdb59b323 X-Archives-Hash: 42922e93513b24c53ebb69391f5ae331 commit: 6ee786f9eb77e2bf9d42bcec95eae7852fd978ae Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> AuthorDate: Sun Sep 18 14:02:41 2022 +0000 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> CommitDate: Sun Sep 18 14:02:41 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ee786f9 www-client/vivaldi: Add version 5.4.2753.51 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org> www-client/vivaldi/Manifest | 3 + www-client/vivaldi/vivaldi-5.4.2753.51.ebuild | 206 ++++++++++++++++++++++++++ 2 files changed, 209 insertions(+) diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest index e512912f51e7..14934bb1a808 100644 --- a/www-client/vivaldi/Manifest +++ b/www-client/vivaldi/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-stable_5.4.2753.40-1_armhf.deb 88402880 BLAKE2B 2ab20a288f7d91cdc84 DIST vivaldi-stable_5.4.2753.47-1_amd64.deb 97621584 BLAKE2B 94b7f93a07a90485f5b385275fd41ecd5793ee43c54a35b3e058b540585b4f80c7561cf4264549b1a30aff0a750706c2a29af70459ae454220bcf315232a9c55 SHA512 e8a865eb669ad417c70843e39679294a8a0d65e1e3c0fb09df347f6341b4d8af872e233b71ed4ff66bd6195c44b93b34f5633a466e8bee4d4584ac4006cb330e DIST vivaldi-stable_5.4.2753.47-1_arm64.deb 87872068 BLAKE2B ad0b5e2f92a05bd315176e5cd4bec79cb86d3ffdce3f459853292d7e33acc853bd161ac7d15aef4e602fc4ff5a4c1cc7706a0fce859d599acf484a3b667bccaa SHA512 c1cc38829dbeab3180e9ebf2e99d89cd7f247fde8e8323d75a40b7ccf18423536c54552f2e0e9d4039a92c6e334b67989ef7ab7ac12516f16765dc4ad319013b DIST vivaldi-stable_5.4.2753.47-1_armhf.deb 88396408 BLAKE2B 8e0c660886b63dd13c7f5c9ee3488db2520cf75342c7d715a724d8431fc5568cf9f0ae7946d1620364502998f2f9313f548a222599d1c8608ea60bf957d3105f SHA512 f3531b2a54b64890d4f5d9df57f89a785b699c98a92a29bf5ce17b3047bae735d6fa0db0860966cf591a8368abbafe95e7b7ceca0aa947533f36ae59395c3009 +DIST vivaldi-stable_5.4.2753.51-1_amd64.deb 97623688 BLAKE2B b0c90228893a39280db7aa51365eab2eae4b1558bfeca98aa28b168c19cb8323e6de5b4c6f7c0a275a635cc8063243733a7dd661498e09998476a14cd46fc924 SHA512 705f1239c4048629c525cf8e05434e51f911a51fb59c8200335029586c98d6ca6941e2e23a129eb7e3df3da2eb7dc3e12d96c5efc6640016924aec348c08562a +DIST vivaldi-stable_5.4.2753.51-1_arm64.deb 87869712 BLAKE2B 2adc9f8e8873fc579bc731a183394fb3673327a2c42f06572995b75b11fe0f8eea5b1222f6fc14f933be31aeb13a8c06022f0d996a1aead8a35e30e6becb049f SHA512 352a4375e7c49f5aa5fe81c4f28e7ddfd16433d5c6d61ad61e1e200efd0a47b73cbcc045f40391a08cc83b67af4b63be091b5b5cc54492cc70338ddc075f32f3 +DIST vivaldi-stable_5.4.2753.51-1_armhf.deb 88402652 BLAKE2B b87909d28ad454e700bc9f3cd2f7e403ba9f69d8110ef243e7ad711a7707e98f4ce89e947b089472b471a2e1f01f7dd46f84984a41b20030f43c682000e0c585 SHA512 2584e22d0b376c29c7ffc3b7449a6a4e2044a23c79aac3ccc59972928ccd496f18d721591a4bf10b4cb61699ef12986c567591d438ed1ec439c8a5a7db33e008 diff --git a/www-client/vivaldi/vivaldi-5.4.2753.51.ebuild b/www-client/vivaldi/vivaldi-5.4.2753.51.ebuild new file mode 100644 index 000000000000..cc815568ad94 --- /dev/null +++ b/www-client/vivaldi/vivaldi-5.4.2753.51.ebuild @@ -0,0 +1,206 @@ +# 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-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 +}