diff options
author | James Le Cuirot <chewi@gentoo.org> | 2021-11-18 22:07:38 +0000 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2021-11-18 22:07:38 +0000 |
commit | eddd8e7895a71ab39b00bdd16a790c6ef1e497ca (patch) | |
tree | df7d7f6915d5aed82d0145c25b82ad204cc5cbe0 /www-client | |
parent | www-client/vivaldi-snapshot: Add version 4.4.2488.3 (diff) | |
download | gentoo-eddd8e7895a71ab39b00bdd16a790c6ef1e497ca.tar.gz gentoo-eddd8e7895a71ab39b00bdd16a790c6ef1e497ca.tar.bz2 gentoo-eddd8e7895a71ab39b00bdd16a790c6ef1e497ca.zip |
www-client/vivaldi: Add version 4.3.2439.71
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'www-client')
-rw-r--r-- | www-client/vivaldi/Manifest | 3 | ||||
-rw-r--r-- | www-client/vivaldi/vivaldi-4.3.2439.71.ebuild | 203 |
2 files changed, 206 insertions, 0 deletions
diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest index 927f1f940b10..d8434a6e1b83 100644 --- a/www-client/vivaldi/Manifest +++ b/www-client/vivaldi/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-stable_4.3.2439.63-1_armhf.deb 78978500 BLAKE2B 9a4f9699e5206db086a DIST vivaldi-stable_4.3.2439.65-1_amd64.deb 88032984 BLAKE2B 91432b3968b5aae23cbcc3012f402d3d601a7a7a63aa8cc43984c23233ac648811c97f03b32b9476930bdf3f20016e6690c2f5df6e09fedfbe1180b50e32f703 SHA512 630eaddf0f53c1b19dd7c4ed1479ee2bf05da6b9013c3d2d39440d96502190175891056fa9d16dd5676c8c2650cb78e48e0667f20a64e8586dcd0a6250804e2c DIST vivaldi-stable_4.3.2439.65-1_arm64.deb 82817244 BLAKE2B 7aa494df213e8a3f7e861a4101af8a932ad23cf582208289bc304dbf36d785c5cc9b3d3135955c271f2000031fec1f4d3ec2d1537035c2a7cb94cbb49f59f6d2 SHA512 8e42ac9ff9c38e4423b2024d3d60e09e9c6d0ed9fb4c672321795161990077e358ba01dc9f390d854b07ce4d9beea4d366044fe24b87cf3c0e59b2a954be0aed DIST vivaldi-stable_4.3.2439.65-1_armhf.deb 78973180 BLAKE2B b322624caae468c1ee563b1c77f6a11a4b609f283f053ece1ee5359267f127a940b43d01940c66395796906994d59bcd098af6c464cfed9f1a3bc575a819c8c5 SHA512 d02a0b52ac8e542d1ddd83171078d782e94670dbdfb9274ecd70ed51f6d71699ad0b321593a54577f8fe44605a540e89f351d949be362e2ce7d1a0112ea12aca +DIST vivaldi-stable_4.3.2439.71-1_amd64.deb 88023372 BLAKE2B d64c8816a4a85cbe866f109511a317e6e1ead6069c83615eaaa9744962858d2f5a08d74b1d620676af5d600d68b190ab3cac4912b08a9bb0f9205a17a5910cad SHA512 ae46de75cb6290dcbfe145fe7c9f99db39ab0b39690a0041e6f8d0bf49b0242aef20e5d3da5c9100132afd992fe2ddc3ab29cd1fa1ae9e0c28f431a6b5536ba3 +DIST vivaldi-stable_4.3.2439.71-1_arm64.deb 82802804 BLAKE2B d9b0715a305ef010c9e9df15ecf7ec47fc45921eaaacbb1f2841c6efe8fa4194cb28e73e935448d48eb4aa0b8b5a90649b8e34e63c97ae077390e12947f1b97b SHA512 2e0a2f29cfa4ec38050283b3fbaaf4e60fdeab65de21244c13c4f309c41394f65e4ba44dd5bee195d49acaf7ed22c60f5519f35aeb758521d8a6c06ad08c4233 +DIST vivaldi-stable_4.3.2439.71-1_armhf.deb 78982608 BLAKE2B daa48324f4c596b55a8579819dd9f6f341bf8ea68dc0c77ffea3f0fa623740050aca0394ef7a98b7cb772fb954bf8f848e55b25cef90a579903f1f117d87e140 SHA512 6d87de2a1ba1c0089e3071aaeb99e28b9be089cf40fd9215aba5754c43b4cd3cdeafc52ab20275b75e110785447294bdaa603a185105b4a58b21e696cd31271a diff --git a/www-client/vivaldi/vivaldi-4.3.2439.71.ebuild b/www-client/vivaldi/vivaldi-4.3.2439.71.ebuild new file mode 100644 index 000000000000..010e329fcdfa --- /dev/null +++ b/www-client/vivaldi/vivaldi-4.3.2439.71.ebuild @@ -0,0 +1,203 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CHROMIUM_VERSION="94" +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/libxshmfence + 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/${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 + + [[ ${PN} = vivaldi-snapshot ]] && + dosym ${PN} /${VIVALDI_HOME}/vivaldi +} |