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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0AA7C1580B9 for ; Sun, 22 Aug 2021 09:55:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3AE0BE0875; Sun, 22 Aug 2021 09:55:20 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DD259E0875 for ; Sun, 22 Aug 2021 09:55:19 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5CD1A335DA5 for ; Sun, 22 Aug 2021 09:55:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D7DF07DC for ; Sun, 22 Aug 2021 09:55:16 +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: <1629625876.94603672be00eb86b7aaaec05c2eff5c49048071.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-4.2.2392.3.ebuild X-VCS-Directories: www-client/vivaldi-snapshot/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: 94603672be00eb86b7aaaec05c2eff5c49048071 X-VCS-Branch: master Date: Sun, 22 Aug 2021 09:55:16 +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: 01915b2f-41aa-4485-a44a-56e77c9b0468 X-Archives-Hash: ef1dd64c3ec02bb5331e27efe47c3444 commit: 94603672be00eb86b7aaaec05c2eff5c49048071 Author: James Le Cuirot gentoo org> AuthorDate: Sun Aug 22 09:51:16 2021 +0000 Commit: James Le Cuirot gentoo org> CommitDate: Sun Aug 22 09:51:16 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94603672 www-client/vivaldi-snapshot: Add version 4.2.2392.3 Package-Manager: Portage-3.0.22, Repoman-3.0.3 Signed-off-by: James Le Cuirot gentoo.org> www-client/vivaldi-snapshot/Manifest | 3 + .../vivaldi-snapshot-4.2.2392.3.ebuild | 205 +++++++++++++++++++++ 2 files changed, 208 insertions(+) diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index f93c168955c..5017aa8a89f 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_4.1.2367.3-1_armhf.deb 76537504 BLAKE2B 61e624822b2a0b5452 DIST vivaldi-snapshot_4.1.2369.10-1_amd64.deb 84518232 BLAKE2B fd9d08f4fcc4bcd41890c37cbd9873e0fe666633c12c5286331b406a74b55ba222ed0343700a21bedb7f25e4f9182bbebefbcc11c6b8285eebbac2c78e231f8c SHA512 2b946221863a7b2b7514e83be8e639482135ddb4a04c2cc3c8eda37fa196ccfc16007c12f1d43541d70fea0660cb10268c1d358db2e62575521cd39e525e7b79 DIST vivaldi-snapshot_4.1.2369.10-1_arm64.deb 80662848 BLAKE2B b3ad7300ba690b69ca5eae5e45599346b0197b694d93fa657754312c4e6a91089fe5b962dee7b1ec12d5fa953273333cc52827724f4fd6961d5f7de8d39230e3 SHA512 8774cca3850a7fd77da594d9015342cb3a86016a6674b630b2b397b6e4e472486e3d97acbc1932d4da815f6dc442a4cb3b11f2edf64377e715a9dbca9a1a68ab DIST vivaldi-snapshot_4.1.2369.10-1_armhf.deb 76550964 BLAKE2B 54501659c49199b928ad1e12f72fd1b7646be9766718cf35b6d4c36fbe3c68b692e707343e34f46004ca0b692c768248a2294602db67d7f2b2db6ee979311d3c SHA512 8bdc52e2edc084ae6c2316d9bc3727f47f46ef509c0176df439b7e9ef9ef8a93b1c22b0a7aa2f956feedc5399636638b528d9a369984717ab1dffce9f7d455b4 +DIST vivaldi-snapshot_4.2.2392.3-1_amd64.deb 85156812 BLAKE2B e4a6959a6285a8d3e062e7c3c6239029523fdcf6100f0d204ef6758d1cbdc3d9941d28d26d8b0d85241f8a7c058f4f7d9b92f8df5cd093a27c33522f6b0ef344 SHA512 577a7812f478ffbaefcd1c6acdda7ed0c37278c0862a0b027417ebcb7327c59ae5506085d5ca2e15604bbcc8ddd0007707b7ad4ee05dad4e7be23906a8fb593e +DIST vivaldi-snapshot_4.2.2392.3-1_arm64.deb 80715664 BLAKE2B 46765b85166d5ff214c4f548ceb840d02cc1cff027819f64dc75c5b10206d5cd775f79bfaae6eb550d3f4cec67522a261a99bb27be8d976a4656f0b76ddcc590 SHA512 92e21498c94bf56e3df69c9f9c3d49513682edc796b5c3d887af3885251dc8c610c14157d26a8715952e9cec9a8b5ad301ae6e6b0a74586e793e70bbd969e9c0 +DIST vivaldi-snapshot_4.2.2392.3-1_armhf.deb 76571240 BLAKE2B 8bf8487a2dd51944d6fe4ce894c12f8957a197ca59f697770fa38506fb387bbdfeaba4a40603144b8dc5776f91b205b8af6552ac0b3532dabf41c5a5d8ebfada SHA512 cc9ccd3bb705de8ae7e29f6c9bbce4d6e5da7926a34d6143c21f8d265cc6174548cf0b20e76ddff6799eb29ad4c83f5f4b28f81a8a5ae877e04391ac1423ee42 diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-4.2.2392.3.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-4.2.2392.3.ebuild new file mode 100644 index 00000000000..c2409d01a97 --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-4.2.2392.3.ebuild @@ -0,0 +1,205 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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 + 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=" + dev-libs/expat + dev-libs/glib:2 + dev-libs/nspr + dev-libs/nss + media-libs/alsa-lib + media-libs/fontconfig + media-libs/freetype + media-libs/speex + net-print/cups + sys-apps/dbus + sys-libs/libcap + x11-libs/cairo + x11-libs/gdk-pixbuf + x11-libs/gtk+:3 + x11-libs/libX11 + x11-libs/libXScrnSaver + x11-libs/libXcomposite + x11-libs/libXcursor + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXi + x11-libs/libXrandr + x11-libs/libXrender + x11-libs/libXtst + x11-libs/pango[X] + proprietary-codecs? ( media-video/ffmpeg:0/56.58.58[chromium(-)] ) + 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 ${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/${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 \ + /${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 + + [[ ${PN} = vivaldi-snapshot ]] && + dosym ${PN} /${VIVALDI_HOME}/vivaldi +}