diff options
author | James Le Cuirot <chewi@gentoo.org> | 2021-10-30 08:28:25 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2021-10-30 08:33:03 +0100 |
commit | fdb9c266bc3f8e4966bb0d1c39cacf0be2db4653 (patch) | |
tree | 14057811e92a98c3e270ea88fe8c1fe3a52cc9d0 /www-client/vivaldi-snapshot | |
parent | virtual/httpd-basic: add www-servers/h2o (diff) | |
download | gentoo-fdb9c266bc3f8e4966bb0d1c39cacf0be2db4653.tar.gz gentoo-fdb9c266bc3f8e4966bb0d1c39cacf0be2db4653.tar.bz2 gentoo-fdb9c266bc3f8e4966bb0d1c39cacf0be2db4653.zip |
www-client/vivaldi-snapshot: Add version 4.4.2465.3
Package-Manager: Portage-3.0.28, 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.4.2465.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 46cbd5decfbb..d8c4618478d4 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_4.3.2439.41-1_armhf.deb 78980916 BLAKE2B 0f389dc4922683f3e DIST vivaldi-snapshot_4.4.2457.3-1_amd64.deb 88064736 BLAKE2B 053bc4e08ae03bef4e28382fcb78be702f4b35a818376b61b47682cc78e2e15ec4e772bbe24a72f75c59c25888783fe4b8f27d35817110b268dd88486fceef85 SHA512 5ae4a7f89f00c5a564d59b3bbb1c93f6bd7b8b3456322ea94cc2b31523c8ce4a21e0111911a50c9710bc2ec9481e6ea7a0c9cb38c9be93f67f86251080736c39 DIST vivaldi-snapshot_4.4.2457.3-1_arm64.deb 82871488 BLAKE2B d23b6033d373d09ffb1eaebd1b67b87dbc801e08b4f98f5045d85186d718a29db078135a2b5f4b65aa51c2fbcab17689e88cb9a59892cf3484819ab053d4117f SHA512 d96087b582be5da8c00efa3fb63c6fd5f9c61517993aa4e3dcb9cb32ffa10bad33c07e1f0252f1583459d30901a661c4b7e5f2b0c1a33ce006a81521186f5e6a DIST vivaldi-snapshot_4.4.2457.3-1_armhf.deb 79055812 BLAKE2B 1618c60831f825cbf3f7b8b6d3d562ae03c5610ee8c0541cea6c4ec8bf78684ea71576c14ccaadbde87a0965772008b6e6baeb34423aa9d0a261a605ca166764 SHA512 88bf379c1f063e0cf45e7681dc50acfd7108f8abe91b8bf782113fa4375f76e9522def41d523e401d321aca06549f0751478ea6c2288cd95294bdb8ac1cb4bd7 +DIST vivaldi-snapshot_4.4.2465.3-1_amd64.deb 88095176 BLAKE2B adc58870d094d30382dccb7f38b01d844a2f3422d17fc5a058a81da59ff820f7b49c6b41447c16760df7976db11e583cb9963e2af84f8268dfacca3ab4e6edf7 SHA512 909c2de15bfcc079fdb446649ab169570b99b818c4c7c9ab2c72f97f40702acceb118175913b078fc8dbc0a8430d6987402f8d30fca7b44233b74d58ea17b901 +DIST vivaldi-snapshot_4.4.2465.3-1_arm64.deb 82871804 BLAKE2B 28bcb58991dfe8562ca409c23091d89833335b8c79fb81d64566d3ecebb9ad700d35e83a491eee71311249055dae4fe27f84b2f151fca8c4acd2bb6e439fe8d8 SHA512 22e93f4ea210e30fbbff829b2c2d9650d7ea88eca9a8cf04fee01c1d9213a2c75a36fb482ca3fbd6c00bdb7ebac445e92f05334bf3bbc855dc47f1f9e5cdce24 +DIST vivaldi-snapshot_4.4.2465.3-1_armhf.deb 79059500 BLAKE2B 6c5b02ad4b7c4b6051af8b41381f953b4525ce42fd97f4807bda1614ca5d32f17d7b9d424b58ee5db4d5d637e970b27e9f26dab0a81c05fa29840bfa7e35fb29 SHA512 9fa256a10af801f4304827dd50962ca43414aa126ccb1fef142e56d7d14215bcf25fafbcc4d477f7ae8e38e716b94d410582ae524d1068e94a167ea3e191d782 diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-4.4.2465.3.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-4.4.2465.3.ebuild new file mode 100644 index 000000000000..9fafe2ed2efc --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-4.4.2465.3.ebuild @@ -0,0 +1,206 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CHROMIUM_VERSION="94" +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-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/${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 + + [[ ${PN} = vivaldi-snapshot ]] && + dosym ${PN} /${VIVALDI_HOME}/vivaldi +} |