diff options
author | James Le Cuirot <chewi@gentoo.org> | 2023-06-02 22:07:01 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2023-06-02 22:07:01 +0100 |
commit | ef71a63a1466c03b7bcce9c35bc7ce6ec3456335 (patch) | |
tree | f1bbd10ffc37fd1afd7b64914f815b3789982487 /www-client/vivaldi-snapshot | |
parent | media-video/makemkv: Bump to 1.17.4, drop old 1.17.3 (diff) | |
download | gentoo-ef71a63a1466c03b7bcce9c35bc7ce6ec3456335.tar.gz gentoo-ef71a63a1466c03b7bcce9c35bc7ce6ec3456335.tar.bz2 gentoo-ef71a63a1466c03b7bcce9c35bc7ce6ec3456335.zip |
www-client/vivaldi-snapshot: Add version 6.1.3035.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-6.1.3035.3.ebuild | 218 |
2 files changed, 221 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index 29fd8cdf909d..7dae0f5826e5 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -7,3 +7,6 @@ DIST vivaldi-snapshot_6.1.3009.3-1_armhf.deb 92572700 BLAKE2B a0910b61709c817ccb DIST vivaldi-snapshot_6.1.3023.3-1_amd64.deb 98019640 BLAKE2B b7a1ee673bc2f0730af89515959d0e83cf274ff69a9c1f2c1fe43cd4db33c3409fc094f86cebc3a15b939b6e49bd4841660ff907585b34327a7591c8891742be SHA512 e332b07ce2b4b63a1a87e973b3b47004b778cbaed1e7e3f41012ed23a6fc1686c7ea4731ee73311e22b7b1cfc0ddefdd23f08e9c5e2436506f73571b1b2ad0b0 DIST vivaldi-snapshot_6.1.3023.3-1_arm64.deb 93535544 BLAKE2B 9c2492c38112ee2756c9627a8072a39bf4483961103f748aab1c27b4e755c14abf322d786bd0a791e2161a9a8c77889d3726e4e98921a577c9e7bbe8e5376ec6 SHA512 095698548776a9adc287d21080d993fec2d683433f790299e1a0047b982c0651bd19725805eeada9de074865d95e98c688387d84276d5842a7ef34cf0a8f2f3a DIST vivaldi-snapshot_6.1.3023.3-1_armhf.deb 93642376 BLAKE2B 636800843df0d5ce4051344b093bc219a37d02745398bf00284cacc62a56a0414957015a63791d9d0e29e58e5f9d2f1c10ac21551e0d24a67f777a4536f410dd SHA512 35aa1cdbd19f6cbe7cac29155d1b38633ab1ea48e7775ea45b5aef2c1ff1fa1dd9b9a71f3ab0aa831b7d82c46f179239dca0823c231b0b110e8ad69a65ee9417 +DIST vivaldi-snapshot_6.1.3035.3-1_amd64.deb 98024212 BLAKE2B 492ac02599918af86cb282b33c1118b0b32202455d0bc8299bc990bd5d257111a350fda458de1744b2ebcccedeb4ff4884e4da11e5473ec9defd65eed847d2e0 SHA512 decf441c019b91b49fc17fa5e49d503e9a2e8a0fc25bf96acc8570f0af74f44a460b4c498a225d99501074399dba8c785829dc2edc4a31f0f001df0e73c15007 +DIST vivaldi-snapshot_6.1.3035.3-1_arm64.deb 93483324 BLAKE2B 838d9eb9d6d4f8765e73d18d581898584121b99ae3747372d6a12b818c11e6de3ff95b69e6804d311d9d063006352eab9b59257c8d5a0b9ad50282cd70dd53f5 SHA512 5a01e5b022bace6b32cc70e3613ebd374bbc7d0a6d74871895d67ff3b28ede148966d866094d9621866f949f7b0cde8a139582dcffd01671422f6d92403cf60f +DIST vivaldi-snapshot_6.1.3035.3-1_armhf.deb 93678588 BLAKE2B 3254e89a873ac1a48acbd3c5f89c7384120093197163af2a01cba23e3b0eb3322f0cc2b653f377b9bda5908f49b273aca22102f450f4e5db54a26c27e6956545 SHA512 0c6fb32bb14ab62cc8714f7612cc0b54036b75755829cc3ddf1c5f004bc5c207fc8f2d5857d79e8d596131ce8339a36e316e251e9d4ece6bf95e1f45fa25bbf4 diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-6.1.3035.3.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.1.3035.3.ebuild new file mode 100644 index 000000000000..0411bd537ae5 --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.1.3035.3.ebuild @@ -0,0 +1,218 @@ +# 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 + + 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 +} |