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 2851B15808B for ; Sat, 2 Apr 2022 08:53:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1AF5EE0870; Sat, 2 Apr 2022 08:53:45 +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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 96F43E086A for ; Sat, 2 Apr 2022 08:53:44 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 A85E6341769 for ; Sat, 2 Apr 2022 08:53:43 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EA7B51BD for ; Sat, 2 Apr 2022 08:53:41 +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: <1648889505.3e42d6c7d340827df802a824280cd868669a0883.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.2.2623.12.ebuild X-VCS-Directories: www-client/vivaldi-snapshot/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: 3e42d6c7d340827df802a824280cd868669a0883 X-VCS-Branch: master Date: Sat, 2 Apr 2022 08:53:41 +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: cc40be0c-27e6-4a80-be6e-aef06ea7c9c0 X-Archives-Hash: aef633ccec8a5a74e8db95614cfc6d87 commit: 3e42d6c7d340827df802a824280cd868669a0883 Author: James Le Cuirot gentoo org> AuthorDate: Sat Apr 2 08:51:45 2022 +0000 Commit: James Le Cuirot gentoo org> CommitDate: Sat Apr 2 08:51:45 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e42d6c7 www-client/vivaldi-snapshot: Add version 5.2.2623.12 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: James Le Cuirot gentoo.org> www-client/vivaldi-snapshot/Manifest | 3 + .../vivaldi-snapshot-5.2.2623.12.ebuild | 204 +++++++++++++++++++++ 2 files changed, 207 insertions(+) diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index 93230eea1f6a..5d63c4f9f869 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_5.2.2621.3-1_armhf.deb 78893836 BLAKE2B 14782d76e3fcc13704 DIST vivaldi-snapshot_5.2.2623.10-1_amd64.deb 87804176 BLAKE2B b35073433a8cd4ee0a8e7c5d6eebf2541bc499f70be653fb92cc0bc61d36cae9108927511d8a893ba0362670b5b6a52e865f68715b0cf6f6f5daea2bfe76044e SHA512 9a1e466a31b2af9b31ece27e221a1b175d51a6cb3ba3788d66b7b1f4ab1aefb421084a0f17e13cff694ba4975950e5e10a9c26347db211bd8e60d65ff9354531 DIST vivaldi-snapshot_5.2.2623.10-1_arm64.deb 83010508 BLAKE2B 5efbe54d43fff49442985e84c1a8e2db25f3ee3cd493cab7b1815c5a07370737f94c19c7172a4c86c53748dd9a20567108eb636ae532c9708cb5c2a0da8b030b SHA512 562254434f4d6bd2b1b8abc7f3ccc23c601cd2eb3eca20055c3f262814188f7c4734c9ddc4c90f8a9ecbb94a2833abd40ab3480e52716937a572489398d7a90d DIST vivaldi-snapshot_5.2.2623.10-1_armhf.deb 78897080 BLAKE2B eff2cf8a1aeab3a088b8f1488874369e77bc29bd3dc4b2617e124f260a4528f9bc4e5250654ac176b9909990da2e5cf299348830988879cdf0282c60131c1cbb SHA512 703468ca2f6477ed59d6e3b5195bd27818eaba1ef3ba11c3f227a027ed478f63d24652f22d7cdea60c25a5f4e72bf622cc2a3650059d73feca4949dfc6000ebd +DIST vivaldi-snapshot_5.2.2623.12-1_amd64.deb 87801824 BLAKE2B f477942ccf347fb1101365a4393622ad95f50aa1838b2adb35665c43028ab9890abaaeace3763e4dd1e03172b214d6eb808a555c9ad8261cbcde723cea8cd6b1 SHA512 06a39fe6c5a5b7f2d8d2e696302edc0edff4744cd2d2cb89ceeb9d9b61a052eba8b9494afbfc1640e0071618930a32a9e7420ed34e37285b8a800df873103c07 +DIST vivaldi-snapshot_5.2.2623.12-1_arm64.deb 83018368 BLAKE2B b04ba3d53729501850895464e102d5d1226c225302ca35e4088100dba34ef6bc643566688f9d1bd2436e883b9238e566a3bad74e2f24e75e6065495740f8fbb8 SHA512 618e62f1bae236f851928e7bd2191fc1039b903ce923e17478cec7b58c727adf894b66d952931fdd4aeb44c2bc185d053faee3532d3a315d096d225cc057e475 +DIST vivaldi-snapshot_5.2.2623.12-1_armhf.deb 78912876 BLAKE2B a598aa40aa8c0ba0283ef93e9b658b3ad3c57e11da8b5963a40592a74fb8981b69f73dc70dbcdf73c97dae1c4e2b3642a4ff8160a088fc2fe048f109f202da79 SHA512 6548e97f624804481cc173c2e6f4e624c0eb66dc8da782ff3f6f9738063d6e5520346d9b8e9916772cf2f789e310037d4a9c02f24f3eee84a75b8ecd409df6d2 diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-5.2.2623.12.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.2.2623.12.ebuild new file mode 100644 index 000000000000..d6cfbbe0cedf --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.2.2623.12.ebuild @@ -0,0 +1,204 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CHROMIUM_VERSION="100" +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=" + 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] + 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 +}