summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2023-07-01 17:12:16 +0100
committerJames Le Cuirot <chewi@gentoo.org>2023-07-01 17:14:19 +0100
commit94d3590bae11675841099fd2e22f0c55d3f6e510 (patch)
tree56adebf3b19820a3254509a8dd3e75f04deb5fc5 /www-client
parentgames-util/heroic-bin: link python3 exe (diff)
downloadgentoo-94d3590bae11675841099fd2e22f0c55d3f6e510.tar.gz
gentoo-94d3590bae11675841099fd2e22f0c55d3f6e510.tar.bz2
gentoo-94d3590bae11675841099fd2e22f0c55d3f6e510.zip
www-client/vivaldi-snapshot: Add version 6.2.3062.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-6.2.3062.3.ebuild218
2 files changed, 221 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest
index 914f3ac1aae8..7ff80646cc0e 100644
--- a/www-client/vivaldi-snapshot/Manifest
+++ b/www-client/vivaldi-snapshot/Manifest
@@ -4,3 +4,6 @@ DIST vivaldi-snapshot_6.2.3054.3-1_armhf.deb 93640980 BLAKE2B 063589607b0f09a40d
DIST vivaldi-snapshot_6.2.3060.3-1_amd64.deb 97889668 BLAKE2B 221e47915b0051d5d12387a8cc869593fd206b708af42b0257a9a94ba46d87158c90fb2cb885ed296467bda965a7780c4eba8d42f98f6a30c659505c85ec85d2 SHA512 d6c4ce3d8c50c2f955d05d69c5535ecc94b0549a2f0418d0efb9f25c20869afada726d3ae58cc8ba981b36761fef173996514aa2d1e98d8590f2319995d471a6
DIST vivaldi-snapshot_6.2.3060.3-1_arm64.deb 93486932 BLAKE2B c6bae8b5dfba8007d77bcd875ba558d9f6cc4c1d2780d4c0cb1344f2382f588f1dd6fa284cd523e7b047dec59cd2094e400202b35c25733ff7599761adc2a08a SHA512 4e1cad00d23c8c12be4e3fa64582da13210de23dad697435c72d3fcad4b8f230ef4056350a8c5df329cc2a1440a07bbd383d686fc24efe83a7222f9aa1e6d668
DIST vivaldi-snapshot_6.2.3060.3-1_armhf.deb 93658140 BLAKE2B 8e6800aafcb9991c25fb5eb1e5632518cfd0d121848adc24c910f65504a3c72795202fd17cd7091408cf9add79aef79851406bef42cc607cd866e8e1ca799176 SHA512 008de33cbb15544b01984dc49beb029b5da5f35de2b0a145438cebc9150229330ab8632702cf008f8531a4c5ad1cd77b07bec417781086646b4d3f4a2d104407
+DIST vivaldi-snapshot_6.2.3062.3-1_amd64.deb 97890904 BLAKE2B 11114387184a34e50a9e25860ca7bbbc0b449916e1757b50f41e6c4c8dc0e3938e68da7f464e721b7843de7bc28863bb26cc4bf1dc536c7b622734b59250b672 SHA512 dd3a872f49f2e732298b022258d00a186c941c216f3f880690755821d7aa9def61d7c0d102b636677c37e4a547dfac7c825b26c2f0651cfe813a0a6227e6934e
+DIST vivaldi-snapshot_6.2.3062.3-1_arm64.deb 93493176 BLAKE2B b203129d555cff13e8e12725a7b24d73607be8a0ba9a9606db7b16952efb98a70611657ba61ffa28bf25c6bbc24ac78c3a10d52a7a3922eb930a27528e83244a SHA512 3c370aa8ffb89bc37f6101476ee7161157d8791833646f8c0d72b647bee55dfc8c5d14bf99b842966e491503bd14b2e57507fdd3d48351220d4cedd20095a477
+DIST vivaldi-snapshot_6.2.3062.3-1_armhf.deb 93684640 BLAKE2B 241ce63deff19fe0d27221067d95364eb103431249cfa56fbfb602a877d29e18821f2af64ae8343500355111c9f57cb24e789b59bc6cc7deeb364ad86a485e63 SHA512 ce7272081d8a7ee95e071a7be44525fcbd826ed7c9c4b3602b6204619beab1965db3ea1124b3b69f6c9bfa9efabb810862767468a14db683c72e093fc907ab16
diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-6.2.3062.3.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.2.3062.3.ebuild
new file mode 100644
index 000000000000..0411bd537ae5
--- /dev/null
+++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.2.3062.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
+}