diff options
author | James Le Cuirot <chewi@gentoo.org> | 2022-04-08 22:36:15 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2022-04-08 22:37:05 +0100 |
commit | 18e4c4581494db937a623df9cb5c721efbdc90cf (patch) | |
tree | 73b70eadb8db2f1fb952ad56d8671155f36fb2f0 | |
parent | www-client/vivaldi-snapshot: Drop old 5.2.2623.12 (diff) | |
download | gentoo-18e4c4581494db937a623df9cb5c721efbdc90cf.tar.gz gentoo-18e4c4581494db937a623df9cb5c721efbdc90cf.tar.bz2 gentoo-18e4c4581494db937a623df9cb5c721efbdc90cf.zip |
www-client/vivaldi: Add version 5.2.2623.24
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
-rw-r--r-- | www-client/vivaldi/Manifest | 3 | ||||
-rw-r--r-- | www-client/vivaldi/vivaldi-5.2.2623.24.ebuild | 204 |
2 files changed, 207 insertions, 0 deletions
diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest index 486b36211e02..549850ce73f2 100644 --- a/www-client/vivaldi/Manifest +++ b/www-client/vivaldi/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-stable_5.1.2567.66-1_armhf.deb 78153196 BLAKE2B a3f93fc02bac158037a DIST vivaldi-stable_5.1.2567.73-1_amd64.deb 87339236 BLAKE2B ffe85ea5f074b1e1c14e725ce9a3a666f586c33cf4bbc66e885dd521ca1237527542fb183ded1a029560957699a36bc0f1ae66605d87fb56afcafaee59963a2e SHA512 6309503a7b76399730fa4a99d2ece9ce9eee22a344f769b44b621abc50e3d778b07b2f8151cee6ab7d0ac8a109f82f12d26a6f6e43c27d08e3446908f4843ba5 DIST vivaldi-stable_5.1.2567.73-1_arm64.deb 82293684 BLAKE2B b6068350c5410b7c5ad5f179102582567ba146502c52ae2dd46e56cd20f5835667664be69232fea10114cd2fc1fcad9cae086ee87b682cad085457128ba2fdff SHA512 650187b08a10cebca8a1efa493bf59fc8451fc2804f8fd7d6a52354072ceb3eac659d891ff028733f2191e22cb61c939c01a8bed2efea77439f94fa35a23cb70 DIST vivaldi-stable_5.1.2567.73-1_armhf.deb 78134616 BLAKE2B af367f0d39a9b444d63145b5bf0c9501cf1ccaa772d06169bd61b2de9ed953642469768cf32f16f502c0497e4847591ae5247d8e3dc7ef9d3be3319a67eb39b7 SHA512 07a10bcc95a4af3c867d0f4d738489b4bd06397796c65ec2fbc0f8e09146472c64cc4c65b881592291964d7b3222ff4770e1e495b664470342c5e4088104601b +DIST vivaldi-stable_5.2.2623.24-1_amd64.deb 87835968 BLAKE2B fd3a7bf0d13353776ff9e4fac23fda554f36e35bf5342819876f8a69dfb1b04e12cb2b4b3e3ad2ace0ecbac82137b6d815296be4d04dffa18b941610c35bc953 SHA512 74fbabe1cdfc519430b412ea099405e8555d1f8768f950c4cab36615df63fc48ac4ef3bc03bd9fb5616a49c7476cac0eb46a4dd0e8a6060855246eeab60175a9 +DIST vivaldi-stable_5.2.2623.24-1_arm64.deb 83031728 BLAKE2B 6cd7f0c7999fcd932b05990bd62c90aeebce7a6331a95f11b239f96abcddc736ca0ce231391fa54f75b6055156c5157a07ee70891c8c78a598642ceb27c91884 SHA512 77f706a462a2a3f5d722ff4692815731d748efe66f01cb6f9dc601b22851b4d69fc03895c36e324ab548719305e676b9d6065e9e4c0025dc223aad854b7d9f90 +DIST vivaldi-stable_5.2.2623.24-1_armhf.deb 78935384 BLAKE2B 76a47786bf552e5d5695357861e754761a24f7a877b83fda17ea384c0f28cea01962d2b05a81b888404bb543d002e2d55221167aebc139f099a5a6aada4c11af SHA512 5506f8a31e6fd4de05a9f502d26193ac59367efbe0c3452b04206cd2a24c33a5caf293a080033585833f3464aa386e974d2337c12abc0e25fe9194469eef41bc diff --git a/www-client/vivaldi/vivaldi-5.2.2623.24.ebuild b/www-client/vivaldi/vivaldi-5.2.2623.24.ebuild new file mode 100644 index 000000000000..d6cfbbe0cedf --- /dev/null +++ b/www-client/vivaldi/vivaldi-5.2.2623.24.ebuild @@ -0,0 +1,204 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CHROMIUM_VERSION="100" +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 + +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] + 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 +} |