diff options
author | James Le Cuirot <chewi@gentoo.org> | 2023-07-23 22:37:29 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2023-07-23 22:44:52 +0100 |
commit | b4302136624c25976401ab4bae67784122d01a6c (patch) | |
tree | 97d9329b59b86723bab63bf81b0e31022e010af8 /www-client | |
parent | app-text/zathura-pdf-poppler: Stabilize 0.3.1-r1 arm, #909791 (diff) | |
download | gentoo-b4302136624c25976401ab4bae67784122d01a6c.tar.gz gentoo-b4302136624c25976401ab4bae67784122d01a6c.tar.bz2 gentoo-b4302136624c25976401ab4bae67784122d01a6c.zip |
www-client/vivaldi-snapshot: Add version 6.2.3077.3
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'www-client')
-rw-r--r-- | www-client/vivaldi-snapshot/Manifest | 3 | ||||
-rw-r--r-- | www-client/vivaldi-snapshot/vivaldi-snapshot-6.2.3077.3.ebuild | 222 |
2 files changed, 225 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index 6d8aec48b3e6..31fed5c9ca08 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_6.2.3062.3-1_armhf.deb 93684640 BLAKE2B 241ce63deff19fe0d2 DIST vivaldi-snapshot_6.2.3070.3-1_amd64.deb 102057064 BLAKE2B 83c6eb5f15a9995a73e6b19e7993605bf4ae3862383218cd8aa99e5bbe09dfa3c6ecdcd4652efbb3d6cae645e5afb014f853c5527c5ac04bdae5a348caf196ff SHA512 8de7d45e464ab8e56eb6578e0ad4bec9986472baa0f2995228713b3364ca5faaaa92c7e908bddb93d8c6cce5f99b1b9b795f7175d18b8540411f47a53079c8de DIST vivaldi-snapshot_6.2.3070.3-1_arm64.deb 96952400 BLAKE2B c28d4aecececb7256ae451bb2c94b56adfcef663fcca0c249871f58d259bebd94be13839c5791d945e4c3d11ee4e9b190929d28bc7e2a58cdbd0bab4584ea239 SHA512 7a6d4266612fb5424bb6b7765bc3fbffc376d4b88b306cdcf10cbf162a449e9c28fae56171604553cd9622eeff47ce7e5c3ebae609362456fcfa42245e7c4ca7 DIST vivaldi-snapshot_6.2.3070.3-1_armhf.deb 97512472 BLAKE2B 6cc0bf0e559f4751c6f9e6886d6da082bff1dee95b69db9afcdd0d5ebb8a325e9a2b3f7c2c94bed967a20f5aced9b969a22edbe9cad0c9cca2de9def85417626 SHA512 e6821b6d0c8ad01050b1fb2ad8753448e5ae9783d73bd93d2b1cf6467f5a3052eb72970c839c70a0a060afedca5b68e7902d1651fe84c267410c5164a1a91650 +DIST vivaldi-snapshot_6.2.3077.3-1_amd64.deb 102087520 BLAKE2B a7eb0384e502933a5e0bc402325599b2f035c5b05c0697394dd2f3b7fb96373af78847fb4ac68efcf282d9f0193e7564b3317bce9dae36a6c2bd806b07348bc7 SHA512 1f1f51ce0efc083999e47dca84ed836381ffafd10b648b36108356656d6b7ba368c614af0da3eeec633a18e3d5a350adf684a2611ed3fa1e6065b328237d1912 +DIST vivaldi-snapshot_6.2.3077.3-1_arm64.deb 96982292 BLAKE2B 9e78a0326e7698bf1fd50e18691301e59102f148e06fa82e734e5e2436d69bc13cbf5839e0141fd7da7a8423df7a7150526507d4743faa1499ab1ba8af74d4ac SHA512 a83e341fe765cd1b0d6434f5abd7fc5ad2616e9785609fbd92835cd71cb5f959bfcf07d826e3c5935c8fa83cc36070579946cd7a3894bad8d2d755a4d1b40a70 +DIST vivaldi-snapshot_6.2.3077.3-1_armhf.deb 97523048 BLAKE2B 4ecf48c5e49dfa5eac58ca25dfb9aa6507a05baa50b19d34f4bbe5090a09df3c2ecca89eeea2c333df02164f706a1882c45e4896720e412bc7b11ef3756c2a31 SHA512 d50f40e87984e9de57fdfb765a38e35aa2dca8e2ddeb2d5624497bd078e39e169550df0aaa66a9921d46497a27dcba5765305a0c88fb8beea1306aab4b44e7d7 diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-6.2.3077.3.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.2.3077.3.ebuild new file mode 100644 index 000000000000..d63e17d4cb01 --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.2.3077.3.ebuild @@ -0,0 +1,222 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CHROMIUM_VERSION="114" +CHROMIUM_LANGS=" + af + am + ar + az + be + bg + bn + ca + ca-valencia + 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 + ur + vi + zh-CN + zh-TW +" + +inherit chromium-2 desktop linux-info 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="gtk proprietary-codecs qt5 widevine" +RESTRICT="bindist mirror" + +RDEPEND=" + || ( + >=app-accessibility/at-spi2-core-2.46.0:2 + ( app-accessibility/at-spi2-atk 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] + gtk? ( gui-libs/gtk:4 x11-libs/gtk+:3 ) + proprietary-codecs? ( media-video/ffmpeg-chromium:${CHROMIUM_VERSION} ) + qt5? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtwidgets:5 + ) + widevine? ( www-plugins/chrome-binary-plugins ) +" + +QA_PREBUILT="*" +CONFIG_CHECK="~CPU_FREQ" +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 + + if ! use qt5; then + rm ${VIVALDI_HOME}/libqt5_shim.so || die + fi + + if ! false; then # use qt6; then (TODO) + rm ${VIVALDI_HOME}/libqt6_shim.so || 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 +} |