commit: 63dc9a7122a42cda29a61a18c63c3d73d480985c Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> AuthorDate: Fri Dec 4 09:25:55 2020 +0000 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> CommitDate: Fri Dec 4 09:25:55 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63dc9a71
www-client/vivaldi-snapshot: Add version 3.5.2115.63 Package-Manager: Portage-3.0.11, Repoman-3.0.1 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org> www-client/vivaldi-snapshot/Manifest | 4 + .../vivaldi-snapshot-3.5.2115.63.ebuild | 194 +++++++++++++++++++++ 2 files changed, 198 insertions(+) diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index 791b87df972..cf98b3df52f 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -6,3 +6,7 @@ DIST vivaldi-snapshot_3.5.2115.54-1_amd64.deb 76776024 BLAKE2B 5050661250633082b DIST vivaldi-snapshot_3.5.2115.54-1_arm64.deb 69061304 BLAKE2B 2938837019910b78b8dc78a1209c5794715050cf296490229d48edce5143049f406f0730ce39144219e0054ecb6e26a9b820cd718ca3aa826e163b845076984b SHA512 e3216235ef79fb760134a762db6d281dcbe14c9349564465efb41aeea17f23f15e899a30a8695b8467cba5c137a61240d89e6bd23ba79c24c3aaaf8293b5ff3e DIST vivaldi-snapshot_3.5.2115.54-1_armhf.deb 68144660 BLAKE2B 4ba405dccdfe832b1362f24735cde7e1226627bbff9dbd1acad06397f3a88343c66d9c73912cc732f2f937a3fb48a109d6c496c2399e42ffc8275012a724992f SHA512 e5397f721b6151aecde196658f77feb79261bc3654b00102485a86f28488f6b55ea23bb020a1e511d818dd7e0121d360306a67a5308857223da8563b12b1f51f DIST vivaldi-snapshot_3.5.2115.54-1_i386.deb 73577452 BLAKE2B 9c4559e43b58f96fa48008360347d4cdf5c7e8df5593618a2478aa64e26b5a2165536f76f7689f23d7d43d229fb4a4ed773a25d617a10a95bcd8afc2edf8fe9c SHA512 4d6268b7700d50d507e43cb71cfe6031e34ae99b4a150798c658fe6a17e6a98dfd92b324a79f752a837616fda1e632bf864ae10bee7b6439e541cfcb2e313735 +DIST vivaldi-snapshot_3.5.2115.63-1_amd64.deb 76791600 BLAKE2B bdd9fa9847fc12686ba35be4ea2dee457f35821a6d5fbc54c9a16db84bf1d4d9add635cb8d8d8ba43111c421902959a4126b03887a0a09bea818d08a6aa9182f SHA512 cb7dc760bccb9c821a21e4345f8cf5799456019062f2e3d2c4dce93c99a415a14d01d7a2fe0e72d3c8cf88222b23425c3ac0a2f8fe8d5e05c9724ff308a65544 +DIST vivaldi-snapshot_3.5.2115.63-1_arm64.deb 69047684 BLAKE2B 024562eb45bf181bc23bcaea90543c0d1731d3a3e2f71ac0901c119e470986ef25e99662725dec77488a9568f8c837d110a9316cb1b3a3ef333ab3bdfd4517d4 SHA512 976a24004d846ea3d665690a435e0805b8fafe0660479c9520f7dea8002c668f8881b1aeccb723d5fad8f952e87ae1c8ef23e22676e152b6c5077cfd1fdbb16e +DIST vivaldi-snapshot_3.5.2115.63-1_armhf.deb 68124956 BLAKE2B 0e0ac854f0194706fe9eabac14ccfdd0f74aa6c5addbc71ac37a81dd01bcbf95a3888097f76c3d5276eb73c3e046d16be19575e31b1d84b1aa3241444e3dcab1 SHA512 e93af0ce0386973e9b63125b2af786114f97420c86a472807e0915704c76a181b4cdf5c81895739b908b8bb522dca48ccc4dd9b03a4cac16f99fd057c6c650e7 +DIST vivaldi-snapshot_3.5.2115.63-1_i386.deb 73575640 BLAKE2B e2f4f427f38756aa5fd044cb6d83a8fa8062629338a75bf2a9861e8b3f35d1593f0777ad257422be1ebfc9b6840af36b38fce0431289d3497c4eac847f4841fd SHA512 bbdbe7931e2263052ab8d2d03c707e98f7924d4a6d38e498a8b10a65e7776d7877e0fcb335eefbf41cb537241df5276dc346e2d20090c5b91238e376172143d4 diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-3.5.2115.63.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-3.5.2115.63.ebuild new file mode 100644 index 00000000000..f69da1d681b --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-3.5.2115.63.ebuild @@ -0,0 +1,194 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +CHROMIUM_LANGS=" + af + am + ar + 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 + kn + ko + ku + lt + lv + mk + ml + mr + ms + nb + nl + nn + pl + pt-BR + pt-PT + ro + ru + sc + sk + sl + sq + sr + 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 ) + x86? ( ${VIVALDI_BASE_URI}i386.deb ) +" + +LICENSE="Vivaldi" +SLOT="0" +KEYWORDS="-* ~amd64 ~arm ~arm64 ~x86" +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 + + 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}/lib/libffmpeg.so + fi + + if use widevine; then + dosym ../../usr/$(get_libdir)/chromium-browser/WidevineCdm \ + /${VIVALDI_HOME}/WidevineCdm + else + rm "${ED}"/${VIVALDI_HOME}/WidevineCdm || die + fi +}