diff options
author | James Le Cuirot <chewi@gentoo.org> | 2022-06-18 08:31:13 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2022-06-18 08:33:35 +0100 |
commit | d59235764ab8c69d2889d655f9f06fec55207d82 (patch) | |
tree | c0ee84c36ab898099a36a886ddcaf856e0dd9bb4 /www-client | |
parent | www-client/vivaldi: Add version 5.3.2679.58 (diff) | |
download | gentoo-d59235764ab8c69d2889d655f9f06fec55207d82.tar.gz gentoo-d59235764ab8c69d2889d655f9f06fec55207d82.tar.bz2 gentoo-d59235764ab8c69d2889d655f9f06fec55207d82.zip |
www-client/vivaldi-snapshot: Add version 5.4.2707.2
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'www-client')
-rw-r--r-- | www-client/vivaldi-snapshot/Manifest | 3 | ||||
-rw-r--r-- | www-client/vivaldi-snapshot/vivaldi-snapshot-5.4.2707.2.ebuild | 206 |
2 files changed, 209 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index 648e13ea35f2..30405ea944ad 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_5.3.2679.50-1_armhf.deb 81289972 BLAKE2B cc841f04163bd44c1 DIST vivaldi-snapshot_5.4.2704.3-1_amd64.deb 89878764 BLAKE2B 2b9cfe2471529f56c18e73f6334acaa802f5b8ee64c7dde531269f773dc437732d0a4be4bd44b5683b9e499b80f0bcf9e339b2ffbda68e15fbc45b7f930d6093 SHA512 a0075be7fb9d72d8b2ba5ad368667725f9e4921ea1de8a0f40b3ac25afd38289aa1f2d65ff5d5b376d3db3d2db0ad4ecd308014b2c23105298cd414691836ae0 DIST vivaldi-snapshot_5.4.2704.3-1_arm64.deb 81633128 BLAKE2B 458d8a8cf3cc3765d45fa852f93fd61de75c0ac860f2ab8649c7ca10615e25c6dc0c5d28ac0a2800a582d29e17b62f08128d9e980618e3b13a7ae26e9a9f1260 SHA512 3c3d841ff8d00c63af674b6857e765acb4bced1fc0857b09008a701215e9d43a827faccb7e79de141990494ddfdb707958d4dcad13634c133f430eb8c555054d DIST vivaldi-snapshot_5.4.2704.3-1_armhf.deb 81291512 BLAKE2B 5a8546636b059db93fbfc3781304d1e935978b02b621f2e65a31d5bae0e457543173f318a58070652f1b037de7082e9f46794bd1f995c9eae5ffd8697115f4f1 SHA512 63fa6f435eef51c3b28a1596277e0601d9cc6ab6a1f75e282ce6aa7b4a1ebfc7ed2528e9014d51672913edd9f85933006ae9ae330f815389921ff2a92e7eb39a +DIST vivaldi-snapshot_5.4.2707.2-1_amd64.deb 89882276 BLAKE2B c6570714d86f1042bafc51f148df3e9ee82a5027aca413d0fe17ca6edcec64151d987703d45456f858ea1484f5790e3134533a4bf89964bde294cd2dfa1b4303 SHA512 1a2817311751c1f655e59c9b3f28f9a70a7be5fd850ca13b0c25573388bbafe7f7d5dff519cae716b41f7e64cda66650ce48b23704f5038c48b4c804f0a3ea5b +DIST vivaldi-snapshot_5.4.2707.2-1_arm64.deb 81633992 BLAKE2B 304bcf611f382d1edef1b06d62c861d104cb79acb59e3c5ad4f58a8a2f419cf6953633ba9aa9856c253394a3a9e0faf10a1512c14a707dd33a98e52432581027 SHA512 b4b6f54d11f8e3812d56290a522b02da6129d356adf4ddedc04d4ca84e6f58447fd096aae7e29eaeb4db2ccb5c03c8d9342a98493d5050520a39863eefda8fee +DIST vivaldi-snapshot_5.4.2707.2-1_armhf.deb 81277108 BLAKE2B 214d75556c20ba73e6cab2a09fd7d40d7275d2dc135df775f039d2414da536e8db010b599a66a88266522300497352a0501619bed8307c54893d2ba7f74a49f7 SHA512 dc5ab115b9c0a61c61b127d135115b663a48d966c7d386b90e61edaae37b7d64f6770f5a877af00e4cbe8eea1a6c0a336ce31400897cfca0ae129916a32883ac diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-5.4.2707.2.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.4.2707.2.ebuild new file mode 100644 index 000000000000..cc815568ad94 --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.4.2707.2.ebuild @@ -0,0 +1,206 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CHROMIUM_VERSION="102" +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 + ur + 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] + || ( gui-libs/gtk:4 x11-libs/gtk+:3 ) + 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 +} |