diff options
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-5.2.2617.2.ebuild | 204 |
2 files changed, 207 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index e0f70566860f..ca7a1e1e5e54 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_5.2.2581.4-1_armhf.deb 78113780 BLAKE2B 1620921be32b07892d DIST vivaldi-snapshot_5.2.2603.6-1_amd64.deb 87460496 BLAKE2B 6b1fcf5d42d01bcb34313d44121379abbf6b8d5eb9f970d04a2f03c50a1c7c2337a161c6a20b26d934761c47fd09712ea5c85706a8d0e794e3ebe12d5c6c14c8 SHA512 a7a071965f5ebe206d4073829ab81ff514cc90bfa9cfa60e222afcc0ece89afade0b2a29a2bc23c5c7b19469bd88810cb3720cd27d2b219c7ca7328513148307 DIST vivaldi-snapshot_5.2.2603.6-1_arm64.deb 82328824 BLAKE2B 53d1ca9e4f6e4ea885131e16fab805b44dad520a31503325c93686915ca4f71dcb83fa5f69116659ae5477448625e8fd2648663b1fd83243606b40115682010f SHA512 aad6b06cc5e3a2fc2db1b06869ee0dec715f162963352af0972550850443eea0be19eb2a495d93dfd045a5f3d6749844e7d838430196e1b4f265307f45b58585 DIST vivaldi-snapshot_5.2.2603.6-1_armhf.deb 78198564 BLAKE2B f4fc17e32c2128cf1e2862b7c8072e0f68855f58921755a9cfb4efb133f05f7ffc594eff3124556f391d7667ea55cf5138e200200e57dd94055d88abc64619ca SHA512 98cee4a94954100ff157d97591c7a5618416b8d6b53eb651ea1e3aee50ac651fe2884d92440dfa600c994069c8b710e7b93c684a802747c659018ea727301e64 +DIST vivaldi-snapshot_5.2.2617.2-1_amd64.deb 87770940 BLAKE2B 117711258c34e0e9038e944d91aed43447a19e12585d3bfefd8354b020ad55980847f7f0bfd002049e3e78a8a58cddf1de35f05554c9836ecba5647f20bfb85c SHA512 e3acf18f16742e58e149b4ca44916d65c0c4874b70d751a0b5c78416f2e8fc2259c94606ab67816726276641b8a13c1a1c403251064e501256bd1b6f08d92360 +DIST vivaldi-snapshot_5.2.2617.2-1_arm64.deb 83010588 BLAKE2B d057d1a6aab61dbd4a484ee0443a9563a27de813361bf018b153ae25b9c270c6b9b9f32aa7e506623d3a4c284d6d8127492841c566484960bf4fe52a1dc1e991 SHA512 a695ce5feac0ae160e37b8c8ab5445f7f5fa2f4d81327af646c791f87ae084be13bff3d89fb1fd2be8c3060a4bdfb63a9ba56dda0568a50abfe8307f507e77d1 +DIST vivaldi-snapshot_5.2.2617.2-1_armhf.deb 78875436 BLAKE2B eb6399eb5a36b2ed5097bc86cbfde424c0a85167f959940537223757aa1d30ed780ad52bce8dc7d733d41b07aeaf1fee63738f4f0f376560865373b17ac6626b SHA512 fb147f801965a3afb9dd113ae97b67bcd1d8b3ff02893fe8d71e6f7f9d8bf1f63ebacada67402d1875ccad3ae78b1c7b7ffd3d82aaac953ec67c1597a6ee3a48 diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-5.2.2617.2.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.2.2617.2.ebuild new file mode 100644 index 000000000000..d6cfbbe0cedf --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.2.2617.2.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="100" +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 +} |