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 464F313933E for ; Sat, 17 Jul 2021 07:08:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 83C8DE0AB5; Sat, 17 Jul 2021 07:08:12 +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 48E98E0AB0 for ; Sat, 17 Jul 2021 07:08:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 167D034072E for ; Sat, 17 Jul 2021 07:08:11 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A6A62581 for ; Sat, 17 Jul 2021 07:08:09 +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: <1626505669.47fc0e99a162b6ed929c7b6db9c08abdef739649.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.1.2358.15.ebuild X-VCS-Directories: www-client/vivaldi-snapshot/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: 47fc0e99a162b6ed929c7b6db9c08abdef739649 X-VCS-Branch: master Date: Sat, 17 Jul 2021 07:08:09 +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: 40401e56-8d58-4d0c-8f33-4fd3e333dd0f X-Archives-Hash: 4d753d0e8889848f33e04e5640202c77 commit: 47fc0e99a162b6ed929c7b6db9c08abdef739649 Author: James Le Cuirot gentoo org> AuthorDate: Sat Jul 17 07:04:07 2021 +0000 Commit: James Le Cuirot gentoo org> CommitDate: Sat Jul 17 07:07:49 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47fc0e99 www-client/vivaldi-snapshot: Add version 4.1.2358.15 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: James Le Cuirot gentoo.org> www-client/vivaldi-snapshot/Manifest | 3 + .../vivaldi-snapshot-4.1.2358.15.ebuild | 205 +++++++++++++++++++++ 2 files changed, 208 insertions(+) diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index 7da463bce5c..9859f220285 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -11,3 +11,6 @@ DIST vivaldi-snapshot_4.1.2345.3-1_armhf.deb 76498924 BLAKE2B 5eb1a39b69adf07ec8 DIST vivaldi-snapshot_4.1.2352.3-1_amd64.deb 85091424 BLAKE2B c5d0211ae23e3d46281860ec1d896a7705300203b6ef0d7dfc95457376daf54dc027081ba8dd9e689a7781d4002c9932a8c1822bf7fe69ac878f4c80b22d5fd1 SHA512 c8f9d891d001bd5a0b05155b1f71cf8083c940936c2a42447aa3367a3e87ae35e787f5ea594bd26b7b34a7ec64a8d47d7a3427636c6d1f1f5259a08a7822fd20 DIST vivaldi-snapshot_4.1.2352.3-1_arm64.deb 80640544 BLAKE2B 4beffa4351157bed1e8b87af926876bae7b145d35062d8320cef059d9959789f6b11fb7a41ab3fba2adc5f5639a161d6d56675ebcfcf998ccaf9a532c111981d SHA512 75c3871455b06bb338ecd3b44995a445ddd8fb47277cefc5126e044859ea42f295cf793c9d1817e1917dc1172992ea009635859596a9bf850cfa5e9fb5c2f876 DIST vivaldi-snapshot_4.1.2352.3-1_armhf.deb 76513320 BLAKE2B 3916f00208317b05cc6bb48481ed625e9407721b6e2f35c8f384703308e9da0edd476529d8b3ff57d647b25d7b97116567b005e800fc875cbdf0a48880aa5edd SHA512 04c77b4e6142b516a19bc2fdddced5000f30673e3997cf4fd380cb020f6cad64e1bfaed60d18d366b27d3b1a9a963e1a0ef669c418828a70e0e01cace1588a5b +DIST vivaldi-snapshot_4.1.2358.15-1_amd64.deb 85118372 BLAKE2B ba0812c276d36c7fcdb1cce040ee0daa32afa9fc95695136cc202a86110132050ddffd80ec9d2f10293030f3af8e6c47382da7d8b59bca62e5a5636fc8980222 SHA512 ce7819f297cce1dde4746bfde503abb2133defc0ef80d89c371ed1d6bea76e5123c7f449c4edb0cc0212d2f7f1e651fe4d8960162320e04c48761666cd61f1ef +DIST vivaldi-snapshot_4.1.2358.15-1_arm64.deb 80658544 BLAKE2B bd42810379f787abe46f88ba2844c209f1c8d41089b3a7a9a487f2e8b6599f0577ea46df3dfd4c3ff35f3ecf9ba9b86920131e6b16313a5852efb00e683f6860 SHA512 60f75623b5891978bc35f032fc676671d1d1277989a7b42a2fcae318943eb60d8830f76738b08b11833d205b8d27ce00deed7969a2a80de1c421987526b642fd +DIST vivaldi-snapshot_4.1.2358.15-1_armhf.deb 76520492 BLAKE2B bc96e33a3b9395402df488f54819759eaa169665376b6f779917f1d1d284c0dc43cc276b5428746ab02157093ea8a6323dfc86db4265721fd83dea6715f9bfc3 SHA512 2db620443b842929bef57e1ab64a23540d02b03cfd08ef67d45fe73d6a7ac948e895ccddd571c9b1145bfa8a7255ab878ff2b65578b7be358da770f88653f407 diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-4.1.2358.15.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-4.1.2358.15.ebuild new file mode 100644 index 00000000000..c2409d01a97 --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-4.1.2358.15.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 +}