diff options
author | James Le Cuirot <chewi@gentoo.org> | 2021-07-17 08:06:23 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2021-07-17 08:07:56 +0100 |
commit | 08244b5b1f174e3d3e2d5e594afc4aa33a161e2f (patch) | |
tree | 508601b6755b03fdb1c0ee6079e500d273bb89c5 /www-client | |
parent | www-client/vivaldi-snapshot: Drop older versions, sorry x86 (diff) | |
download | gentoo-08244b5b1f174e3d3e2d5e594afc4aa33a161e2f.tar.gz gentoo-08244b5b1f174e3d3e2d5e594afc4aa33a161e2f.tar.bz2 gentoo-08244b5b1f174e3d3e2d5e594afc4aa33a161e2f.zip |
www-client/vivaldi: Add version 4.0.2312.41
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'www-client')
-rw-r--r-- | www-client/vivaldi/Manifest | 3 | ||||
-rw-r--r-- | www-client/vivaldi/vivaldi-4.0.2312.41.ebuild | 205 |
2 files changed, 208 insertions, 0 deletions
diff --git a/www-client/vivaldi/Manifest b/www-client/vivaldi/Manifest index 01fa7f4ebb2c..35b62bce1c96 100644 --- a/www-client/vivaldi/Manifest +++ b/www-client/vivaldi/Manifest @@ -8,3 +8,6 @@ DIST vivaldi-stable_4.0.2312.36-1_armhf.deb 75847636 BLAKE2B 1c32ebbcabc34b76f00 DIST vivaldi-stable_4.0.2312.38-1_amd64.deb 84294796 BLAKE2B 0942e8590d6af17eecb036ca22958c3aea4da3c02bcbf8253a85f921a4f1a292310f37f238830291afc7219b7f8bd81195956602f330bb4e836080e841ed92b4 SHA512 4081f8c702003c19d0568a939f689df1f7783ce406cfc71d40aeb69ab9f6dbcad4c959c74b9ebd6e66e822af3f5ed60906f654e5ddda8165751fc3b0493811d7 DIST vivaldi-stable_4.0.2312.38-1_arm64.deb 79737624 BLAKE2B 367fdec2e15913c5282165f266ce057cd94043e7523f3839266f789a7a43c44d839b2e5394c07bae071bbfe86f89134ed59ca0dd0c76114c127da354fc2dc3fa SHA512 a40ddb6c928135c89e6ba5c654c46d9154c544132abad5f42685d2b4da55d5b71cc7acac58e45150d67106aaddd66e9f00d586f087b3f6fe5b2594fa7fee65b0 DIST vivaldi-stable_4.0.2312.38-1_armhf.deb 75853312 BLAKE2B 24650e64ac1630b1e12d3671760d49cc31b529a35d0075b61485d3b15b0d50006119d16a20a16f395a0054f77b78bec4277919a156fb842adb1a50d68781ea26 SHA512 1f4a3188d14d89a45bbafdcb8c595b65f5649d7a39d04b7f477d8297a5f01b18fa3a0b1016d90306a5d01dd847211d0dd1796dcb08421bbb37abb735871e10db +DIST vivaldi-stable_4.0.2312.41-1_amd64.deb 84277076 BLAKE2B ce8510c543837484ee8965e14736bb58dc8d3075132f91260540d0ece800aea2cb4f23c3ae5bbe9bef7bf5f46433aa46d54dbdafc8ba39501cba35e5e7362c18 SHA512 e5032b90f7b02ee6048461a8cab2d606a65d3606c9eba5d78683fff3be28fc3fb2a753c58c36f966eedde00bb70a772d9c492b3e0ee1d3b85f28855ee1ae383a +DIST vivaldi-stable_4.0.2312.41-1_arm64.deb 79731100 BLAKE2B c14a931f593350c9fcc8570649bc1eb4423ae57353722ff1efdaae0b40e54e09b824ed912137606ae8692bf1cb31ce28cb444e1e4f3a4b87ba350227dddd2d65 SHA512 97441983c680d5808434a60b985122d7e7740c10f2f14d38d24f472c339984ef69f4d52b3a4a7a1b28c100dc5589cfd68420c16eccbc6fa72a10a8add9b9da97 +DIST vivaldi-stable_4.0.2312.41-1_armhf.deb 75855988 BLAKE2B f2210d7dc9115b6dd285fcaa273e99bcc21c1ef8590222ff9d0ca0bd4dd9d171f7692660cfde3413b5700e97668e52aa13628d4cc65692a72c45774689fa2900 SHA512 c123c8730bfd2b70cc9ab673df42ae5d2434e0284bdae949e4f439c91bba17292981839abe7b62227d39f17a5a92b8434de04b0657e9e4b02b0414032cde8c16 diff --git a/www-client/vivaldi/vivaldi-4.0.2312.41.ebuild b/www-client/vivaldi/vivaldi-4.0.2312.41.ebuild new file mode 100644 index 000000000000..c2409d01a97f --- /dev/null +++ b/www-client/vivaldi/vivaldi-4.0.2312.41.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 + +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=" + 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 +} |