diff options
author | James Le Cuirot <chewi@gentoo.org> | 2022-08-11 21:54:57 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2022-08-11 21:54:57 +0100 |
commit | d68d940d3b8d9518838791775f9be6288a3b13b3 (patch) | |
tree | 35aff5b75f602c0d9f8519a18f0f48645a4a94e8 /www-client | |
parent | profiles: Mask games-rpg/crosscode on musl (diff) | |
download | gentoo-d68d940d3b8d9518838791775f9be6288a3b13b3.tar.gz gentoo-d68d940d3b8d9518838791775f9be6288a3b13b3.tar.bz2 gentoo-d68d940d3b8d9518838791775f9be6288a3b13b3.zip |
www-client/vivaldi-snapshot: Add version 5.4.2753.27
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.2753.27.ebuild | 206 |
2 files changed, 209 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index 3c399e89c61a..fc26c562484d 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_5.4.2753.19-1_armhf.deb 88363304 BLAKE2B 43777e10dbf7cdeb8 DIST vivaldi-snapshot_5.4.2753.21-1_amd64.deb 97567004 BLAKE2B 7853e76437f4cd1d9d5dd23760fdb51975c7238c4229bbfed81293e63a3e26db96cb8e3c4e18ae60aa978629cee5ee2a16d0fe2fbf37cc102442f232ab75f757 SHA512 2c5dcf3892b9fa3d75b64e3a55a25b79f6846c0ba0de2cdf2a587f2748e51e3c0f94696ce6ef32445c0c43cea155f0dfbb3be9f928332f86beb1aa6acb1a1f83 DIST vivaldi-snapshot_5.4.2753.21-1_arm64.deb 87882492 BLAKE2B dbe55b70b3744321fad6c882d7f3c20e2de7e821a4e61c2b3a3f2ed43fe0e6f1ed7eb71863217398725fec0ea15bb1c7de251f01be6aedf0602717e09b23006e SHA512 17db095f4ec2d936dd41d0369223f185877ba8dc372f922e6d7eba3d4c320325b4496ebb887be787d827bd05ed2fa92cd8cb1e29da6ccfdd91d1e3f7f9a38a6f DIST vivaldi-snapshot_5.4.2753.21-1_armhf.deb 88377804 BLAKE2B ffc6c58e2e69699b5cd45f8d1a910e9907fae7bdcd58ec5b7fc038f642c4e89317e41f14931c624bfb39307e5750862ce7f81c0689cdecc18c86c8eb0254edf3 SHA512 59f729843d11c66163ed9a21d6aac2895c391b7da0a58d23caa5e5dcdfc1348a8f785bb559facb3bcf7a5ec9cedfea59a59067f80e24e4adaafe992e8b752279 +DIST vivaldi-snapshot_5.4.2753.27-1_amd64.deb 97597432 BLAKE2B afcac0f2548f91f8de7aa50f79f85d6df878ee499a14e6cf44e76d080d42338a62c14c0935c84b9289ca1faebf219dfc1fa717f2fa56f709754d6bcec85648b9 SHA512 62bcf35fd37e879924a9ffc150a34bec1b9329212b20cfedbf9bac6773db5b59457f4a6bc69fd4c51ff32672d9e87a30c8166bb1b11a34d519bfda84283b3807 +DIST vivaldi-snapshot_5.4.2753.27-1_arm64.deb 87874496 BLAKE2B 3728370232735c1d8b22e2bb2f82611ba77b9b60effaae8c8759af5a24eea0562633f300a0c24fcd44586bf73c712e2271edcbc3cee0f5eb51501a19d0421a7f SHA512 59cb375fc967dd554b3e483a3767e64cef6c8802f073dcad9bf6333f1311430ff7a1a144fa4aeb955de5b73fc3783094dc3f6aa3f5ae1dc2b57874c503dcface +DIST vivaldi-snapshot_5.4.2753.27-1_armhf.deb 88397740 BLAKE2B 82522a95b2b483d31b18a223b140ea8ac905599e6d8a7ae8803be700ccb1a8d173f0375b1dfabb9c57dc4cfd4dac118f7771e6cdf4790eadf164d3e8e6e59d92 SHA512 0cbecda93ddc87c89e5ae82c85f72678605c3d8f09b5df7b227f72f2273d488100493d6e7d77e8302b9c7bf910f3d89b8b52fa0d835ba72c4b190c6de7976b8e diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-5.4.2753.27.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.4.2753.27.ebuild new file mode 100644 index 000000000000..cc815568ad94 --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.4.2753.27.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 +} |