diff options
author | James Le Cuirot <chewi@gentoo.org> | 2022-04-04 22:35:03 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2022-04-04 22:36:19 +0100 |
commit | 8edbaa0190af33cb4bd791ac69e0d817a66c2e3b (patch) | |
tree | 4eafc2a34fee327052e70c811d9124dc71efce69 | |
parent | app-containers/runc: add 1.1.1 (diff) | |
download | gentoo-8edbaa0190af33cb4bd791ac69e0d817a66c2e3b.tar.gz gentoo-8edbaa0190af33cb4bd791ac69e0d817a66c2e3b.tar.bz2 gentoo-8edbaa0190af33cb4bd791ac69e0d817a66c2e3b.zip |
www-client/vivaldi-snapshot: Add version 5.2.2623.16
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-snapshot/Manifest | 3 | ||||
-rw-r--r-- | www-client/vivaldi-snapshot/vivaldi-snapshot-5.2.2623.16.ebuild | 204 |
2 files changed, 207 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index 1b1c7cfb46e2..4db817de5d67 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_5.2.2623.10-1_armhf.deb 78897080 BLAKE2B eff2cf8a1aeab3a08 DIST vivaldi-snapshot_5.2.2623.12-1_amd64.deb 87801824 BLAKE2B f477942ccf347fb1101365a4393622ad95f50aa1838b2adb35665c43028ab9890abaaeace3763e4dd1e03172b214d6eb808a555c9ad8261cbcde723cea8cd6b1 SHA512 06a39fe6c5a5b7f2d8d2e696302edc0edff4744cd2d2cb89ceeb9d9b61a052eba8b9494afbfc1640e0071618930a32a9e7420ed34e37285b8a800df873103c07 DIST vivaldi-snapshot_5.2.2623.12-1_arm64.deb 83018368 BLAKE2B b04ba3d53729501850895464e102d5d1226c225302ca35e4088100dba34ef6bc643566688f9d1bd2436e883b9238e566a3bad74e2f24e75e6065495740f8fbb8 SHA512 618e62f1bae236f851928e7bd2191fc1039b903ce923e17478cec7b58c727adf894b66d952931fdd4aeb44c2bc185d053faee3532d3a315d096d225cc057e475 DIST vivaldi-snapshot_5.2.2623.12-1_armhf.deb 78912876 BLAKE2B a598aa40aa8c0ba0283ef93e9b658b3ad3c57e11da8b5963a40592a74fb8981b69f73dc70dbcdf73c97dae1c4e2b3642a4ff8160a088fc2fe048f109f202da79 SHA512 6548e97f624804481cc173c2e6f4e624c0eb66dc8da782ff3f6f9738063d6e5520346d9b8e9916772cf2f789e310037d4a9c02f24f3eee84a75b8ecd409df6d2 +DIST vivaldi-snapshot_5.2.2623.16-1_amd64.deb 87793080 BLAKE2B d607ba010cf78523a96d9d2a440b5b083bbf5a4f84f2cafe35518ff83eed7e115a06b473673d8d2507930e1193e267da9068b429ef62f53d6647431a8985e14b SHA512 e42e9d5e800eebf7b940eb99183172100501a33f78dc65fd9113d8d64f744c064aebac746448e45a9b66c2a5aae56f8bf1a66f09de55918bc53ba98b25e47da4 +DIST vivaldi-snapshot_5.2.2623.16-1_arm64.deb 83024488 BLAKE2B eccc1875762512bff9bba56f69734ec42f9fb3eb689175d0f0082b578081cc4a1fece4c0c18c3a8236eed67beaeb67369ee55240b8b576c393ce41ee8fb77910 SHA512 1c7cb93680da4ad96fd0ec9c0984089627cc8b326e19e1978f45fe64a4f2bdf546b6651c2d603bb555c6bc2c757bd41aa2a59cf6ccf47cf96ac9810751b1b974 +DIST vivaldi-snapshot_5.2.2623.16-1_armhf.deb 78920364 BLAKE2B 5cef183fdedb4a0709b8800a5f70727e5a1a24db5900a1f13ccf3eaea48b070baeadee1c2ac9f49ac25f9261b9b15e3c82fe63c0f39ef7691d5e038adab62124 SHA512 fca26fdbe6737211719cfba36b5fe91d00e289d72ea2a1865e1dc491f9a6f4bb84bdc029317e561f4bfc990675b0a9ed85126692709f7d0f879987b8160b36cb diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-5.2.2623.16.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.2.2623.16.ebuild new file mode 100644 index 000000000000..d6cfbbe0cedf --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.2.2623.16.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 +} |