diff options
-rw-r--r-- | www-client/vivaldi-snapshot/Manifest | 3 | ||||
-rw-r--r-- | www-client/vivaldi-snapshot/vivaldi-snapshot-5.1.2526.3.ebuild | 204 |
2 files changed, 207 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index 2b2ea5b0d434..c3a8ddffcbec 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -4,3 +4,6 @@ DIST vivaldi-snapshot_5.0.2497.10-1_armhf.deb 77922892 BLAKE2B cf00ec524cab4f0bd DIST vivaldi-snapshot_5.1.2519.3-1_amd64.deb 86965208 BLAKE2B 77bdb7d409cc8164df4de0a550751aa73810964b2cac3ebee97de8ec1a2c9ce6de81f8210462e5e6dfdf06e47550b74e7200f4a7a8b9ea5b84071dfa939c196e SHA512 7b49a5077a79bab6b89dcd4be8a7427b48b6e93aa1032a8531365d220f138c392d5c22096b3bfff0ab07b5f067624236c8f302e565ef5b8236698268e6e9eae6 DIST vivaldi-snapshot_5.1.2519.3-1_arm64.deb 81591692 BLAKE2B 29fe0b9c69285f3b9201847dad7230317a2f2438791a3442165d93a724b384bac44fa3e9c0b7ccf87a0e14b1c8c49bf5d0ffbe280cc3a7d9d7a1f6d1a17025bd SHA512 0a4614e109c878b2a15ec88bb288e81172ab503df697b25af0ff1bef1de1a96688f26eb632a033333d47e5b6d375fbbea17010e8ba249a0ab84c08620cadd680 DIST vivaldi-snapshot_5.1.2519.3-1_armhf.deb 77949432 BLAKE2B 30d3d6ffcef1f886b9233ea81abccee771e40bd0bc2f2e6aa9ec6b39b179579e1043d904b479410f5de5eb394489daaaa1240375461d5d711292feffbcdb3f3b SHA512 1ae25619b097253ee8446ba541794acb31fe13a45c1469508ce73a6a37488be24eac499baacfa4d58c035ae44b580939e2f5a00485fd860185d1aadcfd6d0779 +DIST vivaldi-snapshot_5.1.2526.3-1_amd64.deb 86963432 BLAKE2B 76f775cdeb70e46eb951ff2994fc490f9e1f75d38d0d2a218567997eb9f8a68c10cf8b73efbb73313fc617896de72115bde135582345f0526e83eb2ed384cff0 SHA512 10429fd3f8a7c77688d4643a5df183b7e9537ee6f30b15b55887d3603f20d5f8d92925d9cc7db1d1d86134da48045c41751a9cd4fa1e1d6338942b6186277030 +DIST vivaldi-snapshot_5.1.2526.3-1_arm64.deb 81605228 BLAKE2B e96b15787933ca7e3700eff60b7324f01de20ff42e9061c195470e1bf4a47d1e6a7515eb209d047ff1e5d76cb5326e7da5407fef8f123b0dd1fafaed36a526f6 SHA512 89e60cbe45c1237c4998787c88516eeebaeeabbea2db6b693a2f589f5a874ea51b9b6b834bd243bd5f4824b4a3fbe0e0dc76b91f82f9cd8c61f363b7b2dba71f +DIST vivaldi-snapshot_5.1.2526.3-1_armhf.deb 77962992 BLAKE2B 056921c5c6f4339b8a207738851dd8853c718247366edddd8099706abb06cfe6b7621afb23571d5840c1372e98a4be6e5efa91a7c4b4972cfdc67e1d93d4cdad SHA512 658f88dc5e85cb1409ca8b6da283d27c06c5538b19895656e065022375e4a82244c09b076657001a5a96c353df376847f82ab50952d3c3c0526338834461e55d diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-5.1.2526.3.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.1.2526.3.ebuild new file mode 100644 index 000000000000..0d11b47c0083 --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.1.2526.3.ebuild @@ -0,0 +1,204 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CHROMIUM_VERSION="96" +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 + 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="proprietary-codecs widevine" +RESTRICT="bindist mirror" + +RDEPEND=" + app-accessibility/at-spi2-atk:2 + app-accessibility/at-spi2-core:2 + 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] + proprietary-codecs? ( media-video/ffmpeg-chromium:${CHROMIUM_VERSION} ) + 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 + + 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 +} |