diff options
author | James Le Cuirot <chewi@gentoo.org> | 2021-04-23 23:49:51 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2021-04-23 23:49:51 +0100 |
commit | c3e0f6a51e5ae6120333de12651fbdf0a65a8248 (patch) | |
tree | a8795e5f82c86d50adf08d8705c2b4a3a0d418ad | |
parent | www-client/vivaldi-snapshot: Add version 3.8.2259.16 (diff) | |
download | gentoo-c3e0f6a51e5ae6120333de12651fbdf0a65a8248.tar.gz gentoo-c3e0f6a51e5ae6120333de12651fbdf0a65a8248.tar.bz2 gentoo-c3e0f6a51e5ae6120333de12651fbdf0a65a8248.zip |
www-client/vivaldi: Add version 3.7.2218.58
Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
-rw-r--r-- | www-client/vivaldi/Manifest | 4 | ||||
-rw-r--r-- | www-client/vivaldi/vivaldi-3.7.2218.58.ebuild | 206 |
2 files changed, 210 insertions, 0 deletions
diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest index 506884913eb4..af9d7566a9df 100644 --- a/www-client/vivaldi/Manifest +++ b/www-client/vivaldi/Manifest @@ -10,3 +10,7 @@ DIST vivaldi-stable_3.7.2218.55-1_amd64.deb 78991908 BLAKE2B 182b928e28d44ceaee4 DIST vivaldi-stable_3.7.2218.55-1_arm64.deb 71066872 BLAKE2B 67c55e0744e698fde621081362e6d53d87647f3dc99a32cfe280f8d728284741f5a3cc7564511a2ea3f459233628fe1d657f1109b09eb3e6c512668737b3745d SHA512 3878579a944a2c27b60af0cf05ba8db29deff76eca6a2be3aa6f9986f16654d5a4f8d46e920154cd2b8d9ee322a672babe1f44ffcbd44e7e5c50d05e3e87aab8 DIST vivaldi-stable_3.7.2218.55-1_armhf.deb 69908068 BLAKE2B c6506f27615b4c3f6ded7f2cd7ca47aecb7f3a6f91f4870b530c8cde14a5bf375afccf9e7d34362488271efe45950b1a1a9beaaf9fe51b49ba1913dfd12ddaf6 SHA512 5436850d55a91ba383d5598938b78b9bc5c454b939183b7d7aac9f632cf2b91e935b39c666a7978a858cd7393dc9fe2cbaec6d2ad62fbfc10cd61c6d6455cd65 DIST vivaldi-stable_3.7.2218.55-1_i386.deb 75304460 BLAKE2B 8abf00497eed0c46fb3856cda24a5a6674c262eaed7b81b7b9e8ab583deec93da0525754b9c42ede090987e589c214715a45e65f2c50231ef8be5a175a5c5b3b SHA512 d8db5e4bd824fedb49d6434283eec6ccbbae5838388182d5ca4abcb996e8be3cc20dbb2a8efdc116c198900ffa92d4fda066b9065503e5e275393d819760bcb5 +DIST vivaldi-stable_3.7.2218.58-1_amd64.deb 78375024 BLAKE2B 51f37e34acaf85829298a73a05e4bfc7888e21fe2f85d246c53c82360ae3c2de5e05100a89d6cc8a658006608a333a1e1f5d076939fbdd6f3af0c5c5cb4d220a SHA512 0e217e57dc232640fa9808cfad7d98545ad81a2ab2e1e03b1002a60ba0c2d7ed006ffe60ce2aa53d131973f374807ae49592b5231d575155165dfe1269ffc9e9 +DIST vivaldi-stable_3.7.2218.58-1_arm64.deb 71046428 BLAKE2B 8f0dd3e845f2e4587d238c8f48447e514ac7605acab8d67f30c30ce2df04fae600382218087aea68f75621887f5a71506389c81f9b31614e20d3d7611d7bfe0e SHA512 2126c24ae8a7e4370f4ced2b37580871394de1f38a02b88d24c974ee23c13a4264ca8c11e0c5b7ad542812531898d9ee425657d9c7eeba4e08c718c07c7337bd +DIST vivaldi-stable_3.7.2218.58-1_armhf.deb 69900368 BLAKE2B a85b97405c80dd10907d9b0b9846b8c2b1101346cdce4b19ddeb1192de64c49056e086903829b30b9e6bb4928c3de500138cda460596dff7c2505fae0661d6ca SHA512 2d37b2080dbacbd6986e9d346be4e0aefd48a25f039668e2c1e697a025c294e4f945fdd3d86ae34688335e0d2b496355461756ae650e0b0fd212fbd983494ae0 +DIST vivaldi-stable_3.7.2218.58-1_i386.deb 76040556 BLAKE2B 4710993024a401a8b9e25dd5cae55d5e5077423a7f7bba7af55150675d7848427f6bdca1fa8666f338b7609cbb11254c75df901e3c33fc6b75c5824c17808b71 SHA512 d5a8658d80aa8a4b5ec38491f3a4f6fb16c5a0de7934d4f7f518efaee36afc1d9585695c121f5cd65d961ae134c7cae0cd6bf0b07858ef2f906d715ca424ead4 diff --git a/www-client/vivaldi/vivaldi-3.7.2218.58.ebuild b/www-client/vivaldi/vivaldi-3.7.2218.58.ebuild new file mode 100644 index 000000000000..232d99b73e99 --- /dev/null +++ b/www-client/vivaldi/vivaldi-3.7.2218.58.ebuild @@ -0,0 +1,206 @@ +# 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 ) + 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 +} |