diff options
author | James Le Cuirot <chewi@gentoo.org> | 2024-04-21 21:37:00 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2024-04-21 21:37:00 +0100 |
commit | 5016689ca8e5ac2bf7b7afb70a877e65bbaea71d (patch) | |
tree | 15326f17ce53d4b69a4d57cbbfb67c363cc94472 /www-client | |
parent | www-client/vivaldi-snapshot: Drop old 6.6.3291.3 (diff) | |
download | gentoo-5016689ca8e5ac2bf7b7afb70a877e65bbaea71d.tar.gz gentoo-5016689ca8e5ac2bf7b7afb70a877e65bbaea71d.tar.bz2 gentoo-5016689ca8e5ac2bf7b7afb70a877e65bbaea71d.zip |
www-client/vivaldi: Add version 6.6.3271.61
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'www-client')
-rw-r--r-- | www-client/vivaldi/Manifest | 3 | ||||
-rw-r--r-- | www-client/vivaldi/vivaldi-6.6.3271.61.ebuild | 231 |
2 files changed, 234 insertions, 0 deletions
diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest index db178468db39..cbec9829cc40 100644 --- a/www-client/vivaldi/Manifest +++ b/www-client/vivaldi/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-stable_6.6.3271.55-1_armhf.deb 101974500 BLAKE2B 03b5476ab46d986dff DIST vivaldi-stable_6.6.3271.57-1_amd64.deb 107543568 BLAKE2B f1b7675dfe91adf613aa18c1937f24f64716da0abc118f5ebd92df59dc3a00b71b3548d0fc9b37af4eb0984122f8004767fbeadbd03eb4732fd8fb3d14d8e0ea SHA512 7519bf0687244e2345fe55f3924a972999e281b8ce3ad7ea00deef487763a0cecc514e58a1cad5feab5f2e2c42cef3f3bb67377339bf5ab5ff9133f590933582 DIST vivaldi-stable_6.6.3271.57-1_arm64.deb 100640076 BLAKE2B 9f594af5634c0805548b7dab441c5c912b9b1142c4efcf377b11fa7cef8fab4164b4efb473d24976df445797c133f6e10d2ff9f67172af7e7e36aeba073a5dc7 SHA512 53bfa79204167cdf99da0256d0d44423b6b89f10c7e544b42a388d87aa1da043ac852eaf2be5c8b1490ef0a17af19a6d3a25918066442cfab1359c64beb5d428 DIST vivaldi-stable_6.6.3271.57-1_armhf.deb 101984572 BLAKE2B 4bebeadd2e2426cf631f4d257249b58596b39e8f46c9398149628674ebfa8e959027feee83b9496d1a33413dd7bed0d7c418dc171beafbddf6ac2c7f598add59 SHA512 7a155740befc574b5f050b979e23a49ce7b3bc7c2ed12c1b0667076010abd8afa217524b6844e435047d71b83b1ccbf67cf9b7153ea8bd5e4342ff180ea3d3a1 +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 diff --git a/www-client/vivaldi/vivaldi-6.6.3271.61.ebuild b/www-client/vivaldi/vivaldi-6.6.3271.61.ebuild new file mode 100644 index 000000000000..6543536228ed --- /dev/null +++ b/www-client/vivaldi/vivaldi-6.6.3271.61.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="121" +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 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. + 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 +} |