diff options
author | James Le Cuirot <chewi@gentoo.org> | 2021-06-17 22:50:21 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2021-06-17 22:56:00 +0100 |
commit | 75b60432a07ff8c21788a80306c2f3e8b1071600 (patch) | |
tree | cb4d2631a7dd9eb60456659a898bdbcb6833a138 /www-client/vivaldi-snapshot | |
parent | sys-libs/gdbm: Bump to version 1.20 (diff) | |
download | gentoo-75b60432a07ff8c21788a80306c2f3e8b1071600.tar.gz gentoo-75b60432a07ff8c21788a80306c2f3e8b1071600.tar.bz2 gentoo-75b60432a07ff8c21788a80306c2f3e8b1071600.zip |
www-client/vivaldi-snapshot: Add version 4.1.2328.3
Package-Manager: Portage-3.0.20, 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.1.2328.3.ebuild | 205 |
2 files changed, 208 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest index e978c9972725..9a0378a3689e 100644 --- a/www-client/vivaldi-snapshot/Manifest +++ b/www-client/vivaldi-snapshot/Manifest @@ -8,3 +8,6 @@ DIST vivaldi-snapshot_4.0.2312.13-1_armhf.deb 75769556 BLAKE2B 7fbcc2f0fc309218c DIST vivaldi-snapshot_4.0.2312.17-1_amd64.deb 84262456 BLAKE2B 0159b85977673c4b75519bb41afe63f1abb31012a5775177b96cfef795da5e21bf2bc476b74b95b124101fe0b899696b973a2c954f8ecc8cbba96128df4e45cf SHA512 871acf44e878c97558b668ff87184fcab0712d575a7a87073f844d92d94282bbbc9e88fcb90b02c0e64c9aa4399be4e9f8f1fbf8ffbb5b2ea19202297c811274 DIST vivaldi-snapshot_4.0.2312.17-1_arm64.deb 79692328 BLAKE2B 959a28e2164a662ff6ef979b1358ddb4b2727434ccf1edf3a71dcc4a86c13420f35430cf64805b75e1bc6b1a842d951827dabb1869633d445a81c4511e2052c0 SHA512 7176aaa731137f8580121bb9e64c11e046cef88dc6629c9f915bfb21d3f2271ecb76dbbd48c5f52dd38dccd3d647c78664aec96ff8fb190bae13f2c6f8cfbe62 DIST vivaldi-snapshot_4.0.2312.17-1_armhf.deb 75808604 BLAKE2B 022be117fd874b9bce06f531d5d992dc9ebc9727a7cfb94f403723021eed4fc043b04d0b9ad0381fc9bce15f6470f9ff2b1019c71d8054451d540216e81e5535 SHA512 3f2deda734a225e78af911603a5c2d892bd7c322b0d1c3c6c1af61a8debb22a85f595f42decedddc331ef0282b9a46c2408763c523362805ca0a3c9e73900f2c +DIST vivaldi-snapshot_4.1.2328.3-1_amd64.deb 83660280 BLAKE2B 69ac05f694329ddaa0b850bbbc1a970aa3e0583a5859af5b7726ea59e941fea955d32663ed644c8196b4baf0e67eeb6026e69911ae5e19b513992971573a145e SHA512 689c85aa147afb8dcbc6d145817a50fa0500ba19ea205246da2f627c8bdf86874a71a38ff3ef1513998f9347e426004b2d81bc959bb86469bad11e783ab791a2 +DIST vivaldi-snapshot_4.1.2328.3-1_arm64.deb 79732764 BLAKE2B 577141274ba36b0698edf8db9eac093a4cf3d01d32bfef8f19d6a0a42e7e3d67f456e3e2c26a0450b274b4e5ec557ed7d466ab7c9d0eac4993d07f74b4331661 SHA512 288fbcc3cf2d33aeaa33aecec47c4cb8ee1a288a65643e6c5ed44d9597d7dcf75246d2aa69b1e1351f2812016a69f0184747de859ed7404a0f4629552632ed87 +DIST vivaldi-snapshot_4.1.2328.3-1_armhf.deb 75852072 BLAKE2B ab160ad2a8cac43edb128687cedf1c131df4ae6ed1cc9073a073bd7afdce54702b8b5e64e9d3ac4111286b2c0bcb73252af2da4a9204951004bd18742897c6d9 SHA512 946ba9f5b9ed799633abc23989e8659e1f64cfed70a189080487583ca09b1a23990acd2a280d4f9107a1fe705d37a5364020955b2dd3714e8050f8dd2f48ec08 diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-4.1.2328.3.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-4.1.2328.3.ebuild new file mode 100644 index 000000000000..c2409d01a97f --- /dev/null +++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-4.1.2328.3.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 +} |