diff options
author | James Le Cuirot <chewi@gentoo.org> | 2022-04-01 16:13:48 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2022-04-01 16:13:48 +0100 |
commit | 781251817bd6d7bceec3f24819740fa7d002870c (patch) | |
tree | 63d3d51d9ade7b8da6c91f54ca8197ccb340127f /www-client | |
parent | www-apps/mediawiki: Stabilize 1.37.2 ALLARCHES, #836579 (diff) | |
download | gentoo-781251817bd6d7bceec3f24819740fa7d002870c.tar.gz gentoo-781251817bd6d7bceec3f24819740fa7d002870c.tar.bz2 gentoo-781251817bd6d7bceec3f24819740fa7d002870c.zip |
www-client/vivaldi-snapshot: Add version 5.2.2623.10
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'www-client')
-rw-r--r-- | www-client/vivaldi-snapshot/Manifest | 3 | ||||
-rw-r--r-- | www-client/vivaldi-snapshot/vivaldi-snapshot-5.2.2623.10.ebuild | 204 |
2 files changed, 207 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index 3b3c3840d9cb..1d8c8ac13d95 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_5.2.2617.2-1_armhf.deb 78875436 BLAKE2B eb6399eb5a36b2ed50 DIST vivaldi-snapshot_5.2.2621.3-1_amd64.deb 87795468 BLAKE2B 1744ac1ce81437b1a8fb3d0271baf14b55b231ddfc122d4e46da1f9784dbd4a5342da91d89bbaf54df8545313586679d9741f25ab476474645d4af0f1bc28442 SHA512 bedaf31b84770241e7d3606954d67354752968099e8d39e00a0e6b47bc8cdb5cc350784b1d803fa229ab3d68590a336716aeae42e7de2952ce9b70bf09f4d8f0 DIST vivaldi-snapshot_5.2.2621.3-1_arm64.deb 83000372 BLAKE2B 7177fb38ec03f6eeafad93c4cc31587d68df19a346f6de920c99e89ea687f0844c2a5b07ba0b7c262fa33de2c7af6c11008225abdaadd64c5d84dea7e182feac SHA512 67f3cade859e9158172df24172d9f1a81fbc72cc7a362b609a06b666772ff03862a63748b2c05dca27249a70d07ce9cd7b2eaf4e67512ce4247715662575211e DIST vivaldi-snapshot_5.2.2621.3-1_armhf.deb 78893836 BLAKE2B 14782d76e3fcc13704c09d713ae0e7b8489a5a79441cbec0cfffd20a022c61989017e9c76ec190a5693a3b5e566daac35056a091456aa2f9828aee707d8a3bbb SHA512 381708a2dc3ce8e01005536f65b73c6be74167b3737f03723af919a84f9a270f347f30fc922a97322d97f9d70e0daffd4c003e1619a62d04e82de7b243527d4a +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 diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-5.2.2623.10.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.2.2623.10.ebuild new file mode 100644 index 000000000000..d6cfbbe0cedf --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.2.2623.10.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 +} |