diff options
author | James Le Cuirot <chewi@gentoo.org> | 2022-07-05 23:07:18 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2022-07-05 23:07:18 +0100 |
commit | 42b18f1029f040ec3801f7fa5aad2507f56ee2c8 (patch) | |
tree | 75e8cdbedebb6350f496e8b26ba7064a25a0478e /www-client | |
parent | dev-util/uglifyjs: Version bump to 3.16.2 (diff) | |
download | gentoo-42b18f1029f040ec3801f7fa5aad2507f56ee2c8.tar.gz gentoo-42b18f1029f040ec3801f7fa5aad2507f56ee2c8.tar.bz2 gentoo-42b18f1029f040ec3801f7fa5aad2507f56ee2c8.zip |
www-client/vivaldi-snapshot: Add version 5.4.2722.3
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.4.2722.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 44cf3c7e266c..9455be95e3f1 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_5.4.2707.2-1_armhf.deb 81277108 BLAKE2B 214d75556c20ba73e6 DIST vivaldi-snapshot_5.4.2712.3-1_amd64.deb 89880164 BLAKE2B a0aad3c01c153e19b6686651a385311d07d11c172570ba7cf7b074b401156ac213602ec62ea54708253f7624341c343fd5be724db9c8a1a7482c5e2a3a4324c7 SHA512 edf85f69bda626be13f279b741fb95435d94712ddda31beea9a25e02ef588422c0f3578a3ab8224f4f2b3171fab0919805c50660c1cfa15154af41ef45217da8 DIST vivaldi-snapshot_5.4.2712.3-1_arm64.deb 81621264 BLAKE2B 46d127de5ad09cdaf1d10f6541a369131d47dfa8270d8ee0bf07474399462cc1a0c88613f3bc7e9821d87c009cfa5f96477d584fd0b75ce20744a26b6ca7e6e4 SHA512 4d73e277381e392bc455d4ab803f8a834c75408c77af98bb424926ca04f6287df437aec2e859462a93c4e12c0fd8bbdb25ae303c66502101f1c40c25ef633543 DIST vivaldi-snapshot_5.4.2712.3-1_armhf.deb 81284656 BLAKE2B 2903fe75668e5f7871abc5a82259aacc61d871439bba554d3b7296420959f932cabf5e9bc52cd14096dbe5c42899cf1ddf049269553ccaeac9ccdec51f5e6657 SHA512 a6d0875d1d6ede0feb04072aa7c2ed0f181cc05aee8439fe8a627a1668564897445bc1a0350eeae04f9bb63fffff7ad4e3d55713fd39e087e42b5d00c6f7c612 +DIST vivaldi-snapshot_5.4.2722.3-1_amd64.deb 97541856 BLAKE2B 5ae6b489ce03ac8097803e43a8aa5c8809edf6da406f6e2ae5b9babd1e6d35b37f73fa435b87705988e37e4a654d11f327c78e31d46cac7530f8ca5501415ce1 SHA512 0b7471c0422d577c1a803f040d86701cd1a6e0ef7de2ea8f6123094d9e2c891c8884ceae2f7380c84ead27846f3cfc4bbfc1fc01a2abfb33ff8080a12b5a3572 +DIST vivaldi-snapshot_5.4.2722.3-1_arm64.deb 87788696 BLAKE2B 577a619b5c73aa5b33f1a9a97ac9bbfdf7c49517bc2f310269d18c2dea66172e4dadec6282d57fd1e2d46d4547c8e6ed96de7fc709c4f3b13eea916f059acb78 SHA512 7fb9a45fec23827ed2aab87dc85fee0afb453c6ab8b9226d699c9ae2b266250778823f28390b72f5ece666895edbb705af41346a65e74adffcc1ba47b7e7e762 +DIST vivaldi-snapshot_5.4.2722.3-1_armhf.deb 88293552 BLAKE2B eafb651f183cb0bd497d7ff4b93bf622422715f5f87003daadd01a3f2b91eac86fcd547481e07b6f8f75acd1a0ff6bf63ea96af96adffe1d0e48c16eac74e185 SHA512 d28aee829475c537b3a572abd50841474becc6bde38d59f88c6a1b976eaf9aca2202e754f0299597790842afa88cf2914735c9e5c134ee20ba9c474b03d822df diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-5.4.2722.3.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.4.2722.3.ebuild new file mode 100644 index 000000000000..cc815568ad94 --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.4.2722.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 +} |