diff options
author | James Le Cuirot <chewi@gentoo.org> | 2021-09-11 09:43:57 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2021-09-11 10:10:39 +0100 |
commit | ff483dd7e7806b219edf56917bb812a8313f522a (patch) | |
tree | f9a957c25b2f7c4cd77585ee41f9709c26e458b9 /www-client/vivaldi-snapshot | |
parent | profiles/arch/riscv: More package.use.mask clean-up (diff) | |
download | gentoo-ff483dd7e7806b219edf56917bb812a8313f522a.tar.gz gentoo-ff483dd7e7806b219edf56917bb812a8313f522a.tar.bz2 gentoo-ff483dd7e7806b219edf56917bb812a8313f522a.zip |
www-client/vivaldi-snapshot: Add version 4.2.2406.25
Package-Manager: Portage-3.0.23, 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-4.2.2406.25.ebuild | 205 |
2 files changed, 208 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index c03945cc446f..5fb31ac49bc6 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -1,6 +1,9 @@ DIST vivaldi-snapshot_4.2.2392.3-1_amd64.deb 85156812 BLAKE2B e4a6959a6285a8d3e062e7c3c6239029523fdcf6100f0d204ef6758d1cbdc3d9941d28d26d8b0d85241f8a7c058f4f7d9b92f8df5cd093a27c33522f6b0ef344 SHA512 577a7812f478ffbaefcd1c6acdda7ed0c37278c0862a0b027417ebcb7327c59ae5506085d5ca2e15604bbcc8ddd0007707b7ad4ee05dad4e7be23906a8fb593e DIST vivaldi-snapshot_4.2.2392.3-1_arm64.deb 80715664 BLAKE2B 46765b85166d5ff214c4f548ceb840d02cc1cff027819f64dc75c5b10206d5cd775f79bfaae6eb550d3f4cec67522a261a99bb27be8d976a4656f0b76ddcc590 SHA512 92e21498c94bf56e3df69c9f9c3d49513682edc796b5c3d887af3885251dc8c610c14157d26a8715952e9cec9a8b5ad301ae6e6b0a74586e793e70bbd969e9c0 DIST vivaldi-snapshot_4.2.2392.3-1_armhf.deb 76571240 BLAKE2B 8bf8487a2dd51944d6fe4ce894c12f8957a197ca59f697770fa38506fb387bbdfeaba4a40603144b8dc5776f91b205b8af6552ac0b3532dabf41c5a5d8ebfada SHA512 cc9ccd3bb705de8ae7e29f6c9bbce4d6e5da7926a34d6143c21f8d265cc6174548cf0b20e76ddff6799eb29ad4c83f5f4b28f81a8a5ae877e04391ac1423ee42 +DIST vivaldi-snapshot_4.2.2406.25-1_amd64.deb 85953972 BLAKE2B 04372c526bd698a587b53b10f1c6b743bfa753d37c81fef7f8740f887d70d20e0d0c9a7779818c078784708a08ae8ac83dac8e6457061952ad279850125d328a SHA512 2752aa871a22e8a0fd800661fff3345646df82eff93fbc969dd143942f007e00ad74bda284b08a3407daef9f81db534bb0ea861de60beb8f699e86efeae49c48 +DIST vivaldi-snapshot_4.2.2406.25-1_arm64.deb 81324916 BLAKE2B 968f6ea75159baafa92cfdfa7a0d4f01abe4dce5ebf65f017d897983f4192474840875bd77ce052852fea578e11321a1ce8f068d4d64201181147bcd07b8e78f SHA512 fb689f1e265eb3fd6d9c18132cb1c057b6ea09f68a245f631ab3dafd1fc56120f1902178aaf0baab57ceee68afbbcf7f433935492fe7c02bb685925e98c02dd9 +DIST vivaldi-snapshot_4.2.2406.25-1_armhf.deb 77330136 BLAKE2B f9ca49a22d8ec7e82e608fc26d50c4eeeca55348c0e16780b608024b814229e374ef0fade34b77678878a888a1ceafde50807a07a9b51cedea6146e20fae81b8 SHA512 5360ca1ba72c0e8db4917416adad65d500ef7c28935b0f9b62371cb4997a22fc3a4264ba8d27d7d7ff8a1d6d0d7ac9f8aa2b7c233eb1677648d90dac1ec01d51 DIST vivaldi-snapshot_4.2.2406.4-1_amd64.deb 85992908 BLAKE2B dd01df5721e0d4cf6063f344fabce785b5fce7444f3a9c4e0366048f3cf3a015f169d6717151bd88c92d3831443e05a9bc9f7a6e2ab95799085e27f64531e9ae SHA512 e38469a24cdf8db2e9ac3d05f9283bee6a4191795759c034139105ee7c962942346adde06dd827838e650cbf44fb04223091e10c7d4aa5cb5b7f5e622be8d041 DIST vivaldi-snapshot_4.2.2406.4-1_arm64.deb 81337660 BLAKE2B 2deed06e3244bd235a7833330b6338ac24637fd723b9e74974f8dc02cf64e39483fcf50f0d8b2e15a67e097fe63603a025ed6bc863b2a815f4cf39620d4d26f0 SHA512 72dab6a77b149f9331dbcffc679e4870775de76d821b762a34abf7c388307cecf47d997d4d04e5f1eafd119c6da4ad7ba2c7a1fcc306986063149ff43fad0a4d DIST vivaldi-snapshot_4.2.2406.4-1_armhf.deb 77324472 BLAKE2B 297cad1af8a3e66209341fd3c6497f7de731db15433babee390005f95257cfa00d0d7466e5c5c6b7ff83dda9d67bcc4d12daaf8893c2945fd9c66aeef9ab7b0b SHA512 2575103ab4aa165749ce37bd524f40d47f19a4617932f92b95aa8220ac8d724b86361ea24327c5441980fafacbb64a25195be2afbb256b39c7adaf1ae5cb0539 diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-4.2.2406.25.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-4.2.2406.25.ebuild new file mode 100644 index 000000000000..0d8477eddd17 --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-4.2.2406.25.ebuild @@ -0,0 +1,205 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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=" + dev-libs/expat + dev-libs/glib:2 + dev-libs/nspr + dev-libs/nss + media-libs/alsa-lib + media-libs/fontconfig + media-libs/freetype + media-libs/speex + net-print/cups + sys-apps/dbus + sys-libs/libcap + x11-libs/cairo + x11-libs/gdk-pixbuf + x11-libs/gtk+:3 + x11-libs/libX11 + x11-libs/libXScrnSaver + x11-libs/libXcomposite + x11-libs/libXcursor + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXi + x11-libs/libXrandr + x11-libs/libXrender + x11-libs/libXtst + x11-libs/pango[X] + proprietary-codecs? ( >=media-video/ffmpeg-9999[chromium(-)] ) + 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 ${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/${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 \ + /${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 + + [[ ${PN} = vivaldi-snapshot ]] && + dosym ${PN} /${VIVALDI_HOME}/vivaldi +} |