diff options
author | James Le Cuirot <chewi@gentoo.org> | 2023-04-16 21:03:42 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2023-04-16 21:08:20 +0100 |
commit | 0f35e183346d4e652768457928f9dacc4d21b02d (patch) | |
tree | b99de398bd1a1065b4f0e1f91313aafb942100ce /www-client | |
parent | net-analyzer/suricata: add 6.0.11, drop 6.0.9 (diff) | |
download | gentoo-0f35e183346d4e652768457928f9dacc4d21b02d.tar.gz gentoo-0f35e183346d4e652768457928f9dacc4d21b02d.tar.bz2 gentoo-0f35e183346d4e652768457928f9dacc4d21b02d.zip |
www-client/vivaldi-snapshot: Add version 6.0.2979.9
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'www-client')
-rw-r--r-- | www-client/vivaldi-snapshot/Manifest | 3 | ||||
-rw-r--r-- | www-client/vivaldi-snapshot/vivaldi-snapshot-6.0.2979.9.ebuild | 218 |
2 files changed, 221 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index 1d197e993236..01cfa3910ea2 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_5.8.2978.3-1_armhf.deb 92498876 BLAKE2B 6ae36b35f1e45cb46c DIST vivaldi-snapshot_6.0.2979.2-1_amd64.deb 97902224 BLAKE2B 02c5f05550f3f9c2add3403440d569a1137c6fa55a4bc6a9de54c4c32ccd82bb49527b5e4fd5596eff75a299460185d4d5ff86bc0c6ef1c7af491bc451dd13d1 SHA512 ec1b07e6d60c2e2a9405f0ea22c90e1a21ed0ec0c38d6b0052992dc9aa9efd1693e53968bc75cfb22b1f42e405a31a676fcf1b80b9e9dadbff98f4e708335b16 DIST vivaldi-snapshot_6.0.2979.2-1_arm64.deb 92698384 BLAKE2B 7b73ce9641a62b5252479afc241d5ca518fa946c6d621becc33378dd87e71917367c3a63c367618cdb08de6d2bf202a85356098dbd8db4cc6742231fc0f89aa9 SHA512 ab406b13469d94c72378d0bbe5c4d7db6b177223bd71a0a7f2f79c8f466af54901ef09308231195fbe5b92ab3c9efcf6f78937f1d7c0d16e6ff8ff95e4e14094 DIST vivaldi-snapshot_6.0.2979.2-1_armhf.deb 92524468 BLAKE2B 1982cbb3ca935db64f4bfcfb0f791f45944aea7da28d78f9c9dded7e08a7c3c352a5af1db4c41795fd12bbb9eb804fbfe0405b490a025396f5b6b855a855d8ea SHA512 488dbd86e8c01bbfd965f2a4a66018e1126c752ca1a2686aa0ab6045af185482701ed1ae5f1fe7c461e0893b63e06b4dcf5bb4cdd1ba783b995ca2705d18674b +DIST vivaldi-snapshot_6.0.2979.9-1_amd64.deb 97989492 BLAKE2B 2f3b5ad0e016dc3f3d73ee0b262433f52d02e4d9eea42a5644570fd1051438a743707520fe1fa9258f84efd03779ff730ff48cf2f5dc1f254c72c7a241070a47 SHA512 54f9f6f3756ab7a3b0e9f9d3d8d3c9e9b907ca6e562d47fffb9c3ae2fcbc8444e661a0321af647eb46eabef054559b87802dfa09dcbad1b101ffbbb412444de1 +DIST vivaldi-snapshot_6.0.2979.9-1_arm64.deb 92666420 BLAKE2B 00a2ad849943d5f306f8f39f1ae79ba1421c8122c0954c3d9b08875740f84d7bf9da1faf3fc9ed4fe170492f055acaa997f25eebb183c9ab902a71f5f97119e5 SHA512 e90ecce92e425082bc8227a22311cde9cc2d80086bcc7b1e55cd45baf50f3f2ea0a51c77e1f26a4558552bdd1971e3e23f45d78409c73a083785bfd9bae3cda0 +DIST vivaldi-snapshot_6.0.2979.9-1_armhf.deb 92502908 BLAKE2B 69b3729817558ef5b278d9a09753f198d6a8f1cf583c37d7ee65b41600f3a01890426711503237ac1fad533f5e383087075cbeb5e08c07a147922ff0e4c1d413 SHA512 7993af966b6a2eb284c806f1b5261e4c392c6cade5b005fc4c82f2cd6917fd1d5194006f4d8a35df05febaa722f98a3249be1d0a9ac4730b2f22a140d4d53ce3 diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-6.0.2979.9.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.0.2979.9.ebuild new file mode 100644 index 000000000000..0153c804d616 --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-6.0.2979.9.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="106" +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 +} |