summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2024-06-20 23:28:28 +0100
committerJames Le Cuirot <chewi@gentoo.org>2024-06-20 23:28:28 +0100
commit6e1be4c06f7213d493fbe43befb6e3a561b5584c (patch)
tree9be9a4fbf61f13f998ac20088d3758cc5839f89d
parentgames-puzzle/sdl-jewels: Fix prefix, EAPI 8 (diff)
downloadgentoo-6e1be4c06f7213d493fbe43befb6e3a561b5584c.tar.gz
gentoo-6e1be4c06f7213d493fbe43befb6e3a561b5584c.tar.bz2
gentoo-6e1be4c06f7213d493fbe43befb6e3a561b5584c.zip
www-client/vivaldi-snapshot: Add version 6.8.3381.40
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
-rw-r--r--www-client/vivaldi-snapshot/Manifest3
-rw-r--r--www-client/vivaldi-snapshot/vivaldi-snapshot-6.8.3381.40.ebuild226
2 files changed, 229 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest
index 767eba4a9418..34c49db9d741 100644
--- a/www-client/vivaldi-snapshot/Manifest
+++ b/www-client/vivaldi-snapshot/Manifest
@@ -4,3 +4,6 @@ DIST vivaldi-snapshot_6.8.3371.4-1_armhf.deb 101975264 BLAKE2B 3979d3284353a321f
DIST vivaldi-snapshot_6.8.3381.35-1_amd64.deb 108194496 BLAKE2B 296ffcec813337e3c566bc8822687dd07904dd0ded8e37315b8cfba4a7e69d579b44df2a4cf992c8ba3c3fc2ba6aecc61ed9667286b458e7e09c06773262a972 SHA512 49820b1cf8e95ca423ae3c1babd5f4f8d1e0ac3ffe85a003c7700861b7de8c13cbfb112820740c08f32c40eefe32adb91dcc574941eccfe6dab3b612adaa886e
DIST vivaldi-snapshot_6.8.3381.35-1_arm64.deb 100806284 BLAKE2B 05dc38e3c095bd4bb70c94b417a32e879768b0abc2b2a8f168fdbccb0c809e6823b2c94a0be602deb5c7518c22643b9e374360a82335973f24d9ea26a4475be7 SHA512 5a58c199cc5513b4d1a430d950c601926292657b114eadfafdb481e0c772e735f0262b918fc783268958dd82ebff5ab110ad411b87490c71f3dda41a0e22eab3
DIST vivaldi-snapshot_6.8.3381.35-1_armhf.deb 102052936 BLAKE2B 5bef577784ba49aebb3fd76df7ab75f01bd8cdc99213eb80ca0246899410bd5cf12267cd3892596967d83e2e30003243659612e2de3133df1710680a61055948 SHA512 f6fe2106d3f41b69b96b9a29625de0ef69ac8b23d664df35bf93e4ac6af98d16cac0d059229cc9836c9d05e862f154b4f67a681f68f275d2811ccef27dbb7b0c
+DIST vivaldi-snapshot_6.8.3381.40-1_amd64.deb 108166504 BLAKE2B 33b0fc6afff684f5fba7887d1fb4a0bb5c5d32f89ef416d6af2374580b93f8d643997fc72e6840920be0f5ccad5826de127570f05603d8e94f771e284b349caf SHA512 232386dfdc50b37135315f79847179fc846641cdf949f067c3896a1622c32edd8fe433f0cfa6205b46c9773bbfd72d653c25a789e15a403676f988df3daa3243
+DIST vivaldi-snapshot_6.8.3381.40-1_arm64.deb 100799632 BLAKE2B 1d8debb993cdfd9b222f136c0d99fc0d4570ef8e481ddfa1ca9987a578f63d15fbd1f1d572ce2dc4e47fd57bf6470de93250523ae43c7b2d0e11c61d760d0c7a SHA512 2a7863ecd48f110cce19240228cdfd043c4dd50a9f59b230c0098c4c94f12f1cca585e5f16918214036ce1b59659a74a82b8d29c4428d36bfbc52c26deac0bdb
+DIST vivaldi-snapshot_6.8.3381.40-1_armhf.deb 102038960 BLAKE2B 79faabac917eedc25e72c636f6d5b62ad1ca4b53c29d76813c25112c2228c716f8f7b0f2d2b7248e549bd4f03b84d67bf45052d98cece3c123880251228d9ab7 SHA512 d90fd6e0afb037414c3195c15184f8dec166534fdf2ccebc8a35d83b4f61a4fe02965217abbdc30892ea27607a74a21426c6a4745b4aa44d51b6cff999b249df
diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-6.8.3381.40.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.8.3381.40.ebuild
new file mode 100644
index 000000000000..ccc6676d81ad
--- /dev/null
+++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.8.3381.40.ebuild
@@ -0,0 +1,226 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CHROMIUM_VERSION="126"
+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
+ 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 toolchain-funcs 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
+
+VIVALDI_BASE_URI="https://downloads.vivaldi.com/${VIVALDI_PN#vivaldi-}/${VIVALDI_PN}_${PV%_p*}-${DEB_REV}_"
+
+SRC_URI="
+ amd64? ( ${VIVALDI_BASE_URI}amd64.deb )
+ arm? ( ${VIVALDI_BASE_URI}armhf.deb )
+ arm64? ( ${VIVALDI_BASE_URI}arm64.deb )
+"
+
+S="${WORKDIR}"
+LICENSE="Vivaldi"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~arm ~arm64"
+IUSE="ffmpeg-chromium gtk proprietary-codecs qt5 qt6 widevine"
+RESTRICT="bindist mirror"
+#REQUIRED_USE="ffmpeg-chromium? ( proprietary-codecs )"
+
+RDEPEND="
+ >=app-accessibility/at-spi2-core-2.46.0:2
+ 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? (
+ !ffmpeg-chromium? ( >=media-video/ffmpeg-6.1-r1:0/58.60.60[chromium] )
+ ffmpeg-chromium? ( media-video/ffmpeg-chromium:${CHROMIUM_VERSION} )
+ )
+ qt5? (
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtwidgets:5
+ )
+ qt6? ( dev-qt/qtbase:6[gui,widgets] )
+ widevine? ( www-plugins/chrome-binary-plugins )
+"
+
+QA_PREBUILT="*"
+CONFIG_CHECK="~CPU_FREQ"
+
+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.
+ rm kmr.pak || die # No flag for Kurmanji.
+ chromium_remove_language_paks
+ popd > /dev/null || die
+
+ if use proprietary-codecs; then
+ einfo Bundled $($(tc-getSTRINGS) ${VIVALDI_HOME}/lib/libffmpeg.so | grep -m1 "^FFmpeg version ")
+ 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
+
+ if ! use qt6; then
+ rm ${VIVALDI_HOME}/libqt6_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$(usex ffmpeg-chromium .${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
+}