commit: a61074c4f7dea8e6dffc1c3584073ab5e8a9cd6d Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> AuthorDate: Wed Nov 10 22:11:15 2021 +0000 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> CommitDate: Wed Nov 10 22:11:15 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a61074c4
www-client/vivaldi: Add version 4.3.2439.65 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org> www-client/vivaldi/Manifest | 3 + www-client/vivaldi/vivaldi-4.3.2439.65.ebuild | 203 ++++++++++++++++++++++++++ 2 files changed, 206 insertions(+) diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest index 09dc9e0b0d4..aaa9b72cd9f 100644 --- a/www-client/vivaldi/Manifest +++ b/www-client/vivaldi/Manifest @@ -5,3 +5,6 @@ DIST vivaldi-stable_3.7.2218.58-1_i386.deb 76040556 BLAKE2B 4710993024a401a8b9e2 DIST vivaldi-stable_4.3.2439.63-1_amd64.deb 88054948 BLAKE2B 0a5278cc5f0157336cb9963f70c98285637424248608de082c95f62b0aa23fc1260a8d13fb2cd5d49a7144198a308f65f4a4adc8e8a087b7c23fe8824a6f6008 SHA512 4315f40a1ebc4fda12499e43115c62c5e902f4620c870fc922d628bb1b536a394246f08ae4fa92db979b82fa2bf67d79ccf7dcc2a8d3bab0b7e05c4f77ebbe9d DIST vivaldi-stable_4.3.2439.63-1_arm64.deb 82839452 BLAKE2B d139dabf0c6cccd397fa94f1854793f147120962ec7bbefb7e91ef7aabe904cc2e052ab634ecbffe87da6e576f8dbd1c52c7d49b0d36d69af8f3e1286e23b9d1 SHA512 7b178d7ab7550a3d7bf504ba69894982f499d13626e3e16d6b7348171f4dfe2bf81982054c4b91ae0f31ec4f1d32df25eae3cc2454a42c0b9948dfc668c47a3e DIST vivaldi-stable_4.3.2439.63-1_armhf.deb 78978500 BLAKE2B 9a4f9699e5206db086a3195b673171b228e46f1657823b1f84af0ff3c1a74f66a237972d35fc8f11c588073395ea42bdbe7953ea43a658ce72404ccd39b23da5 SHA512 f02c4fefd556c254daa6cbcd7caaa7526ee19f10b2d5a5a439ed9ee3e16ef609bfa9544e344a65dd5afd80e55e75f7d5bb4d6c032bf00a27ef0f61d3582fa631 +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 diff --git a/www-client/vivaldi/vivaldi-4.3.2439.65.ebuild b/www-client/vivaldi/vivaldi-4.3.2439.65.ebuild new file mode 100644 index 00000000000..010e329fcdf --- /dev/null +++ b/www-client/vivaldi/vivaldi-4.3.2439.65.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 +}