summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2023-06-15 21:23:13 +0100
committerJames Le Cuirot <chewi@gentoo.org>2023-06-15 21:27:10 +0100
commit6cf6a9b04f5af2689675f33d3d50a8692ea8f56f (patch)
treeae3b2a6430755d91d280f333867e55a74dbaad62 /www-client
parentwww-client/chromium: beta channel bump to 115.0.5790.32 (diff)
downloadgentoo-6cf6a9b04f5af2689675f33d3d50a8692ea8f56f.tar.gz
gentoo-6cf6a9b04f5af2689675f33d3d50a8692ea8f56f.tar.bz2
gentoo-6cf6a9b04f5af2689675f33d3d50a8692ea8f56f.zip
www-client/vivaldi: Add version 6.1.3035.84
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'www-client')
-rw-r--r--www-client/vivaldi/Manifest3
-rw-r--r--www-client/vivaldi/vivaldi-6.1.3035.84.ebuild218
2 files changed, 221 insertions, 0 deletions
diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest
index 40b65a222802..3fbeeb778b80 100644
--- a/www-client/vivaldi/Manifest
+++ b/www-client/vivaldi/Manifest
@@ -7,3 +7,6 @@ DIST vivaldi-stable_6.1.3035.51-1_armhf.deb 93646512 BLAKE2B 79a09180fb6639ce488
DIST vivaldi-stable_6.1.3035.75-1_amd64.deb 97880224 BLAKE2B 045b1ba88f6195ed0fccd26d0eb20aafb4fadf43afdc7f3d8c1cfef9a3b2d216b37e7233d8f5b255ed8d633edc023aea9b380ce04d16129df7edad1799b818c9 SHA512 2500cb3b4effc178802e4e8088e04b9db7e3680fa366573c4b27c05bdbf6ec0cafaf1968471ce58fc033c28425bd58c2539a60e880e27f37502eb0ba1c0dec7a
DIST vivaldi-stable_6.1.3035.75-1_arm64.deb 93526284 BLAKE2B cb9d13305da4f0ecb2c9e181c440b63a34f4a8dd839653bfbc1995c1e25cda0fa767fb91d1a87d5741448785946b2f1c757472c9bd01f4b52f8f345f50211ac0 SHA512 623a15457b42a6d95f415f4029bb2e89b092394f11c7e2fb181eeb89b74cef88bb489f81f944a1279f65c41e725dab6d6c55d1dbb297f8a4c5ec2d69d761e52a
DIST vivaldi-stable_6.1.3035.75-1_armhf.deb 93649516 BLAKE2B fae9435d309264680592f4d3032a2feb69c2e2e080a2320c54a2ceab5eddd0b4326010bd13c8fde553ffe9de4e06a0c8aebce09e452a6b9b85f688e0bc3b8fb1 SHA512 3330e7e6feb4a50209855b601106d5da2cdc7a22ab76a713f84354a30320dc8f9a1db13d854e20707c8715c30061d88563a1d78c0c4b02341621e7e2c053cc44
+DIST vivaldi-stable_6.1.3035.84-1_amd64.deb 97891984 BLAKE2B 44aee55879e514d4055881a062c8768d7494acf6d445d0700b836933fbeddf2a3b6ca891f81b320d62effedb43b3677ab9d5153fda3bfb5383cd21cc6fd515c4 SHA512 a8cc54903f662c0c40bae35ffbffd3c9e290127eba1a2e782794b92dd5d152573592aaf29b9878f47b57bc76d2f9cb32af2f02dfac96e678e3a63ff5350e6cde
+DIST vivaldi-stable_6.1.3035.84-1_arm64.deb 93488764 BLAKE2B d740fe5809cabf2b4e3508d582deae3337ac7ca4bf7e91239c683b3a9aa90052e149e320f716cab66b7d3b161a458ef284e4f5b61c40100db31e263876badbcc SHA512 bcd6eb7daba74eda941882f0b8d1daec4e2894045e0281017a52d2759e2907ddfadd37912b864e4e6a9b561b1cd0e6872711e7075277fc4ae320c523300afb1a
+DIST vivaldi-stable_6.1.3035.84-1_armhf.deb 93665740 BLAKE2B ee41cb5842db67c9da9bf0000133cbc407898bc3c2e52cf24373166ea98d6119d0d13e038e3bf65202ce2d8f534115d4c83e7618b087651040aac8f296600131 SHA512 e36959743cab60f759aba861fbf0a8cb0bc2aa9ca8ecb7e72a029c62c98de5cd4e1344bf88a929f8d261e2dd470ae9f9e9e2d103e0f5a1c31387529b0107831a
diff --git a/www-client/vivaldi/vivaldi-6.1.3035.84.ebuild b/www-client/vivaldi/vivaldi-6.1.3035.84.ebuild
new file mode 100644
index 000000000000..0411bd537ae5
--- /dev/null
+++ b/www-client/vivaldi/vivaldi-6.1.3035.84.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
+}