diff options
author | James Le Cuirot <chewi@gentoo.org> | 2022-02-10 23:05:07 +0000 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2022-02-10 23:05:07 +0000 |
commit | 315daa180f5c32e6b43f93a1b604b3b89cef3933 (patch) | |
tree | 67af3ef1e345dcde508ae011ad353c5f71079cf0 /www-client | |
parent | app-emulation/diskimage-builder: 3.18.0 bump (diff) | |
download | gentoo-315daa180f5c32e6b43f93a1b604b3b89cef3933.tar.gz gentoo-315daa180f5c32e6b43f93a1b604b3b89cef3933.tar.bz2 gentoo-315daa180f5c32e6b43f93a1b604b3b89cef3933.zip |
www-client/vivaldi-snapshot: Add version 5.1.2567.38
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.38.ebuild | 204 |
2 files changed, 207 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index 829e559e38e6..e4076cf882ed 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_5.1.2567.24-1_armhf.deb 78091572 BLAKE2B 68de80e499eaf2761 DIST vivaldi-snapshot_5.1.2567.31-1_amd64.deb 87319908 BLAKE2B 102156e4fa8b9189b1676bca30d0372732aef0cd34684a4629286fec4adbcf32fef5b94cf9879a00aab04986e1542d69d38a664de9587b76547d58e1b15de88e SHA512 439fe5c78bbcb76958cb9bd816a28ddb5732f81af56fc41d041dbaa5a4eb5e9e6709cd3ac4f1bc3774baad4b45f94d137e04a8d6d13fc98ac07e416acead2b76 DIST vivaldi-snapshot_5.1.2567.31-1_arm64.deb 82248600 BLAKE2B 970b496ae3104abb37c744d17e285c158303b1f7536a2b2d3d01ee9414486144e94f56352f65ac8cb9ae1d5a4c0a2fc2d8e9d4b1e017d33ce5b28470b9889b7f SHA512 0219bea7fdea76af759deba61cd93cad8105b94607095b7393ac0dcd94c0ceee87c6469437cd9762ee8bfb302a2dde07eb201e48851f15a963788e31043ef5ce DIST vivaldi-snapshot_5.1.2567.31-1_armhf.deb 78109368 BLAKE2B f7fb36fe555acce04dcbc1070659baf20ee2d2ee83db983ff3f516cafed4112166f597f62ada4183b9b570b7972cbce0aca907bb140cf2b74b25b4ed8bc4467a SHA512 f2693f7876125166fd53855b14676573bcb400810ad79c1a3601db3a2d1aaeeba639065e5df76ef7fbde683ab426b4c954d891f81d5e92454be7b394cd616ba3 +DIST vivaldi-snapshot_5.1.2567.38-1_amd64.deb 87339208 BLAKE2B 1b0621fedbc9463891d4a91b5ade9067cae114b372e674e128d7e855ecc22c9cd8b65b8e6fe1f68b8e3575f923574f223e992e93a234ca38b08ddd975ddcbf5b SHA512 069c746fdab910ec86fcc056f51aa6fe88505217bb219815c8c229c6cd739875d965f9a91f2fc4b93dc7c167111561011aa668b8826b36e728a92eb0e80782c4 +DIST vivaldi-snapshot_5.1.2567.38-1_arm64.deb 82241668 BLAKE2B b66e562a3db72ea2e03238f1353b5ab19566af496dac89a625c60e7325aff33693a715d4cf1ea83d86ad460425f3d967a4b849abd5cc2f05de0b209776513137 SHA512 d27bf50fd7ca682b728928666dd9d8cbc7ba7e328efa1fddf3ed0cd0c9895b0642bffb8a212c3a3766f2cadb37c944c541e35c8eb95cab6c9c6e376be3423ef5 +DIST vivaldi-snapshot_5.1.2567.38-1_armhf.deb 78097860 BLAKE2B 108c462ade0ccce1bec84252c50bb972383e20818240ec4b5059766425536df6aab621ad8f30d591791e47f3a4e764cc03b7b826d643df42bb182e8d3f34f572 SHA512 92bddcb70ddb1831301c4765baa257869d2ba594d096c6470fda5d891102a2113fc470e1eeb3d8189a97aee566ca832d4ea7e47514b45ee8f2e3eb9a9caf7105 diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-5.1.2567.38.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.1.2567.38.ebuild new file mode 100644 index 000000000000..a0fb3fa96f92 --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.1.2567.38.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 +} |