diff options
author | James Le Cuirot <chewi@gentoo.org> | 2022-08-03 23:21:29 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2022-08-03 23:28:12 +0100 |
commit | ac7501be2514e8754a1f3d06547bb2a4cac582dd (patch) | |
tree | b329e774d6a3a3ca7cfb37cabc001391d78f75cb /www-client/vivaldi-snapshot | |
parent | mail-filter/libmilter: change subslot to ${PV} instead given ABI instability (diff) | |
download | gentoo-ac7501be2514e8754a1f3d06547bb2a4cac582dd.tar.gz gentoo-ac7501be2514e8754a1f3d06547bb2a4cac582dd.tar.bz2 gentoo-ac7501be2514e8754a1f3d06547bb2a4cac582dd.zip |
www-client/vivaldi-snapshot: Add version 5.4.2753.3
Package-Manager: Portage-3.0.34, Repoman-3.0.3
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'www-client/vivaldi-snapshot')
-rw-r--r-- | www-client/vivaldi-snapshot/Manifest | 3 | ||||
-rw-r--r-- | www-client/vivaldi-snapshot/vivaldi-snapshot-5.4.2753.3.ebuild | 206 |
2 files changed, 209 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index 0270ee9761a2..631ba0f34101 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_5.4.2737.3-1_armhf.deb 88363248 BLAKE2B c0bed76cb719e47c9e DIST vivaldi-snapshot_5.4.2741.3-1_amd64.deb 97580736 BLAKE2B e76416c32aebdb7f7d165def46ae6e40dcd949a90e817603a31a4555ddde8b4f4828a24399c66d54dc073f3015ac076d6ad1f2e2b6c4fbb0aa55c057abd3e03b SHA512 f84748c0d2e7acd0635db6f68f4355b6c2081c84866a3e2b0ecf2140dfd53e53083757f7ada621c5dc36ce00c840746192e07331c7a497e6358352a6dcd87b6d DIST vivaldi-snapshot_5.4.2741.3-1_arm64.deb 87844892 BLAKE2B ea39c175f71fd5d9d5b5fbe0a563feed363eb61f0bfa4d20d81747849347fa1e61190c0221359862c47b2c8fab332dee4e54dcf5760430629b6c821892108870 SHA512 1597ddd0a8cbaada0f42972f59c76d1b64f4753a2e25fe93385075c9030859c014ecd0aa0de162e2650fb79037a70bb7dac40a40117fc9e283d88fec05060695 DIST vivaldi-snapshot_5.4.2741.3-1_armhf.deb 88390184 BLAKE2B 9de3bba71b70d80bc5477e8d272c216ed446c2df153c57e6230a50925dc151cbd33ed0048adf2a79e21c2e8ce402cb049fa72bcb41ade7835e41b058e7745a2c SHA512 e725caa515382bf94b289849e134fa39165b322628389b2531598c4755bc0573b7b61a72fa68aee11779791943e460d27b6b7afeb733755ecebaa21e408bba1e +DIST vivaldi-snapshot_5.4.2753.3-1_amd64.deb 97611760 BLAKE2B bed4d69b994bdd998adaea722da670382e2b7d41a2e7f8dea7cd05b985a67901f65ec2eff73f38b8f4743423b0374fd2f57eb1b797029b3668d2a2a21c008fb2 SHA512 e3485b3526e72f23012151f034e884124ef0c689dded99dd30ff4fc261af90a1d1ff487ae8c68c700972742dbb8e94bf51ec2a25604fb4cd79e8f4c1ccebdeb2 +DIST vivaldi-snapshot_5.4.2753.3-1_arm64.deb 87892432 BLAKE2B fe3cb84a19964981b9a1adc286b4167d7451c5d6288acd7a064ba95f036e674fc342fe31e74bfcf1af69370af99ca4965bf20442d996a01b5c91e17455f88db0 SHA512 1141a10a34bf45e48d9d20eda56fb83bc43aa13f8eeb2bba0fe91483d599f18bf9b5335ab6c154852994ae32f65bb19153ac2984622d2d5b5bc31860d75b7321 +DIST vivaldi-snapshot_5.4.2753.3-1_armhf.deb 88378860 BLAKE2B 2b74af443ad7147653a3128df1c30f543ed888b8c5725549d4d95c23dc7df4dc54021c7783b831722c64958a78386528c860696a8c954cf0a34e97513b16daa3 SHA512 35a03c808fa6b90acde4a3702e5fc425cca97ea38f6289730e3edaa0295bc2318fe9858da9285c313ce878aa040dafa15d7f8f2707a2eb7eb082db6ccf5fab3f diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-5.4.2753.3.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.4.2753.3.ebuild new file mode 100644 index 000000000000..cc815568ad94 --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.4.2753.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 +} |