diff options
-rw-r--r-- | www-client/vivaldi/Manifest | 4 | ||||
-rw-r--r-- | www-client/vivaldi/vivaldi-3.8.2259.40.ebuild | 206 |
2 files changed, 210 insertions, 0 deletions
diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest index 52d6a8f752cd..6aae14cac2d6 100644 --- a/www-client/vivaldi/Manifest +++ b/www-client/vivaldi/Manifest @@ -6,3 +6,7 @@ DIST vivaldi-stable_3.8.2259.37-1_amd64.deb 82408824 BLAKE2B d5384a2c5bae8235268 DIST vivaldi-stable_3.8.2259.37-1_arm64.deb 74027768 BLAKE2B 782f7d59f628695af995e6f9de180a338a9c9185bdc867d80e48286264a7f78c52b863efa407bd255b2f4b62e29a4496f1775fe554d1addfe999997920d8c1a9 SHA512 f0d87a1ea8d4d0e923b497d531ee72604be041c8d8e2deb11d6ed74906a1f0d5a799e691157bd9b4d04acb8578f27b31aec517b4b98db680e64764b3f7ad7de1 DIST vivaldi-stable_3.8.2259.37-1_armhf.deb 72625208 BLAKE2B e3c7de41d071e0a5742ee8ef51ab7906df2a3ca75ff720f562109db2240826376c9c0948b3fbc8a87ae3ce514c567efff41d5d06dca8ff9b819ac8edad7941b8 SHA512 6589504a1ae49dfc73005253a39390c88317a83013b4040c77bc4665404749a9e8e6733b9453110024395a1bc125e36b13376b4fef3184bc9b5d033b1b2a70f0 DIST vivaldi-stable_3.8.2259.37-1_i386.deb 79531084 BLAKE2B c57a5c25050df27532c8b56dc37865f705f97819234e6865ba6c8ce38f34de4f4c76d8c31a96f7ad9adcba4958578d37c2f3bbc9861d74c4326bc8263e53d8b1 SHA512 3cb633caf6545ec3c949051f577781203fb15ab68b2f910c644ff4a9568995b3af41fabaab33f4c4882e9bb38607333a33386720efe7b80b3b1fce9218e5817f +DIST vivaldi-stable_3.8.2259.40-1_amd64.deb 82413948 BLAKE2B 6fe2e50c6bd43fb6375c50c7119c9c1e3ca98bdf7304eeaa7c50ffd40836f6251fcc75e6b36b2606ba981bebefc8b762f90ef77b1f870d10f5f5895f8c6d3c17 SHA512 5a9ea989b32adf05b3fcf6d079c3c701d2b790e51c8b364a80ae23a3f44f90344600cbcace6db1adf85b14edeb4909ba7e3f8ceeb745148140c8e4a8f885b433 +DIST vivaldi-stable_3.8.2259.40-1_arm64.deb 74026148 BLAKE2B 2175c0bd6ef0dc42f54f3ff2078472b380f0b3e6ef4ba5244630467d98b8171a04ab2d7ad935c84370a5ad6c3ae0b24e3896091811c2d219c942ea92b2929e27 SHA512 bf68b98a361752d3931fed6af71617c6e9f6bd7b381039f38a75c0d3e2c6046001483e9143bb912fad686d4ff508b0b45dd44df5dbfa7f833bd032936622fae0 +DIST vivaldi-stable_3.8.2259.40-1_armhf.deb 72656120 BLAKE2B 73e2f18279abaef940dff25c854c61af4e9dbcb859990baf19b499d6d00e0d343b275984b86d9a8e512950ef0cb0495e45a8ec75957c403d08febffc6d8cdd21 SHA512 5ebfa627de4699b9fbfbd6fe0dbc8863059257f76c2311ac1e9af29b8b2264112b07114daa8d529669cd3e6b1ba81e15d8cc942e33f78e6bb33d6268b63216e3 +DIST vivaldi-stable_3.8.2259.40-1_i386.deb 79541852 BLAKE2B ce94b7b8d8049aacb1aa34fc4a8c965625b6978cc7224dd004bda457d9e1856b9d54a9a05c844e4ee06d96942da81c49a1c658eb9bf3d88b0bad7a934a645e62 SHA512 258e16f2a9c3b4b57b5060233e9524e6fc3c71bbfa6285089be13cb0b9250e0818af8da1884f94c7326ab29f5f08e73a2640185a4d7894497da725c5636ec020 diff --git a/www-client/vivaldi/vivaldi-3.8.2259.40.ebuild b/www-client/vivaldi/vivaldi-3.8.2259.40.ebuild new file mode 100644 index 000000000000..77a7917d61e5 --- /dev/null +++ b/www-client/vivaldi/vivaldi-3.8.2259.40.ebuild @@ -0,0 +1,206 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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 + +VIVALDI_BASE_URI="https://downloads.vivaldi.com/${VIVALDI_PN#vivaldi-}/${VIVALDI_PN}_${PV%_p*}-${DEB_REV}_" +SRC_URI=" + amd64? ( ${VIVALDI_BASE_URI}amd64.deb ) + arm64? ( ${VIVALDI_BASE_URI}arm64.deb ) + arm? ( ${VIVALDI_BASE_URI}armhf.deb ) + x86? ( ${VIVALDI_BASE_URI}i386.deb ) +" + +LICENSE="Vivaldi" +SLOT="0" +KEYWORDS="-* ~amd64 ~arm ~arm64" +IUSE="proprietary-codecs widevine" +RESTRICT="bindist mirror" + +RDEPEND=" + dev-libs/expat + dev-libs/glib:2 + dev-libs/nspr + dev-libs/nss + media-libs/alsa-lib + media-libs/fontconfig + media-libs/freetype + media-libs/speex + net-print/cups + sys-apps/dbus + sys-libs/libcap + x11-libs/cairo + x11-libs/gdk-pixbuf + x11-libs/gtk+:3 + x11-libs/libX11 + x11-libs/libXScrnSaver + x11-libs/libXcomposite + x11-libs/libXcursor + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXi + x11-libs/libXrandr + x11-libs/libXrender + x11-libs/libXtst + x11-libs/pango[X] + proprietary-codecs? ( media-video/ffmpeg:0/56.58.58[chromium(-)] ) + 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 ${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/${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 \ + /${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 + + [[ ${PN} = vivaldi-snapshot ]] && + dosym ${PN} /${VIVALDI_HOME}/vivaldi +} |