diff options
author | James Le Cuirot <chewi@gentoo.org> | 2022-07-22 08:34:56 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2022-07-22 08:34:56 +0100 |
commit | e580219f4b6f3f6914f8e257ddeed2e2cb9877dd (patch) | |
tree | a509b5829a66736a31a455e4f5cc4a7019964891 /www-client | |
parent | dev-lua/luaposix: keywording ~riscv (diff) | |
download | gentoo-e580219f4b6f3f6914f8e257ddeed2e2cb9877dd.tar.gz gentoo-e580219f4b6f3f6914f8e257ddeed2e2cb9877dd.tar.bz2 gentoo-e580219f4b6f3f6914f8e257ddeed2e2cb9877dd.zip |
www-client/vivaldi: Add version 5.3.2679.70
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/Manifest | 3 | ||||
-rw-r--r-- | www-client/vivaldi/vivaldi-5.3.2679.70.ebuild | 206 |
2 files changed, 209 insertions, 0 deletions
diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest index 8c0e76721854..8238be364f9b 100644 --- a/www-client/vivaldi/Manifest +++ b/www-client/vivaldi/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-stable_5.3.2679.61-1_armhf.deb 81312608 BLAKE2B ccf660b747df101e7b0 DIST vivaldi-stable_5.3.2679.68-1_amd64.deb 89858344 BLAKE2B 0eee5fcaf28750e1f81021c6fe38de3fea5a5c2d6096ae99ba5b78e4ba9b7f688f9a8b34d350d051033f72a3c1aecbd0dbf60ede6b8cfdd3e2819d1d790db909 SHA512 ea3f49215a213e9b35145f2514aae0913dc5f3f5392c0cf833a208b22c763152c7bbc106e55c0f52ad48088866d05dd7f973ed059f4a64149b2f42999b10e459 DIST vivaldi-stable_5.3.2679.68-1_arm64.deb 81622244 BLAKE2B aa2c0c8af294d4083b8dec4894fe671480d88dabc20e2df5d0fb70395a4406596e75a46e32171836f3d9f44b5b5e59aa9c2a489982c1c6ccf41835e7496d199b SHA512 8a41530bff46f5e5b0d6335af39726a2f4e08f7fc00407a296c9c52a9c659c77527405baea2188dac1e31a40acb61bd28ad6325312a26bd298ce8cb5a747669c DIST vivaldi-stable_5.3.2679.68-1_armhf.deb 81301176 BLAKE2B d8df8482de3f3e4a2ebad71540b4feabbe9e5c28042a95892c86ec838980406c6635ac215a2c3614a16436db3c3238f84c500ab792a37370c762614335c2f3e8 SHA512 092655f1bc00e2d167cfb8dd3b5e54e262cd56124db57c5d0d0e5a57e775cf50097c9ac8923bf76e26d2c8d5513e0b48f8996a928a6a854540f81265c4964851 +DIST vivaldi-stable_5.3.2679.70-1_amd64.deb 89908668 BLAKE2B e03200cc5d6b4fffb760ff2192f545f54d99d40cbc799ce3b57e1e2766524f32e4b282dde5b5dc9c06d5582d03d80350c734944f36f7b61614a7c8cc7de98d10 SHA512 6cdfc8f9d00eb07b68a0d700f57b5f8135b3c0c166c97e8d5d100ca3e0c00965a5ea8bcf0e5e5d206f12fd4bb7bfcd867539f6a8c82fe024aadf63776ed481e0 +DIST vivaldi-stable_5.3.2679.70-1_arm64.deb 81633136 BLAKE2B 6cfad0ec2f47a0228b6e5cacd689540cf2a26606433906ab79f298897fcea870b579459dfc84fed5c6933ea53d70de558fec4a8730d67d69c7b7293c5ec7c4ca SHA512 3fc2570c32189088d24d1e9e9d3ad2b16daec281a85de1bffc0161e4320e846f896cfc08c39ba4b7c42505d79f7f5d2b15c5e03e62a91e333c891bf0f090488e +DIST vivaldi-stable_5.3.2679.70-1_armhf.deb 81281828 BLAKE2B ac4ae8ca2ed316dcb4d41ac5448c3adbc2ad9763b7ce63d2e11244e5fc8e3629e0a3a5616730b9d039c23b04d6a201b69e6de5b754298d2afee5cd1589cd9aa9 SHA512 5c648cf881a59973cd95be789b2cd112f15518f41577bed4c934f6be84f8b540a26c27896decf855c0f3a438d5c78232ae1ef93835ef80ddc1d413759abde0a4 diff --git a/www-client/vivaldi/vivaldi-5.3.2679.70.ebuild b/www-client/vivaldi/vivaldi-5.3.2679.70.ebuild new file mode 100644 index 000000000000..cc815568ad94 --- /dev/null +++ b/www-client/vivaldi/vivaldi-5.3.2679.70.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 +} |