diff options
author | James Le Cuirot <chewi@gentoo.org> | 2021-11-25 15:56:37 +0000 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2021-11-25 15:56:37 +0000 |
commit | f681e2b717274ac8e304429fbf564ad60f1423ec (patch) | |
tree | 33fc75c1ba35282052ce5570cb12560809c4854b /www-client/vivaldi-snapshot | |
parent | dev-scheme/bytestructures: change maintainer to the Gentoo Scheme Project (diff) | |
download | gentoo-f681e2b717274ac8e304429fbf564ad60f1423ec.tar.gz gentoo-f681e2b717274ac8e304429fbf564ad60f1423ec.tar.bz2 gentoo-f681e2b717274ac8e304429fbf564ad60f1423ec.zip |
www-client/vivaldi-snapshot: Add version 4.4.2493.3 and tidy symlinks
Package-Manager: Portage-3.0.28, 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.4.2493.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 239b3c753e79..0ecafab18d37 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_4.4.2488.3-1_armhf.deb 77836084 BLAKE2B 665a2fb56b1d520803 DIST vivaldi-snapshot_4.4.2490.3-1_amd64.deb 86887816 BLAKE2B b860b45b93f96901dea3272036b979b46b4a449a0b13da540f91d009694f05001f590171411f41aab83b7d71b9819ff6b88c43f5c55d3d8fd891e61eb2d04430 SHA512 cb1e10c7b26cfcbd51338c2f949127b52d6249e6461f8be01a56db973b9bff2a58604f92de968d25c9cdd33a5a5811e9ab29340e72d43a5f78f7e02d4b315f1d DIST vivaldi-snapshot_4.4.2490.3-1_arm64.deb 81509604 BLAKE2B 68663ae328b424f4ce7d63f99f95c0cd432bd425f95cea439d647e0a732f265b79be1b8b11c979fc1de14022cde3f57b3f40d34bdc2dc30e6e3c288d620b4a17 SHA512 2e541cf7a15f8a46207dd7ee88dbed5a6718a8225ada42c9972117530466d3a856c5bf231b7439f9f45eb6997b115a1b9b39e51dd804557014b5f5081b004480 DIST vivaldi-snapshot_4.4.2490.3-1_armhf.deb 77856492 BLAKE2B 9d6c61d313a9738fcc7af14ebeaa926d25f9c69cefff3d6b6629fbed424fae9e1e2d0d48a201da9d2f8a7052b5b47d74cd72d4bce879a2dd1b2788eec06abe2a SHA512 75fa97b75d78a77943fec9e7d35a516bef7054db37813e3f75bd053153b8139f22f593ca46dfcda12500d5fc3995349555086ee83f6b14995974b6d6f6df8765 +DIST vivaldi-snapshot_4.4.2493.3-1_amd64.deb 86896244 BLAKE2B 4e882c8fc01eac54bb1f0d90cee9c18c6f59b9f1b80b9794e1b85d808176f33b8aa9f73ffba0d88d8b9a8666b8393b802b268fbacb267395a95e66b2f1741e0e SHA512 8017e897ec3f299bb8417cc4dbd089350c88b829f5690bc282020b5dbd5b5025a5216513bbe3b107aa50c80be98ef73b33498afd8a5d119180b4709b04008212 +DIST vivaldi-snapshot_4.4.2493.3-1_arm64.deb 81519516 BLAKE2B 8dc719ada42181f2ad9429ce3a570aff68c7a40131fa748b68037718754181eed62de30919d5f87e9fed51d3c250d9127d4fb9c843f1b9f4a271e3a70e3142ec SHA512 857991cdf6146a375469efe68e1d31b94660591ce65475411c60e1a60c44e7223e96a6cbe1698c7b2f32d02ff9220ae20c617409a587f05cfc1462baceef572d +DIST vivaldi-snapshot_4.4.2493.3-1_armhf.deb 77836120 BLAKE2B 7e506db4748f0bc7d0ae9a473a3714b2f4e6905810de9e97a063588b515a56cb31a818339a709b480ddb39e82989ec0e8a22f1cbf977d89b7cd698293fd25e50 SHA512 a6087a44c7c85d0125aab3443da8e7fa2a3a0f3afdab6005b36371990de6a7d8f7b175d7d9b4e569926b2b396939286997bc6ac5c589bae87065b8dd9893f0fd diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-4.4.2493.3.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-4.4.2493.3.ebuild new file mode 100644 index 000000000000..0d11b47c0083 --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-4.4.2493.3.ebuild @@ -0,0 +1,204 @@ +# Copyright 1999-2021 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 +} |