summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2022-04-16 08:51:30 +0100
committerJames Le Cuirot <chewi@gentoo.org>2022-04-16 08:53:26 +0100
commite5a660562c6cf41d98ff06ccb19dd64533e8c0e0 (patch)
tree17b35dbe0566a87faf4d68f992bc82e2cb7105e6 /www-client
parentwww-client/vivaldi: Drop old 5.2.2623.26 (diff)
downloadgentoo-e5a660562c6cf41d98ff06ccb19dd64533e8c0e0.tar.gz
gentoo-e5a660562c6cf41d98ff06ccb19dd64533e8c0e0.tar.bz2
gentoo-e5a660562c6cf41d98ff06ccb19dd64533e8c0e0.zip
www-client/vivaldi-snapshot: Add version 5.3.2643.3
Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'www-client')
-rw-r--r--www-client/vivaldi-snapshot/Manifest3
-rw-r--r--www-client/vivaldi-snapshot/vivaldi-snapshot-5.3.2643.3.ebuild204
2 files changed, 207 insertions, 0 deletions
diff --git a/www-client/vivaldi-snapshot/Manifest b/www-client/vivaldi-snapshot/Manifest
index f6122dd7a4b5..47ddb82007c0 100644
--- a/www-client/vivaldi-snapshot/Manifest
+++ b/www-client/vivaldi-snapshot/Manifest
@@ -4,3 +4,6 @@ DIST vivaldi-snapshot_5.2.2623.16-1_armhf.deb 78920364 BLAKE2B 5cef183fdedb4a070
DIST vivaldi-snapshot_5.3.2636.3-1_amd64.deb 87807792 BLAKE2B ba3094e84a21e3231d10d607f55dce82ccd77d2912f5b032d20275a91e37d9222031940959b3c8eebeea68a15671dfe5812d4681ec8929fc1649868aa45da3f4 SHA512 0e2b1d4582d47457df6f4c46f946c8176bf4079315fb8baa2028c6d52781bd0c64144b47955564cdebb23d96bf8a8c0cf7adc49d9336ab92a7e184be3eadbfd4
DIST vivaldi-snapshot_5.3.2636.3-1_arm64.deb 83034216 BLAKE2B 3aea8798e78d26b487f9a5cd4df0ece9f8f86ade8b2e0d1f0c6eed595e00ab9c247629c77b6f41ce7b37ff4c170872e540f7fd22bd6fae31c5de35d6756cda89 SHA512 1abe49eb86e58ed22e6fbe6e15b21a7b2ce028157a3d9d0dac6ee69d19cbe1097d1cb6fa4fe5aa99de4cd89acb3d5634200c89209715a055d6dfe9cab552b36f
DIST vivaldi-snapshot_5.3.2636.3-1_armhf.deb 78950908 BLAKE2B 3b5dd3cfd31c726b303053698ec05c2a04aea61c11b116da6acf44093fec3fa05bce89ae6bda58e7a2053228c7dd7698ef300922fcf41bc6572ee604fe31c39c SHA512 affb4d59c663d6b313ecfa569905b421314933cf70a48bb307173b190ddfa483a1f5f70bcb7602fc2510b5b817b6439a3019b666c758267899fd76bb96d95deb
+DIST vivaldi-snapshot_5.3.2643.3-1_amd64.deb 87822808 BLAKE2B 6d4b5241556c56384d29b7e955ec4a80af2f97f3bdf45153eb4582c24cd0c30f164dc5cc77f0e2b09d389125bdbf3d3eac1f3f1c17756ec41a11c999140ff1f0 SHA512 23f3b1b19f671e0cf6eecdff39ae28c3f85e4841fd5c98d88d91c1b9ab0c65c5a4d570fdbff81e66d04ad6f651d7c9f42223843baf2e25406422eb6945b32d45
+DIST vivaldi-snapshot_5.3.2643.3-1_arm64.deb 83028888 BLAKE2B 3846e53ad67717d0745a07f897fb22304bff0fd031782d9594a43fbfc42242843bc6054c21a6b3a65282a38e4dd62ac8f29a18ed890a73139cccf4337fcdc6f3 SHA512 53d67e06984ee5c332147af2d4dcba8c76c931dcd2eb807f3b1270d246ed66ea51dae16d2faccad058fafd06a13c114cf58c89a2c3123e564ca5a3b31ce545fd
+DIST vivaldi-snapshot_5.3.2643.3-1_armhf.deb 78922984 BLAKE2B a159305edea693f27b98ff5fe53481b2e2a3578a05fe9d75c3b6927d8757a6fe3ab1980e4b74a2d202d4b20e5a149d2752107c88b4e8ba7efdac04c64612de68 SHA512 89a9b37422f97aaa5ee75da3894de6fa21d83dd6080b000c0c91e5bf9c497bfc26995f40a80eceeba0a781f2e9892982f59967b678b5c0397347a57dd1ba1dce
diff --git a/www-client/vivaldi-snapshot/vivaldi-snapshot-5.3.2643.3.ebuild b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.3.2643.3.ebuild
new file mode 100644
index 000000000000..d6cfbbe0cedf
--- /dev/null
+++ b/www-client/vivaldi-snapshot/vivaldi-snapshot-5.3.2643.3.ebuild
@@ -0,0 +1,204 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CHROMIUM_VERSION="100"
+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
+}