diff options
author | James Le Cuirot <chewi@gentoo.org> | 2021-07-31 10:01:49 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2021-07-31 10:01:49 +0100 |
commit | 228449d6f0e59d6c50403822f9824e2df1a8b34a (patch) | |
tree | 8372eee21aa4d7414fb97d07b3f0d768e0642db6 /www-client/vivaldi-snapshot | |
parent | dev-ruby/tzinfo: add 1.2.9 (diff) | |
download | gentoo-228449d6f0e59d6c50403822f9824e2df1a8b34a.tar.gz gentoo-228449d6f0e59d6c50403822f9824e2df1a8b34a.tar.bz2 gentoo-228449d6f0e59d6c50403822f9824e2df1a8b34a.zip |
www-client/vivaldi-snapshot: Add version 4.1.2369.10
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'www-client/vivaldi-snapshot')
-rw-r--r-- | www-client/vivaldi-snapshot/Manifest | 3 | ||||
-rw-r--r-- | www-client/vivaldi-snapshot/vivaldi-snapshot-4.1.2369.10.ebuild | 205 |
2 files changed, 208 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index 6cd57a196a59..09a524a2e64e 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_4.1.2358.15-1_armhf.deb 76520492 BLAKE2B bc96e33a3b9395402 DIST vivaldi-snapshot_4.1.2367.3-1_amd64.deb 85157012 BLAKE2B 9d857c360a9e9edc41dab9629f6b1b378852767b73409657f6d23a53501f00b7e73c66152c3ecbbb72585c65e47250c7bf505582a0c784fee0ff85efd1022dc9 SHA512 277d77414a2bb6ee8656390d8769fcc6c99d3247be22436fd78b0d370ba0b368dbbe24e7f5cd7da05fa4f076ae5ab526de371aff7a3299a534cbd85f76dbc60a DIST vivaldi-snapshot_4.1.2367.3-1_arm64.deb 80674668 BLAKE2B b28f6eba0d5cfec734435e493e8ec348974d9fb4efb9533ce6c4283223a8bc46d1a0b8772692a93f6dd1521744a30ad25edbf6f0bfab967a66fced915128216c SHA512 27244952e5ebc0271a9d05d2a792d90840ba59a5920c6767aab94459895c71cbefc721b582b81616021db73d7855634d0e01c6164719251375638774eb920547 DIST vivaldi-snapshot_4.1.2367.3-1_armhf.deb 76537504 BLAKE2B 61e624822b2a0b54529e2213690fbc5c5c17c15e8fd57a8549466e016f11e42806796be1212da103e05d4327aa9a6a704e4adce75897f0274f7e0e1711885e97 SHA512 b5a62e6b6dfe1b7242dfb860ba8ba2cde188b7bbac1f22ee02e439030eabecfe5977d441cd6310d087d8ef301025cdae3f30285bed962289ef2b1bce038955dc +DIST vivaldi-snapshot_4.1.2369.10-1_amd64.deb 84518232 BLAKE2B fd9d08f4fcc4bcd41890c37cbd9873e0fe666633c12c5286331b406a74b55ba222ed0343700a21bedb7f25e4f9182bbebefbcc11c6b8285eebbac2c78e231f8c SHA512 2b946221863a7b2b7514e83be8e639482135ddb4a04c2cc3c8eda37fa196ccfc16007c12f1d43541d70fea0660cb10268c1d358db2e62575521cd39e525e7b79 +DIST vivaldi-snapshot_4.1.2369.10-1_arm64.deb 80662848 BLAKE2B b3ad7300ba690b69ca5eae5e45599346b0197b694d93fa657754312c4e6a91089fe5b962dee7b1ec12d5fa953273333cc52827724f4fd6961d5f7de8d39230e3 SHA512 8774cca3850a7fd77da594d9015342cb3a86016a6674b630b2b397b6e4e472486e3d97acbc1932d4da815f6dc442a4cb3b11f2edf64377e715a9dbca9a1a68ab +DIST vivaldi-snapshot_4.1.2369.10-1_armhf.deb 76550964 BLAKE2B 54501659c49199b928ad1e12f72fd1b7646be9766718cf35b6d4c36fbe3c68b692e707343e34f46004ca0b692c768248a2294602db67d7f2b2db6ee979311d3c SHA512 8bdc52e2edc084ae6c2316d9bc3727f47f46ef509c0176df439b7e9ef9ef8a93b1c22b0a7aa2f956feedc5399636638b528d9a369984717ab1dffce9f7d455b4 diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-4.1.2369.10.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-4.1.2369.10.ebuild new file mode 100644 index 000000000000..c2409d01a97f --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-4.1.2369.10.ebuild @@ -0,0 +1,205 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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=" + dev-libs/expat + dev-libs/glib:2 + dev-libs/nspr + dev-libs/nss + media-libs/alsa-lib + media-libs/fontconfig + media-libs/freetype + media-libs/speex + net-print/cups + sys-apps/dbus + sys-libs/libcap + x11-libs/cairo + x11-libs/gdk-pixbuf + x11-libs/gtk+:3 + x11-libs/libX11 + x11-libs/libXScrnSaver + x11-libs/libXcomposite + x11-libs/libXcursor + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXi + x11-libs/libXrandr + x11-libs/libXrender + x11-libs/libXtst + x11-libs/pango[X] + proprietary-codecs? ( media-video/ffmpeg:0/56.58.58[chromium(-)] ) + 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 ${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 \ + /${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 +} |