diff options
author | James Le Cuirot <chewi@gentoo.org> | 2022-02-03 09:20:16 +0000 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2022-02-03 09:23:12 +0000 |
commit | 0df20d0f465bd27189d49bd091502af4c0e7c9f0 (patch) | |
tree | 39dc3de7efe3bc220d024e32fd1837afb669b355 /www-client | |
parent | media-sound/amsynth: Stabilize 1.12.3 amd64, #832623 (diff) | |
download | gentoo-0df20d0f465bd27189d49bd091502af4c0e7c9f0.tar.gz gentoo-0df20d0f465bd27189d49bd091502af4c0e7c9f0.tar.bz2 gentoo-0df20d0f465bd27189d49bd091502af4c0e7c9f0.zip |
www-client/vivaldi-snapshot: Add version 5.1.2567.18
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.1.2567.18.ebuild | 204 |
2 files changed, 207 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index fed914301c1b..79a84ee6e9b8 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_5.1.2553.3-1_armhf.deb 78053564 BLAKE2B e07252d38bea954e6f DIST vivaldi-snapshot_5.1.2562.3-1_amd64.deb 87305856 BLAKE2B 94c0c45f5448f85a4047a81d05ac0cfe801dd2ca72727a49ba676149ae5d7f1b3aa19650629f757060719a5c97a249c3b2b593c1be35ea0436b7d1cb7dde8d12 SHA512 973cb15d42921eb9e0df0e8617c088a0c7624d27e36a50d21e88f8dce8182d5993e4278117880329d87dda42c059fc541899dae2c774fba428769fbc2cba05cf DIST vivaldi-snapshot_5.1.2562.3-1_arm64.deb 82222700 BLAKE2B 31dfe37e9c028a6fe0c896deef6282d1d47de5b65a0e9d89377b6f2ea3280fa8cb142af3fd5f78c535445883cda3d63a8cc9d93e339cc9021b3dfccd88f57745 SHA512 6d0f079230bfc4b345812bf1dc6f842fe2589f94ab2cd951919c75331d5b3b4473f20c7c8e85df772efbe4ca4ef7f7185c6b2d10f5cf7eb8cc173738bd09a40d DIST vivaldi-snapshot_5.1.2562.3-1_armhf.deb 78085032 BLAKE2B d3b15e179de0c37aaab3cdb38f2615f6f5d61e0e2593743fda168c48e77c753acef3d2e481b66602a66be54555a70d2867ebd6a6ca3999512c730447c36bf442 SHA512 add83e2db3a22dc66105fd0e019d991e9998dbc88c724f68eea71ce9d81a521733446cf89129152c1d62a6413717bf934a79dfe66d370429fa3d91e61f3fc78a +DIST vivaldi-snapshot_5.1.2567.18-1_amd64.deb 87370244 BLAKE2B 61e6fbe209f677de686d64d1c0321373b1a34427ac9f1c68f54c113c4041486b4248a30b3f768af1cbf08d3bec123d8ed3ec4711fc032d5d4c905ca67851e705 SHA512 da0d7cdc408398b5bfe1f82b7e170d2c26212298483836475a3533126e133c97e7ce571caa66ee0544b5acdbc4694a4e30a9e300f2be921f866af8df694c3041 +DIST vivaldi-snapshot_5.1.2567.18-1_arm64.deb 82263192 BLAKE2B 04cb97f90f7a7c4f30cd4c2c75e5a41ebdb71da22875b74a0325b594055b60ded627afa99d3274db9f03377fbb924ecb08dd11ac56e462d927997ef3a2e54618 SHA512 9b969ba97098c68e5e1288c30fa25b10e025834940bde34d0f3c038fb3d1384e3ef0a19afad3f2ef55c10157409ce96e23e68dcb2c32dab2326a8b28413b2695 +DIST vivaldi-snapshot_5.1.2567.18-1_armhf.deb 78123500 BLAKE2B 6c2bef964baf640719350f2a3c8637491dcf226c25abc47c7e4d2d05b3c26482b2bd3b0b3c6edf98cb6689d919e9ec3e13ba208f0c9a6eab733887fa62d0ce59 SHA512 6ddefc48c99d5e009df547075c279740c714078c90b954838785cfc35c2ab548e77cd171b9d83cb71ca6b796b8f4fb40c0db7cbffb3c9ca236aebbdda32a6d54 diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-5.1.2567.18.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.1.2567.18.ebuild new file mode 100644 index 000000000000..a0fb3fa96f92 --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.1.2567.18.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="96" +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 +} |