summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2023-03-25 22:31:31 +0000
committerJames Le Cuirot <chewi@gentoo.org>2023-03-25 22:31:31 +0000
commit3efc9f31c084426a783d1fae9afa97719c512a1f (patch)
treea849f0de91190bc77bab638f74a4d59874f8c578 /www-client
parentwww-client/vivaldi-snapshot: Drop old 5.8.2950.3 (diff)
downloadgentoo-3efc9f31c084426a783d1fae9afa97719c512a1f.tar.gz
gentoo-3efc9f31c084426a783d1fae9afa97719c512a1f.tar.bz2
gentoo-3efc9f31c084426a783d1fae9afa97719c512a1f.zip
www-client/vivaldi: Add version 5.7.2921.65
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-5.7.2921.65.ebuild216
2 files changed, 219 insertions, 0 deletions
diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest
index e9d9e1433868..3948831c3f82 100644
--- a/www-client/vivaldi/Manifest
+++ b/www-client/vivaldi/Manifest
@@ -4,3 +4,6 @@ DIST vivaldi-stable_5.7.2921.60-1_armhf.deb 90776840 BLAKE2B 85f4a981e530d6822ef
DIST vivaldi-stable_5.7.2921.63-1_amd64.deb 101584244 BLAKE2B 389b105ddf5ff3d67b74378f96b0860198df32e9ddaac5e311f8381207fb53b7ee1b81c8bfa9cdb112faee2cab6a8aa63285689d269d624a256f8a60ba190242 SHA512 5e97c596b2ac763fdd7603e6cf0965b877742740f7dec68c6718cefb065c98a34a000202e4a8b064974bffb14f728890d1f906e683f1acb19956ba3a86da0654
DIST vivaldi-stable_5.7.2921.63-1_arm64.deb 91113704 BLAKE2B d0af2f77433717c59c5ed961fafbaaa1f2fd330c77eacd4a89d62eee0cba3e0324e973795aeb9b86342f194663a0cd6d9752bd817e9f88a4c2faa0d10270ef8c SHA512 b786176ee6b45b9591a97dd5ca050f340a595711da51ca48099f76da80231017a2eb31fb00966cd2d9f9e8f840c02db425729b200f86781a2bfad86ae29d34c1
DIST vivaldi-stable_5.7.2921.63-1_armhf.deb 90783396 BLAKE2B 43ad0a44d128e74c192cad3ceec73f5ab8d7a628dd3136272ff40e8903dcafec3cb45b655615310018933e7396f1ff34a2cfff379209bb229e0c3f58e18a8e71 SHA512 687d51212c0d53e17582445ddabfd747e0b0e468bc11dc4cecabd907753b78b261308aee715f6c5128c0218b6875599bc72252ff7868c5610aa1ee1c17a589da
+DIST vivaldi-stable_5.7.2921.65-1_amd64.deb 101597600 BLAKE2B d66fb428c3141af2e3dd2be30d7ba9be222a489e1ec06bad99ad1100f847cf2e0ef3a021440333a714bfe9b58cd14b593586244c902a3c7e4e566159406b120c SHA512 562a410031cdf77448fc7fb68555fe2148e4f4371798adf15466096fcafde45ac5223bee539fb166e8f5ec53c63155f38626a71d598a2b3b318ceef8eff0f968
+DIST vivaldi-stable_5.7.2921.65-1_arm64.deb 91114828 BLAKE2B 292c7c911da896725c4d28293570278b7509f324dc3c1fdfa75a8e0792c314345df93c7c2c107c8840b577f19e94cdaccde3a94ad22528675e1caa1f34c981ce SHA512 876a46ca2b5040f48fd4d9d13e2891230cc1d04c0bbbc278d4427d53490a13697b8581154424c1328fb12d71b9bd52baa45674fe87c4edf304621a6469a3097f
+DIST vivaldi-stable_5.7.2921.65-1_armhf.deb 90794256 BLAKE2B a2ae0724660f5c08efde5f82ed9f169d6789642e20c3a7330c98c4d1c2248d8c8ff02ed9a48d0935614ecf2bde3b4f0523aad14d61eafe60df270141a04a1514 SHA512 e2aca32ec207bd0614a9b037e3b5a2af09cf75e20c75ea51035efae0cf1f0d939a9b57a5f0f5d1592b119a0469c4a976763dfc067808eb0c283b3e3dfcf8e75d
diff --git a/www-client/vivaldi/vivaldi-5.7.2921.65.ebuild b/www-client/vivaldi/vivaldi-5.7.2921.65.ebuild
new file mode 100644
index 000000000000..9c296c0f9dbd
--- /dev/null
+++ b/www-client/vivaldi/vivaldi-5.7.2921.65.ebuild
@@ -0,0 +1,216 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CHROMIUM_VERSION="106"
+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="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="*"
+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
+}