summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www-client/vivaldi-snapshot/Manifest3
-rw-r--r--www-client/vivaldi-snapshot/vivaldi-snapshot-5.7.2883.3.ebuild207
2 files changed, 210 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest
index 4de6459b5e2f..69ac47dc8934 100644
--- a/www-client/vivaldi-snapshot/Manifest
+++ b/www-client/vivaldi-snapshot/Manifest
@@ -4,3 +4,6 @@ DIST vivaldi-snapshot_5.7.2876.11-1_armhf.deb 91095176 BLAKE2B 7322e5d5e17665b4a
DIST vivaldi-snapshot_5.7.2881.6-1_amd64.deb 101314176 BLAKE2B 65fdd3db27d2ed50023246f0bf3fa38c202941be8fc5f3eb5adaf364b056aaaa8220a344430276d46c1edb02e4e7178230637f8ea62e3a70c5f5bbacddbcd750 SHA512 ec083d7070a2582a5c5018e9559cdf89d81e782f154cefd7d006c5e6a20addb7500b58113411ee214b0f4fee699f7c294eb10be8bbb5632f870d2defc8ae109a
DIST vivaldi-snapshot_5.7.2881.6-1_arm64.deb 90962952 BLAKE2B 7eba4105e1ebf600a5edc7cb1ff78e9881255696b5cb90a03f2c8b457d2d8f09315de910035a5b112ca38409a0a77a8fefc958dd917303e8c42869d1590a5d7c SHA512 22aa78d2bd1501191eaddb9b5cc320397721609820db01834aefaa58f64c56d098f9e96e7a1b74c575d70c16ee5b993889eb6b58cee6af025c930a3b2d7ace42
DIST vivaldi-snapshot_5.7.2881.6-1_armhf.deb 91093100 BLAKE2B aafaf5539771af3f8239f8d3c3e713022bc7a8e0600b9cb344026f267159e9b9abc58a44329c08e970636395937e2c7aa250c0489244146ad5a3283fc9527580 SHA512 4102d84b835c537382c9dc199c72ffd77f16813498ffb3f3995e0cadfc21fb793e2d3873b61e12d0a3852433963fd979333bfaf1b1bd60bb4a26ccdc170be506
+DIST vivaldi-snapshot_5.7.2883.3-1_amd64.deb 101327184 BLAKE2B 9d190d724ad89250f0b65abf63fcf09bfdfe3c8ea0c0debfb03b5e13be0fe7a366e52f4e004ab828d3548421526ac331bdbb9b81a9ca203e621f002dc2ac66da SHA512 33336381f09b510344f97083d8a3c835a65c0e6fb92c206ef07cddd4c2f3d8a3ca235bb8dbd3620f6504323cb8c13e2eeb9cc13881c3d8ee3450b9294900c686
+DIST vivaldi-snapshot_5.7.2883.3-1_arm64.deb 90962312 BLAKE2B 23a46430cf8919e5a460ca7e8422d4b0f68ab853bdb3012dc0b9b29259f765bba0deecdb04ff3c5002e96873e333535cf1960357e08f0fe7c743eed5436747e4 SHA512 6cf1d4799b2fb582c392780b3417d6c1e71d57d90af99f9913ea63919bbe1ce2b4a9ebef1949a2f726f19b818c3319652b373171ae8db08bea41d4dafe538406
+DIST vivaldi-snapshot_5.7.2883.3-1_armhf.deb 91105528 BLAKE2B 74e01f53aa7988ccd4bf879f670142a2f3257222d69edc9ea062051f1a2d1482d1ab9bbaac52a2db6e74cc9f5b17788d60a489d11aef052ec817abb08ce48df9 SHA512 5fd65f6bfb132f1d75c28fd5086dcf9684eb8dbd6de6a616994d6b76120265ddb4ac0b3e34796e72a90990cf4018edfa3ad734b56b7eba9f8ad3d16c2fcca95c
diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-5.7.2883.3.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.7.2883.3.ebuild
new file mode 100644
index 000000000000..82e87d9746ea
--- /dev/null
+++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.7.2883.3.ebuild
@@ -0,0 +1,207 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CHROMIUM_VERSION="102"
+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
+ ur
+ 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-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]
+ || ( gui-libs/gtk:4 x11-libs/gtk+:3 )
+ 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
+}