commit: 20a53f737ee0a640e7544782b868b9e45bfc49e9 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> AuthorDate: Tue Mar 16 11:05:34 2021 +0000 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> CommitDate: Tue Mar 16 11:05:34 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=20a53f73
www-client/vivaldi-snapshot: Add version 3.7.2218.32 Package-Manager: Portage-3.0.17, Repoman-3.0.2 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org> www-client/vivaldi-snapshot/Manifest | 4 + .../vivaldi-snapshot-3.7.2218.32.ebuild | 203 +++++++++++++++++++++ 2 files changed, 207 insertions(+) diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index ce0dde346ef..a29b29d9776 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -14,3 +14,7 @@ DIST vivaldi-snapshot_3.7.2218.3-1_amd64.deb 78724140 BLAKE2B 8f939c2723a7ae2e58 DIST vivaldi-snapshot_3.7.2218.3-1_arm64.deb 70800716 BLAKE2B 579d53a12c6eefa8c69fda681876f9216a78cc960db6a9043065a698b0e26d0a2a7cf9ee52fc2cdfa0b19599f17aa9cfcab3ac94921899f771389a276f501713 SHA512 f0b59a3a96d463c78185aef41597b013b5c2c95583c51f0023d1af994bb643811318a606fdc2600df7e001740487dc942aceae4e8613103210277c2f38e0a7c7 DIST vivaldi-snapshot_3.7.2218.3-1_armhf.deb 69635832 BLAKE2B 4b8ed5c5b7a454dc4def3c4c6ac7971b125c85bc6a6f8d0cbc2ac5b10df36623adf099f0fb54fb0cbe29859d582f62dc47eb247971b82ebc89ce229439332b35 SHA512 cb59e237239e70f3c317e27f76da7d087291d825b472041548dc0303f384fa4fbd2ccae7138377090207ad8ccce82706f123cb95d718a79b4a8c55a02a9d4566 DIST vivaldi-snapshot_3.7.2218.3-1_i386.deb 75736164 BLAKE2B 02bec228bb256a910edf8567448603b6d5645146324fb48b75fa10995ac679393454cd2d17dda75e6d730e060e502fa45d1498468896e5dab650f6b4d89421de SHA512 e8aaf7fd1d2cff38fe3de69d27521f12519373d17323e75ed747c5313e3819ac8d2d1facd863c8590db8910870dc7477b42c9d5e1c95c78199c98b2c2fc535b4 +DIST vivaldi-snapshot_3.7.2218.32-1_amd64.deb 78971276 BLAKE2B c49fb14c35154a098d01308d6457c3eaff83b2379127dc91f37e638408f4ca029e7cc7e8cbf8a0d27e776170aee81a3d7e140f2838763be401c7e73c285bb183 SHA512 fe03f436293d9c12bcc40f505228d5ff36972b86a40f4f7e179c9e63ceb554973a20be61b197d05c0dc37f9575461c005f3ebf75af6e79b9c0e5e5db4d713c21 +DIST vivaldi-snapshot_3.7.2218.32-1_arm64.deb 71047788 BLAKE2B e5e2ad9ce07d7b3a4f5a282ce7dfbb77c5d1f0190864505ebc1ecf0f9cee5e2f8591f5dcb6e1b569f10dc7b48caf3a6eeacc9d55305725821be3da38e03c1571 SHA512 2ac48ea9005754cc909380e1c75a0d5ac983d2789b99b8e4c9ba8e46361f55654fbfeed32810fea0dff15772b5ed5582af866a0401ee20215cb2cde8f144a91f +DIST vivaldi-snapshot_3.7.2218.32-1_armhf.deb 69858324 BLAKE2B b79bfe59a1e1b1abea7a73ecf061a0857bb06097c965b36fa7853a09415ce3a766d4f454653479163b4e9c935650319200e49c5f10f733ed1177edcaac4b2dd9 SHA512 83b4eba29d8e62353bc913f543399856224f6085ec93279380d26391ae7e886a908353563d029904c861380c9286c5c97794fa3e8e903089b861dd47c034063c +DIST vivaldi-snapshot_3.7.2218.32-1_i386.deb 76021972 BLAKE2B d554e1ddeff1f744f1d8ee7b2901332dde61e73be5b1e4565cf12aaf4f16b8ab549063d8606655a4b04d5e36b79b90367e5c3db4461c8480a8df3a629b00dd7a SHA512 4bb3d4191954493e9bee3b54b010d96d655938afed82933f242a27f2509347649d54a606fa68e310ccf9d48da2b8e348213f09dc6d158e1f0cd393ff88fd904e diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-3.7.2218.32.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-3.7.2218.32.ebuild new file mode 100644 index 00000000000..beede0dd59a --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-3.7.2218.32.ebuild @@ -0,0 +1,203 @@ +# Copyright 1999-2021 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 + kab + 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 + + 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 +}