diff options
author | James Le Cuirot <chewi@gentoo.org> | 2023-08-04 09:22:04 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2023-08-04 09:22:04 +0100 |
commit | 854eca7481ba15f54134a43d17047102c58a9a94 (patch) | |
tree | 4eb00a921caf6a3ef011e6c3e1ecae3c06917030 /www-client/vivaldi | |
parent | app-crypt/rhash: Update license to 0BSD (diff) | |
download | gentoo-854eca7481ba15f54134a43d17047102c58a9a94.tar.gz gentoo-854eca7481ba15f54134a43d17047102c58a9a94.tar.bz2 gentoo-854eca7481ba15f54134a43d17047102c58a9a94.zip |
www-client/vivaldi: Add version 6.1.3035.257
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'www-client/vivaldi')
-rw-r--r-- | www-client/vivaldi/Manifest | 3 | ||||
-rw-r--r-- | www-client/vivaldi/vivaldi-6.1.3035.257.ebuild | 218 |
2 files changed, 221 insertions, 0 deletions
diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest index 46e4c6080fd8..9d1d680c0cff 100644 --- a/www-client/vivaldi/Manifest +++ b/www-client/vivaldi/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-stable_6.1.3035.111-1_armhf.deb 93653364 BLAKE2B 22f57193efdd67760e DIST vivaldi-stable_6.1.3035.204-1_amd64.deb 97876972 BLAKE2B 4a988ee1c81672f4300b5575a6a51c4ff76c4220d74c3ddd06f0203c5d78a58dfed281eb6ca0dee98d191126f41090ddec17d483e026bbc6636e94bc9b67353b SHA512 4c232056335fb3f7b12bf97aeb4eba0bbc6f44a95b81a50eda3161790495c50b51a62cb73678cf1e51b8aab1068b0b619ed9dfbded9d0f2094ac32868cbdeda4 DIST vivaldi-stable_6.1.3035.204-1_arm64.deb 93553968 BLAKE2B 4230361200d7cfb4d79cf0bee752fd2363b1720b39f73db8ccce336dc9d7156223dd0576ed09770896d84cb71d8de0f901fd799c591f1a1b5cf5486e60354795 SHA512 7eed4269dd956df52e7bdb28ae7c21222f58dd42664530828e32e1f0f0afbea46f3166d6b964ef4c2793eb86f909a42ba488474b7e0b5ac54ff5ab45daf8db86 DIST vivaldi-stable_6.1.3035.204-1_armhf.deb 93654696 BLAKE2B 35021af8455f33e7320890668f071b69c1d4820f8460b91da1ecf024f11db10a4da09c829f05e13d1be265b1c87d967b09883036cbf95eae5e989f20c6570fbe SHA512 3ff997c4d76d3ffa678158aba7aee5cb2a63a14a82c0ce09820abcb88a8aacdb046c58c325a1371e2b984329001d730ec9e1eabe781d33b7a019d84001522723 +DIST vivaldi-stable_6.1.3035.257-1_amd64.deb 97902344 BLAKE2B 9968fd28633f8a0c9d31a48480a290be57413282c9d330535a436762bed4f76aeaf5a074cb60cf6eb8d9dc61c7cb317f01ec2bcacf8da17ae222ab7bc7e9de72 SHA512 a2e4b489cff9c9d5ffcd38b5c6d7a7795d4d9b41b22a6829b3f02c715d32313dbd82e86777421b49dbb0f292df2741df6f6ef41c8cd819bc25cfc5a8af542c74 +DIST vivaldi-stable_6.1.3035.257-1_arm64.deb 93469632 BLAKE2B 03ef84bcad19afaf7a7a9f78ee2f603735f582359d86fa3ddd5ee194f0c3c23f2970abc8eff7e3b0e7094b4dcf91aec9ab0e53e388ffd3e5b189efa380d0e604 SHA512 1e01557baa8a6516106a0e895ffe644cbf8399efc323b19ce99fa6b3069abf716589f097f9af590e20d4c1a1a6fb5ac326808bf3003388cdb744a6fca057a48e +DIST vivaldi-stable_6.1.3035.257-1_armhf.deb 93650248 BLAKE2B 33de3d74811c89041d64b451d8cc6402b063838af2fc462845bf50d69707cc81eaf0a391d9434c62194401575043c8dafa6e2ba85923fe9295305d0405ace2c1 SHA512 a7e987b5e8d20f57772bc138d676ec8120dff39ea47cf91804b88e2c481d0a48d06744c185012609beec9260b113f9374588dc125db41e49b27cae63eb02f52b diff --git a/www-client/vivaldi/vivaldi-6.1.3035.257.ebuild b/www-client/vivaldi/vivaldi-6.1.3035.257.ebuild new file mode 100644 index 000000000000..0411bd537ae5 --- /dev/null +++ b/www-client/vivaldi/vivaldi-6.1.3035.257.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 +} |