diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-02-18 02:09:39 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-02-18 02:09:39 +0000 |
commit | 517343fddd94e620e94be97ae22eca4b57dc7625 (patch) | |
tree | 70b62f663c2d6f154c8808e55e827c69509918bd /www-client/vivaldi | |
parent | 6554f04b9a44e1ffe5d2f614201c11deed2703bd (diff) |
gentoo auto-resync : 18:02:2023 - 02:09:39
Diffstat (limited to 'www-client/vivaldi')
-rw-r--r-- | www-client/vivaldi/Manifest | 4 | ||||
-rw-r--r-- | www-client/vivaldi/vivaldi-5.7.2921.53.ebuild | 216 |
2 files changed, 220 insertions, 0 deletions
diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest index 35797f1603e1..853ba46bff0f 100644 --- a/www-client/vivaldi/Manifest +++ b/www-client/vivaldi/Manifest @@ -1,5 +1,9 @@ DIST vivaldi-stable_5.6.2867.62-1_amd64.deb 101307028 BLAKE2B a1ffc864c3af6ddd0ea75d8dc9b05ec6992a6e42ddefb3b33d38a88acdc172dcc94eb2b2c21e444cf61dbe4afb12c3b2d9d8b650c806c1e021878196a95c8304 SHA512 21ee85f953a5ee3549eaa3ffc953df056799118239ef4e5c66977ebd7cc933bf40e22356313b8a1a2042f9b8d2b6c17f10bc4e0be34d92d16b1f957c50bc6dd2 DIST vivaldi-stable_5.6.2867.62-1_arm64.deb 90983876 BLAKE2B bcfa8915e9950ec917c43e9c24cfaea98b4633f10e2b99947f8571925505fe54769a99bf43edd4bfeef5839b105701ee5b4abeb45ceb3d8b302f4573b283734c SHA512 7aa69c536aaaeab1e0030f390a8c2cf02d122f8086509cd496da8906f9e9681fd964a57cdbb3821c36ff5f8d6f71adf4b12115b8a140b49e9d760b04068db504 DIST vivaldi-stable_5.6.2867.62-1_armhf.deb 91079228 BLAKE2B 9c9f5f49bc46ff251a5fd276449f4513bb3371fa14a6007a14da9df4018c6fe55ba8f9113e5e9e263db4502488bea1eabf5d88a03e8afd6e30a4f0d4bcf666f2 SHA512 8cdfdc8e3de4c8b7c265ac6d6ba8e624e7d5dd7c888b232552d405b271098b940866a8cd195c99cd745cb19489eb3bb6966eea81206a405c43db98b3ac478994 +DIST vivaldi-stable_5.7.2921.53-1_amd64.deb 101595952 BLAKE2B 66e47e1fc5e0c702b8475043ce4a926a25a2e75fe63c2b8fd39f4538c6656d33c26b934a27db9895f95cb2c14d796f3ad6b0c83e49c212a15d1ad82deb918c6e SHA512 cd3b2ae462be4e90f70b4f42d2b60a1843e5b53a77b0c94bee225bfffa64d19fa751dcfb27ee3b807967f113cadac9af527a2835946155e5f55fae213519c658 +DIST vivaldi-stable_5.7.2921.53-1_arm64.deb 91093460 BLAKE2B d880d8ee4dfd7e6d4545a8775519f50c78ee0d1c99267d2e04be86dfe569175b67bd6189d8be9baafd00703a0e7a0843d456cbc6c121a6f56e235eec4b6133ee SHA512 7b78cd1210494e6afe53304cc76c5db4e45d8b23b0a2ec40aaac42e288795b9fc5f55f9a165fbb56743560b51a996115f174814cac9e5270b7b2fe790cc9a539 +DIST vivaldi-stable_5.7.2921.53-1_armhf.deb 90776036 BLAKE2B 104c557aa7cc41cce1c7ed5dfa1f0f1db0bd6a2e49fbe4e8248fa3a5ddc552fced37b1aec167d4fa229aa66a42e01597c2ab169787d35577053ee6759246dbfe SHA512 048fba21a8d31ce33de4cb75f0e54053f89476a3eeaf1380be600baba656e8917574ec62fb5ff3e20cb0fe860fb961a029b57c72e82ee6fca42a7d9bdf250e74 EBUILD vivaldi-5.6.2867.62-r1.ebuild 3825 BLAKE2B d5d7133ebbadcffdc581b6266e06dfc2984b77488a6408821f3b11891dafe7dfc51fe26f828b1db6529390374964360d6664a52aef77c1211f7c580d8bb9b29a SHA512 47ca442cad70af36b7d8b4f7bd687bbb17db44b5fb7d2afa9acb202d54a665fe35b748ac6ade531b8d53760f14865c4bf5808568be50016c49bdfa4003729f5e +EBUILD vivaldi-5.7.2921.53.ebuild 3826 BLAKE2B 4aa5296c9d134bc28547c312872349a647db81dc6ff54fbc0311c537285cb318670fb59f4a4c75623cf612978077b0219aaa4706e11509d4188b69d4f702c635 SHA512 8aa5f674c1c6ee3a87bf3d6e1232d635fb3d740b56a9872cdea22fd2f0841d761d82d1ebc04c7e325b560b99bb3ab05bf6eb2b5599c72289ea2976af725e0921 MISC metadata.xml 485 BLAKE2B 2be960ebfbbc2eefeb14ad0e387c02d90fd29adf4dcc77db0413f3c89087cbffac1ce538279d33c9b901cb67ad437c981d230b8f0bed1e98ad60ad049865e716 SHA512 62feb46aa9afe538c9ccaf687ba199779a5ce9231530296db7dcf38149ad2097d0418a7a43dfc9fb4fcdf679cb1a9b66ac550bea2b8927bafaec8fefa9b0d8c8 diff --git a/www-client/vivaldi/vivaldi-5.7.2921.53.ebuild b/www-client/vivaldi/vivaldi-5.7.2921.53.ebuild new file mode 100644 index 000000000000..9c296c0f9dbd --- /dev/null +++ b/www-client/vivaldi/vivaldi-5.7.2921.53.ebuild @@ -0,0 +1,216 @@ +# 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 + 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 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="*" +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 +} |