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 7628E158094 for ; Thu, 23 Jun 2022 21:32:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C963FE0871; Thu, 23 Jun 2022 21:32:44 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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 A55ADE0871 for ; Thu, 23 Jun 2022 21:32: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 D43F0341AE7 for ; Thu, 23 Jun 2022 21:32:43 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4B04F501 for ; Thu, 23 Jun 2022 21:32:42 +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: <1656019756.d01dc666c69841f313f6caf0789f54e8fe70efd8.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.4.2712.3.ebuild X-VCS-Directories: www-client/vivaldi-snapshot/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: d01dc666c69841f313f6caf0789f54e8fe70efd8 X-VCS-Branch: master Date: Thu, 23 Jun 2022 21:32:42 +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: cdf7a101-da98-46f7-9686-edb3138f1bc1 X-Archives-Hash: 5a376036e49b400d7d2a3d944956ed77 commit: d01dc666c69841f313f6caf0789f54e8fe70efd8 Author: James Le Cuirot gentoo org> AuthorDate: Thu Jun 23 21:29:16 2022 +0000 Commit: James Le Cuirot gentoo org> CommitDate: Thu Jun 23 21:29:16 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d01dc666 www-client/vivaldi-snapshot: Add version 5.4.2712.3 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.4.2712.3.ebuild | 206 +++++++++++++++++++++ 2 files changed, 209 insertions(+) diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index da54e0d17b6c..3de3408aac58 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_5.4.2704.3-1_armhf.deb 81291512 BLAKE2B 5a8546636b059db93f DIST vivaldi-snapshot_5.4.2707.2-1_amd64.deb 89882276 BLAKE2B c6570714d86f1042bafc51f148df3e9ee82a5027aca413d0fe17ca6edcec64151d987703d45456f858ea1484f5790e3134533a4bf89964bde294cd2dfa1b4303 SHA512 1a2817311751c1f655e59c9b3f28f9a70a7be5fd850ca13b0c25573388bbafe7f7d5dff519cae716b41f7e64cda66650ce48b23704f5038c48b4c804f0a3ea5b DIST vivaldi-snapshot_5.4.2707.2-1_arm64.deb 81633992 BLAKE2B 304bcf611f382d1edef1b06d62c861d104cb79acb59e3c5ad4f58a8a2f419cf6953633ba9aa9856c253394a3a9e0faf10a1512c14a707dd33a98e52432581027 SHA512 b4b6f54d11f8e3812d56290a522b02da6129d356adf4ddedc04d4ca84e6f58447fd096aae7e29eaeb4db2ccb5c03c8d9342a98493d5050520a39863eefda8fee DIST vivaldi-snapshot_5.4.2707.2-1_armhf.deb 81277108 BLAKE2B 214d75556c20ba73e6cab2a09fd7d40d7275d2dc135df775f039d2414da536e8db010b599a66a88266522300497352a0501619bed8307c54893d2ba7f74a49f7 SHA512 dc5ab115b9c0a61c61b127d135115b663a48d966c7d386b90e61edaae37b7d64f6770f5a877af00e4cbe8eea1a6c0a336ce31400897cfca0ae129916a32883ac +DIST vivaldi-snapshot_5.4.2712.3-1_amd64.deb 89880164 BLAKE2B a0aad3c01c153e19b6686651a385311d07d11c172570ba7cf7b074b401156ac213602ec62ea54708253f7624341c343fd5be724db9c8a1a7482c5e2a3a4324c7 SHA512 edf85f69bda626be13f279b741fb95435d94712ddda31beea9a25e02ef588422c0f3578a3ab8224f4f2b3171fab0919805c50660c1cfa15154af41ef45217da8 +DIST vivaldi-snapshot_5.4.2712.3-1_arm64.deb 81621264 BLAKE2B 46d127de5ad09cdaf1d10f6541a369131d47dfa8270d8ee0bf07474399462cc1a0c88613f3bc7e9821d87c009cfa5f96477d584fd0b75ce20744a26b6ca7e6e4 SHA512 4d73e277381e392bc455d4ab803f8a834c75408c77af98bb424926ca04f6287df437aec2e859462a93c4e12c0fd8bbdb25ae303c66502101f1c40c25ef633543 +DIST vivaldi-snapshot_5.4.2712.3-1_armhf.deb 81284656 BLAKE2B 2903fe75668e5f7871abc5a82259aacc61d871439bba554d3b7296420959f932cabf5e9bc52cd14096dbe5c42899cf1ddf049269553ccaeac9ccdec51f5e6657 SHA512 a6d0875d1d6ede0feb04072aa7c2ed0f181cc05aee8439fe8a627a1668564897445bc1a0350eeae04f9bb63fffff7ad4e3d55713fd39e087e42b5d00c6f7c612 diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-5.4.2712.3.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.4.2712.3.ebuild new file mode 100644 index 000000000000..cc815568ad94 --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.4.2712.3.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 +}