summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2024-04-26 23:25:49 +0100
committerJames Le Cuirot <chewi@gentoo.org>2024-04-26 23:25:49 +0100
commita281a30ef3811123048aae477931d3fd3f460546 (patch)
tree380d15c79aea6bede57906138f0000c0988cc84b /www-client/vivaldi
parentdev-libs/weston: Drop obsolete Python 3.9 (diff)
downloadgentoo-a281a30ef3811123048aae477931d3fd3f460546.tar.gz
gentoo-a281a30ef3811123048aae477931d3fd3f460546.tar.bz2
gentoo-a281a30ef3811123048aae477931d3fd3f460546.zip
www-client/vivaldi: Add version 6.7.3329.17
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'www-client/vivaldi')
-rw-r--r--www-client/vivaldi/Manifest3
-rw-r--r--www-client/vivaldi/vivaldi-6.7.3329.17.ebuild231
2 files changed, 234 insertions, 0 deletions
diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest
index ed9469879d1d..796322ed85a5 100644
--- a/www-client/vivaldi/Manifest
+++ b/www-client/vivaldi/Manifest
@@ -4,3 +4,6 @@ DIST vivaldi-stable_6.6.3271.57-1_armhf.deb 101984572 BLAKE2B 4bebeadd2e2426cf63
DIST vivaldi-stable_6.6.3271.61-1_amd64.deb 107518328 BLAKE2B fab00da21d1f3c4d7b0497e852774747b8f22911fdb94bc1a951265bb5b7b348803d1c6ee1f3acce18577afee2dbeabea360aacc1ef753eaa42b984758573358 SHA512 7fc2ed33b18b1cf845795ac783bb73bc9f6b8c86f22fd98e663e3f97a5c1e8b91d793763f453a1745754b421c8ff257c76c09d90ca7daeca5ea7e449607f4284
DIST vivaldi-stable_6.6.3271.61-1_arm64.deb 100650596 BLAKE2B bfb8ed6ee26531c25ec9982d51d7738d5e90220ba0df866d311f4de2431b40d7e5503366dbd109a48bb615c093ab71bffedbda8ebdbd42b3203dd2f4f4f6eed8 SHA512 9b4e75fe2be57a0e9278b05d541a30ed7c0661d967140d22eab6376a0fe226b3bd4c32f63a166e346da1e9b931a514c3ef11437d1f4227fbe3022b45a2912a32
DIST vivaldi-stable_6.6.3271.61-1_armhf.deb 102006152 BLAKE2B d71ea7a8e5f590194d043aaf41f19a59fdd9ae0c04170b105c594eff7df77514dc29a400aae6293095d279c39c2cb06da45b67ce1d0a372acf806fcb28631218 SHA512 b668bb10601cb3e0903b10826d57445ea1e9c69ac7694576a30fb4d4a97415556fa21740e50fafe07116a1f45838505bbc298ad36c71d44e9fcf8544054d2436
+DIST vivaldi-stable_6.7.3329.17-1_amd64.deb 108482112 BLAKE2B 8edbcb501815c6f357670a165d64c7ab2afd831c3e31b3f1a415e7b9e729e32cba2c50ec72abc430fa08fdbab4be5c3d93137fb42bcf7c19db2c75ea2d873416 SHA512 e66801822652fce29ed1514c6fc23011cbd899bae36682780ee45a807b7459ca7489e220d537dd4692691b665bc4a3ce3d1a9afc142114e4a24ae18cdd6fdbbc
+DIST vivaldi-stable_6.7.3329.17-1_arm64.deb 99161004 BLAKE2B 3384b4bf9c3f340193119c5828cba9548692edb22069da5efc124efe683dd3a2ec9ff83c8ce249669a5ee435ba3ccf35ce6d59933a00bc2ca181a0a0ab7a4b0f SHA512 18e1a323d5e9791380141e58e5ecb39f43dff7a488d18445f0711792c71f28728d17891ff3f4f0da7175004707e9aac099ac812d300db029dfa0940335323ebe
+DIST vivaldi-stable_6.7.3329.17-1_armhf.deb 100332728 BLAKE2B b9be3b1d740a1d25d6ed642e97c22514b643581f2c092863d1e2196cc841e13b54d68319661216d3c001fe4d825f5d3e6cddcd59d0b470047501e0d4ea2cbfa7 SHA512 84431823912139d0792f38ae31d02faf7d4f1e4ee35119940b133d11de7fb50cb99b36487bd7979c93cb03848b2162718d05fb2c844944ff9ef08e6e5d689604
diff --git a/www-client/vivaldi/vivaldi-6.7.3329.17.ebuild b/www-client/vivaldi/vivaldi-6.7.3329.17.ebuild
new file mode 100644
index 000000000000..ac289a86107d
--- /dev/null
+++ b/www-client/vivaldi/vivaldi-6.7.3329.17.ebuild
@@ -0,0 +1,231 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CHROMIUM_VERSION="124"
+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
+
+KEYWORDS="-* ~amd64 ~arm ~arm64"
+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 )
+"
+
+LICENSE="Vivaldi"
+SLOT="0"
+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"
+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.
+ 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
+
+ # Bug #928519, #928520.
+ if ! use amd64; then
+ rm ${VIVALDI_HOME}/relayproxy-linux || 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
+}