summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2022-08-12 08:59:29 +0100
committerJames Le Cuirot <chewi@gentoo.org>2022-08-12 08:59:29 +0100
commit2f8e4a07661a3472601ff5aa34e66a57372619e0 (patch)
treedf031715f957004cb73f2059d7699deada1e3462 /www-client
parentapp-misc/uptimed: sparc stable wrt bug #864943 (diff)
downloadgentoo-2f8e4a07661a3472601ff5aa34e66a57372619e0.tar.gz
gentoo-2f8e4a07661a3472601ff5aa34e66a57372619e0.tar.bz2
gentoo-2f8e4a07661a3472601ff5aa34e66a57372619e0.zip
www-client/vivaldi-snapshot: Add version 5.4.2763.3
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'www-client')
-rw-r--r--www-client/vivaldi-snapshot/Manifest3
-rw-r--r--www-client/vivaldi-snapshot/vivaldi-snapshot-5.4.2763.3.ebuild206
2 files changed, 209 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest
index 7a8b71254b64..73bf36d80ff6 100644
--- a/www-client/vivaldi-snapshot/Manifest
+++ b/www-client/vivaldi-snapshot/Manifest
@@ -4,3 +4,6 @@ DIST vivaldi-snapshot_5.4.2753.21-1_armhf.deb 88377804 BLAKE2B ffc6c58e2e69699b5
DIST vivaldi-snapshot_5.4.2753.27-1_amd64.deb 97597432 BLAKE2B afcac0f2548f91f8de7aa50f79f85d6df878ee499a14e6cf44e76d080d42338a62c14c0935c84b9289ca1faebf219dfc1fa717f2fa56f709754d6bcec85648b9 SHA512 62bcf35fd37e879924a9ffc150a34bec1b9329212b20cfedbf9bac6773db5b59457f4a6bc69fd4c51ff32672d9e87a30c8166bb1b11a34d519bfda84283b3807
DIST vivaldi-snapshot_5.4.2753.27-1_arm64.deb 87874496 BLAKE2B 3728370232735c1d8b22e2bb2f82611ba77b9b60effaae8c8759af5a24eea0562633f300a0c24fcd44586bf73c712e2271edcbc3cee0f5eb51501a19d0421a7f SHA512 59cb375fc967dd554b3e483a3767e64cef6c8802f073dcad9bf6333f1311430ff7a1a144fa4aeb955de5b73fc3783094dc3f6aa3f5ae1dc2b57874c503dcface
DIST vivaldi-snapshot_5.4.2753.27-1_armhf.deb 88397740 BLAKE2B 82522a95b2b483d31b18a223b140ea8ac905599e6d8a7ae8803be700ccb1a8d173f0375b1dfabb9c57dc4cfd4dac118f7771e6cdf4790eadf164d3e8e6e59d92 SHA512 0cbecda93ddc87c89e5ae82c85f72678605c3d8f09b5df7b227f72f2273d488100493d6e7d77e8302b9c7bf910f3d89b8b52fa0d835ba72c4b190c6de7976b8e
+DIST vivaldi-snapshot_5.4.2763.3-1_amd64.deb 97638124 BLAKE2B 40b3516a128c5bf5dba27d06fd9431fe0c91365d022a035adb89a717f0525c62958b38834219e48043df0f70a1933caf7102c8d9c3987e7890219c52fffa865f SHA512 b723dc5e4d63ee9f4cd22e658560410edabd3e1949fb7e3cc16ab46e61738f51fd6c605be22df10844407ca89f96924012ded619ed10c6dcedde93b1fca3ecab
+DIST vivaldi-snapshot_5.4.2763.3-1_arm64.deb 87867500 BLAKE2B cd0c4e9c01fff150b368d2624fb6560e96666517fd2ef2d5107f38cd185a911a5cc0182377264222a8c3b1ed83724b759bb57677cecd350bc3fd3026bd732499 SHA512 40cf24f82416634bdebbd29d9d10de14f49ed9f53333c1a2d3cd73d5c1626a1920cf9e436661b16db07b32967457b4ed7d328c26100c28943f457398cf2945b1
+DIST vivaldi-snapshot_5.4.2763.3-1_armhf.deb 88389572 BLAKE2B dcd70264f4cf74e4da18298fa70e62c186a7bea03e05629125c730c348d91cede6d6ac05bbe7b5172510ee0bb58c5fcdfeb1f8c2e6957563d77b5ca55a65d475 SHA512 3906c1a902b06cb02ee89e9e55a010be147214c401918b924582359528096b70be081f97b22acdc3286312e9c42c9175e95a197ab5f3e134649f7b6f0db6137c
diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-5.4.2763.3.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.4.2763.3.ebuild
new file mode 100644
index 000000000000..cc815568ad94
--- /dev/null
+++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.4.2763.3.ebuild
@@ -0,0 +1,206 @@
+# 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-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]
+ || ( 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
+}