diff options
author | James Le Cuirot <chewi@gentoo.org> | 2022-09-03 13:26:58 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2022-09-03 13:26:58 +0100 |
commit | a9157de4bdbd0d439b2c6a0ae6d74df4ad4f5a4c (patch) | |
tree | 61a1ed3c5ccf62b8ce147e96e8eda770c4fe45a6 /www-client/vivaldi | |
parent | dev-lang/python: Stabilize 3.8.13_p7 ppc, #868246 (diff) | |
download | gentoo-a9157de4bdbd0d439b2c6a0ae6d74df4ad4f5a4c.tar.gz gentoo-a9157de4bdbd0d439b2c6a0ae6d74df4ad4f5a4c.tar.bz2 gentoo-a9157de4bdbd0d439b2c6a0ae6d74df4ad4f5a4c.zip |
www-client/vivaldi: Add version 5.4.2753.47
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'www-client/vivaldi')
-rw-r--r-- | www-client/vivaldi/Manifest | 3 | ||||
-rw-r--r-- | www-client/vivaldi/vivaldi-5.4.2753.47.ebuild | 206 |
2 files changed, 209 insertions, 0 deletions
diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest index 53412c99bb5a..bf2c995ca3a3 100644 --- a/www-client/vivaldi/Manifest +++ b/www-client/vivaldi/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-stable_5.4.2753.37-1_armhf.deb 88414104 BLAKE2B 566efb6c64b604140ec DIST vivaldi-stable_5.4.2753.40-1_amd64.deb 97585144 BLAKE2B e2ddfe3f1b8a75e7abf39fd2fef296f1d72233a4932e2c2833e464b985724a3c00b5b79190a84e4d51e6e25bfda21ba70e8441d0a9a4d2d37a20788698dad871 SHA512 2e0ce8da1be818e10271975baa6dde825d6edb9dcef07b2a54270eed6ef7d2393c6f1e8b41ad739df51482638596e3e603674dbc6a657f4f2208c9747b47428a DIST vivaldi-stable_5.4.2753.40-1_arm64.deb 87873620 BLAKE2B f88ee3481a3e3c91e94183323434fa3946927f345afa8fc67496ded5d9498ab8726397800f759aa9e38b37ccf77424f964a0a0d20bff8145407421163531884b SHA512 495c4e6804620b2a4c17aa8184a30ceed286de38ac59370908987893b59c897a4745a3443fd0df41a8d7573f6d4eac398192be470b5cb3279234c2cdbb02f991 DIST vivaldi-stable_5.4.2753.40-1_armhf.deb 88402880 BLAKE2B 2ab20a288f7d91cdc840578b02b3bad8341baaff4d291e3a6edec00f04b06e28546389f8f4f0e7324fdacb4e012eb572ed74d6be28cb85ee32290dfdaf910f71 SHA512 884a45ddadf74ef906715f11f214e3d8d98a8fe6d295beaf8518d444833f3bfd1aa838bee244fccfaba8638d10c636dec9c233425c5c8358eb300fa79cc5f18d +DIST vivaldi-stable_5.4.2753.47-1_amd64.deb 97621584 BLAKE2B 94b7f93a07a90485f5b385275fd41ecd5793ee43c54a35b3e058b540585b4f80c7561cf4264549b1a30aff0a750706c2a29af70459ae454220bcf315232a9c55 SHA512 e8a865eb669ad417c70843e39679294a8a0d65e1e3c0fb09df347f6341b4d8af872e233b71ed4ff66bd6195c44b93b34f5633a466e8bee4d4584ac4006cb330e +DIST vivaldi-stable_5.4.2753.47-1_arm64.deb 87872068 BLAKE2B ad0b5e2f92a05bd315176e5cd4bec79cb86d3ffdce3f459853292d7e33acc853bd161ac7d15aef4e602fc4ff5a4c1cc7706a0fce859d599acf484a3b667bccaa SHA512 c1cc38829dbeab3180e9ebf2e99d89cd7f247fde8e8323d75a40b7ccf18423536c54552f2e0e9d4039a92c6e334b67989ef7ab7ac12516f16765dc4ad319013b +DIST vivaldi-stable_5.4.2753.47-1_armhf.deb 88396408 BLAKE2B 8e0c660886b63dd13c7f5c9ee3488db2520cf75342c7d715a724d8431fc5568cf9f0ae7946d1620364502998f2f9313f548a222599d1c8608ea60bf957d3105f SHA512 f3531b2a54b64890d4f5d9df57f89a785b699c98a92a29bf5ce17b3047bae735d6fa0db0860966cf591a8368abbafe95e7b7ceca0aa947533f36ae59395c3009 diff --git a/www-client/vivaldi/vivaldi-5.4.2753.47.ebuild b/www-client/vivaldi/vivaldi-5.4.2753.47.ebuild new file mode 100644 index 000000000000..cc815568ad94 --- /dev/null +++ b/www-client/vivaldi/vivaldi-5.4.2753.47.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 +} |