diff options
author | James Le Cuirot <chewi@gentoo.org> | 2021-06-04 09:19:20 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2021-06-04 09:40:55 +0100 |
commit | 1e47c12ef870eb90cb098e27d943154f898f6a8c (patch) | |
tree | 9fc71980dd15e20f3ae6552c21777d73b7a8940d /www-client/vivaldi-snapshot | |
parent | dev-ruby/cliver: add missing test dependency (diff) | |
download | gentoo-1e47c12ef870eb90cb098e27d943154f898f6a8c.tar.gz gentoo-1e47c12ef870eb90cb098e27d943154f898f6a8c.tar.bz2 gentoo-1e47c12ef870eb90cb098e27d943154f898f6a8c.zip |
www-client/vivaldi-snapshot: Add version 4.0.2312.7
Package-Manager: Portage-3.0.19, Repoman-3.0.3
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'www-client/vivaldi-snapshot')
-rw-r--r-- | www-client/vivaldi-snapshot/Manifest | 3 | ||||
-rw-r--r-- | www-client/vivaldi-snapshot/vivaldi-snapshot-4.0.2312.7.ebuild | 205 |
2 files changed, 208 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index 4945a5577175..ed29bd180eb2 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -5,3 +5,6 @@ DIST vivaldi-snapshot_3.9.2289.3-1_i386.deb 82584664 BLAKE2B f5447df81bf87b128cf DIST vivaldi-snapshot_4.0.2312.3-1_amd64.deb 84153620 BLAKE2B 689ac4debfc54e8d3512ddaecd7b785d51aebcac77b72cde33770a4f9c7431eac1cd7fd3955c15dacd6d1fd1075c37ad6d56a76845ae59e3c8940737cdcbe319 SHA512 a8e56a24d0dbfa6814d3950ca5b3e592be545ebc9ec71de3c78bcd3ca8e70b8f2f1442d89ae72ca9636e4442805a153e72b058a3e43a87152a102f0f5405f188 DIST vivaldi-snapshot_4.0.2312.3-1_arm64.deb 79579564 BLAKE2B f0e58331139ae6df6268b34d8b799291199fc9edf6c5b4d4137061f9a0d7f600f674965970f4355848b4e2763d0c5b44b6518f5a4a05b7f2cbc2f7d4ff33d708 SHA512 668ec750cfe20ac4b827ccbb2d8eca987b10471e387245e4e14a3500865c30b0339845b60b7da86d8fafc5686b50adaeb9c684ad9868bb3bcabf864502047890 DIST vivaldi-snapshot_4.0.2312.3-1_armhf.deb 75737268 BLAKE2B 867f5c717b016bf0e7136a62a7bef1dd97a15b655c377eaa5093e8c79bc5e7c9a93befdd7f6ad74f939f5ddabbbd2f16c70720c5c728be167ae3c639dcc3bcd5 SHA512 3836f99ca787764c7f365eaf9c1fd3a767ec1a8467c45cc7524df42cff2fed371bfc11ba0b9eef39b2065f12aa061d1a32daf2740ed5b821032f5934fc5bf2ba +DIST vivaldi-snapshot_4.0.2312.7-1_amd64.deb 84153148 BLAKE2B 3eb29135b9e8d13a9ebac110babe5d57fa0affc6c0bc271c173745301869556e55f9bf37b8df3f72cd8d249a1096ad69e1d61d00607af492a6f5126cd7caecd6 SHA512 8fcdbc8cb92e04097d2f8214f3867a5dc6dc28cd3a67c5b6efe9d25e44421ba193a53722f494c834b919ad322114613f79fe3546f1704ff3cefd0c89f97b462f +DIST vivaldi-snapshot_4.0.2312.7-1_arm64.deb 79610308 BLAKE2B 0861dc075891ffba014737408071ff6f749bc6887247a91043b64b6c24a4d04d6a7add5af40fbda8e681ad95caf5a23512c113dee195571f799d475c67032c64 SHA512 b176132b33e5e84e4f3ca4b11de69545d493fbb4a6be4f0d41ca285f381923a11f6a42f68f04470298c23f091179e8a66e206402ceee645c23c956a5adce4fe0 +DIST vivaldi-snapshot_4.0.2312.7-1_armhf.deb 75716336 BLAKE2B ec78a97501091c2e3810918a50fbe50ea1e044b66231e5a74eb5ce196f6080c5aed51e2b94cb307ebe646ddab39982ff0bdaa95a99c70666c3904be9f377d9a2 SHA512 7fd59a9c9e1b8406b2cea1170d75b248a0f567e47054e7786205320c9944df32bd783761077519b82229087c51eeb88e31c83daa2e275f0e8b5a6e93da5dcb9f diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-4.0.2312.7.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-4.0.2312.7.ebuild new file mode 100644 index 000000000000..922779ca6f6f --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-4.0.2312.7.ebuild @@ -0,0 +1,205 @@ +# 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 ) +" + +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 +} |