diff options
author | James Le Cuirot <chewi@gentoo.org> | 2021-06-03 22:25:14 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2021-06-03 22:25:14 +0100 |
commit | 22cee22a917d400e74a43579bdf11d2340a02deb (patch) | |
tree | 1511e284795ad94ca907c8761e8e717d614b2f44 /www-client/vivaldi-snapshot | |
parent | gnustep-apps/sogo: 5.1.1 bump (diff) | |
download | gentoo-22cee22a917d400e74a43579bdf11d2340a02deb.tar.gz gentoo-22cee22a917d400e74a43579bdf11d2340a02deb.tar.bz2 gentoo-22cee22a917d400e74a43579bdf11d2340a02deb.zip |
www-client/vivaldi-snapshot: Add version 4.0.2312.3
Package-Manager: Portage-3.0.19, 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.0.2312.3.ebuild | 205 |
2 files changed, 208 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index 5dce9d6fa532..696550311750 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -9,3 +9,6 @@ DIST vivaldi-snapshot_3.9.2289.3-1_i386.deb 82584664 BLAKE2B f5447df81bf87b128cf DIST vivaldi-snapshot_3.9.2305.3-1_amd64.deb 83027644 BLAKE2B 311f182e5f4a8c56f82df083a0320dba0d3b62574fa54e0d9fe72a35b06efbc5f4290d6eb58e642585d7497d27a8513f201dced2e3acefe70829e02971e342c7 SHA512 d1c81b76a6d74fa2108895577bbe4ef1ce70fdf13954d5c1984eed8d25cb2216e188110286bf57c3e3e654285d70f28e12538c9bee322cc48274c27f8a1f4f6f DIST vivaldi-snapshot_3.9.2305.3-1_arm64.deb 79064784 BLAKE2B 6eb6f0dae02e5d382e773ceaf39efa3d632d13abc1d8ebe0b07e4e63a877803a5696153b0b1616a7cdde15189156f2baa9f86c88dec7e2f31567dcac95ee3b6c SHA512 58fa598779563d112b34c0b60a5d61b6bbe8c352a564b9fcf255cff227351e4bd56dc5b84de9b65f3eaa4c204a0d619ce1e2365b6492c040d8d64bbd5e6798c7 DIST vivaldi-snapshot_3.9.2305.3-1_armhf.deb 75195244 BLAKE2B 3f6b614b42b4d5d14da1b9b80a818130203db21606ea1baf1d081fe39cbd1bce2bba039862794415af5c0fc871d89c88e58738e072ff3f448039bb237d0cb5c6 SHA512 51a7350eeb600f375c9e67c393c56a5d8ebad26e3a44a173995246dd5cad8cb5c9271dfab5173547dedf58af5eb160710420b987624bc27dd417b1bd96d729de +DIST vivaldi-snapshot_4.0.2312.3-1_amd64.deb 84153620 BLAKE2B 689ac4debfc54e8d3512ddaecd7b785d51aebcac77b72cde33770a4f9c7431eac1cd7fd3955c15dacd6d1fd1075c37ad6d56a76845ae59e3c8940737cdcbe319 SHA512 a8e56a24d0dbfa6814d3950ca5b3e592be545ebc9ec71de3c78bcd3ca8e70b8f2f1442d89ae72ca9636e4442805a153e72b058a3e43a87152a102f0f5405f188 +DIST vivaldi-snapshot_4.0.2312.3-1_arm64.deb 79579564 BLAKE2B f0e58331139ae6df6268b34d8b799291199fc9edf6c5b4d4137061f9a0d7f600f674965970f4355848b4e2763d0c5b44b6518f5a4a05b7f2cbc2f7d4ff33d708 SHA512 668ec750cfe20ac4b827ccbb2d8eca987b10471e387245e4e14a3500865c30b0339845b60b7da86d8fafc5686b50adaeb9c684ad9868bb3bcabf864502047890 +DIST vivaldi-snapshot_4.0.2312.3-1_armhf.deb 75737268 BLAKE2B 867f5c717b016bf0e7136a62a7bef1dd97a15b655c377eaa5093e8c79bc5e7c9a93befdd7f6ad74f939f5ddabbbd2f16c70720c5c728be167ae3c639dcc3bcd5 SHA512 3836f99ca787764c7f365eaf9c1fd3a767ec1a8467c45cc7524df42cff2fed371bfc11ba0b9eef39b2065f12aa061d1a32daf2740ed5b821032f5934fc5bf2ba diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-4.0.2312.3.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-4.0.2312.3.ebuild new file mode 100644 index 000000000000..922779ca6f6f --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-4.0.2312.3.ebuild @@ -0,0 +1,205 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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 + +VIVALDI_BASE_URI="https://downloads.vivaldi.com/${VIVALDI_PN#vivaldi-}/${VIVALDI_PN}_${PV%_p*}-${DEB_REV}_" +SRC_URI=" + amd64? ( ${VIVALDI_BASE_URI}amd64.deb ) + arm64? ( ${VIVALDI_BASE_URI}arm64.deb ) + arm? ( ${VIVALDI_BASE_URI}armhf.deb ) +" + +LICENSE="Vivaldi" +SLOT="0" +KEYWORDS="-* ~amd64 ~arm ~arm64" +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:0/56.58.58[chromium(-)] ) + 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 ${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 \ + /${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 +} |