diff options
author | James Le Cuirot <chewi@gentoo.org> | 2022-01-22 09:38:20 +0000 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2022-01-22 09:40:29 +0000 |
commit | d7d5fe12046a37fab5fed52bb36a20bbbc4ce245 (patch) | |
tree | 4f0653897321ff54b06689bffcd63a29d2d864c4 /www-client/vivaldi-snapshot | |
parent | mail-mta/postfix: bump to 3.7_pre20220121 (diff) | |
download | gentoo-d7d5fe12046a37fab5fed52bb36a20bbbc4ce245.tar.gz gentoo-d7d5fe12046a37fab5fed52bb36a20bbbc4ce245.tar.bz2 gentoo-d7d5fe12046a37fab5fed52bb36a20bbbc4ce245.zip |
www-client/vivaldi-snapshot: Add version 5.1.2553.3
Package-Manager: Portage-3.0.30, 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-5.1.2553.3.ebuild | 204 |
2 files changed, 207 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index fea7d8e2b49e..4333c7bc440c 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_5.1.2526.3-1_armhf.deb 77962992 BLAKE2B 056921c5c6f4339b8a DIST vivaldi-snapshot_5.1.2549.3-1_amd64.deb 87293528 BLAKE2B 4306bbc4c23bbcad384df55fac19973d97e5776d57d15880b8ff6fb4734220c8cb6cd82ae995eeaf52e7e8b96643c4309d23a06cc41e8da1639096ef7f2790f0 SHA512 86eadcc2ab8bd280512cab77e1c8e80467be1360ea5a634d3762ae8ff4d0df1533d6dbba71cf1a5d886b04c2b6f420a519cf2c74a2b28771ac7f0dad43d15d2b DIST vivaldi-snapshot_5.1.2549.3-1_arm64.deb 82208632 BLAKE2B a935fba6962d87162f1314308da11a143a015ae7f9033979258e72aa0d2be4e0d2b61f83866c0d3125314383898349b6cf5ba00737b50678be6b515c1dfdf0f4 SHA512 cdf9b484ea921939170e4bbf1694504ce9786d94ff01fb093887f4be5ac8a4a4bea22c45c85b6205b6b5425b0eae32817538a14a53689f3a66a65548a2fc8243 DIST vivaldi-snapshot_5.1.2549.3-1_armhf.deb 78050960 BLAKE2B 6a697e0de2c88d7b2dcbb41f8380679abad2003bd6025e414fce531fd8b95475ff6b4faf3c3184740e1cb06767b3de74baad4e89c151256fa8e68d0d28289e13 SHA512 3570944a53e2720819fb1858db8a9ac6aeb2c8450f0183645c652e4f541453b9511fd750962f8c25c17102d89e9ae3aeb2e8ca0f7e06331649928c62b6003c56 +DIST vivaldi-snapshot_5.1.2553.3-1_amd64.deb 87312508 BLAKE2B 7612f96a28a8b47a1254e80720b1b4f89b20c5c49791365cfd13321fa3912cdf0a677246a22bfc519c2993ccefbd979d0ed8c23bd400bf3855b24c5dcaffca7f SHA512 d1eb8a26e87b1503ac0b2cd4d19236334c69c6e6832b3139eb8d8aaba5fa34fa43107069598e805dedebfc6d17ea51afadba43f601124f15284dced5eb04d39e +DIST vivaldi-snapshot_5.1.2553.3-1_arm64.deb 82228428 BLAKE2B 0268d1d554fbc5aa248c0e62014973768bef3a379e7ef0fa8c4c649640cdfa51249296b62bed03867630b8d2664762bcb0996582cf2c60e303906e77af32360a SHA512 390be88ac5bd43e79cfe5c80d432d56c10fbff06a65992d5d19a5572238b1acf8aa2802fb51e2211a119b9c0c6a99725c567dbb1a8569807352a90f3cd3080b9 +DIST vivaldi-snapshot_5.1.2553.3-1_armhf.deb 78053564 BLAKE2B e07252d38bea954e6fb0c1c11093ec3976e25bd627613b848919b128a974a8d8571e2fc8f2a3eadcf9d49038b32e3fc0a02ec68fd48b2a484f6549dfe0abd4b6 SHA512 bab25960f20f0190289f89878c040e712388a59b75da748d5f51253bfcf20baaa14a4e40d0240df2257bc347c20ef6564cb0461c56c155047f03ca4209114129 diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-5.1.2553.3.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.1.2553.3.ebuild new file mode 100644 index 000000000000..a0fb3fa96f92 --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.1.2553.3.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="96" +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 +} |