From 61e4df42f306fe5d9c63e67c2c437bc3862641cc Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Sun, 9 Apr 2023 21:23:55 +0200 Subject: [PATCH 1/2] net-im/whatsapp-for-linux: drop 1.3.2, 1.3.2-r1 Signed-off-by: Andrew Ammerlaan --- net-im/whatsapp-for-linux/Manifest | 1 - .../whatsapp-for-linux-1.3.2-r1.ebuild | 26 ------------------- .../whatsapp-for-linux-1.3.2.ebuild | 24 ----------------- 3 files changed, 51 deletions(-) delete mode 100644 net-im/whatsapp-for-linux/whatsapp-for-linux-1.3.2-r1.ebuild delete mode 100644 net-im/whatsapp-for-linux/whatsapp-for-linux-1.3.2.ebuild diff --git a/net-im/whatsapp-for-linux/Manifest b/net-im/whatsapp-for-linux/Manifest index df583d9552..b892f50425 100644 --- a/net-im/whatsapp-for-linux/Manifest +++ b/net-im/whatsapp-for-linux/Manifest @@ -1,2 +1 @@ -DIST whatsapp-for-linux-1.3.2.tar.gz 314151 BLAKE2B cbe5b6cae469a8d0e40634ce16e5af509cb10ae2f2f07f953044be0c85137a6f8116d64b431f69b1dd45fdeddf34be8b710ff37ad8fb296e4823f9859d6a7be6 SHA512 e8d08261aa68b72c54d41a5c0a2404bfe4bc2566837e53f5b1ceb31273e8eee5d0c7afaf89984e9551c9ee56158d9210eafcb93659d3d591cf2ef361b1057090 DIST whatsapp-for-linux-1.5.3.tar.gz 352927 BLAKE2B 0af7dde3840b2d42c92256e0edd3fcfc461e3dc818d2330088c603bbcf99cd095e81b78068d579b21fcc1a458eebe325c492f6d036136b96812205f94a6f2cad SHA512 7ef6b0135668b90f256a07c4d273d2732e79213be81bb6b0ee819107211e603a8d0b7fc7aaca6e7746de650f831955f4f560891f1bc2d5acdb0210bad79d91e9 diff --git a/net-im/whatsapp-for-linux/whatsapp-for-linux-1.3.2-r1.ebuild b/net-im/whatsapp-for-linux/whatsapp-for-linux-1.3.2-r1.ebuild deleted file mode 100644 index b2034f3f6f..0000000000 --- a/net-im/whatsapp-for-linux/whatsapp-for-linux-1.3.2-r1.ebuild +++ /dev/null @@ -1,26 +0,0 @@ -# Copyright 2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit cmake xdg - -DESCRIPTION="An unofficial WhatsApp desktop application for Linux" -HOMEPAGE="https://github.com/eneshecan/whatsapp-for-linux" -SRC_URI="https://github.com/eneshecan/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" - -KEYWORDS="~amd64" -LICENSE="GPL-3" -SLOT="0" - -RDEPEND=" - dev-cpp/atkmm - dev-cpp/glibmm:2 - dev-cpp/gtkmm:3.0 - dev-libs/glib:2 - dev-libs/libappindicator:3 - dev-libs/libsigc++:2 - net-libs/webkit-gtk:4= - x11-libs/gtk+:3 -" -DEPEND="${RDEPEND}" diff --git a/net-im/whatsapp-for-linux/whatsapp-for-linux-1.3.2.ebuild b/net-im/whatsapp-for-linux/whatsapp-for-linux-1.3.2.ebuild deleted file mode 100644 index a9d20b4c62..0000000000 --- a/net-im/whatsapp-for-linux/whatsapp-for-linux-1.3.2.ebuild +++ /dev/null @@ -1,24 +0,0 @@ -# Copyright 2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit cmake xdg - -DESCRIPTION="An unofficial WhatsApp desktop application for Linux" -HOMEPAGE="https://github.com/eneshecan/whatsapp-for-linux" -SRC_URI="https://github.com/eneshecan/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" - -KEYWORDS="~amd64" -LICENSE="GPL-3" -SLOT="0" - -RDEPEND="dev-cpp/gtkmm:3.0 - net-libs/webkit-gtk - dev-libs/libappindicator:3" - -DEPEND="${RDEPEND}" - -src_prepare() { - cmake_src_prepare -} From 269145eb141beb57f86b295cc88d39bd7f392645 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Sun, 9 Apr 2023 21:25:32 +0200 Subject: [PATCH 2/2] net-im/whatsapp-for-linux: add 1.6.2 Signed-off-by: Andrew Ammerlaan --- net-im/whatsapp-for-linux/Manifest | 1 + .../whatsapp-for-linux-1.6.2.ebuild | 47 +++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 net-im/whatsapp-for-linux/whatsapp-for-linux-1.6.2.ebuild diff --git a/net-im/whatsapp-for-linux/Manifest b/net-im/whatsapp-for-linux/Manifest index b892f50425..190ec29b46 100644 --- a/net-im/whatsapp-for-linux/Manifest +++ b/net-im/whatsapp-for-linux/Manifest @@ -1 +1,2 @@ DIST whatsapp-for-linux-1.5.3.tar.gz 352927 BLAKE2B 0af7dde3840b2d42c92256e0edd3fcfc461e3dc818d2330088c603bbcf99cd095e81b78068d579b21fcc1a458eebe325c492f6d036136b96812205f94a6f2cad SHA512 7ef6b0135668b90f256a07c4d273d2732e79213be81bb6b0ee819107211e603a8d0b7fc7aaca6e7746de650f831955f4f560891f1bc2d5acdb0210bad79d91e9 +DIST whatsapp-for-linux-1.6.2.tar.gz 354926 BLAKE2B c70c1ae9b6c8f74f801a52c4b95d0548c14368e874148cde8a028e3e55fc824fe17b527fd724b05bd5302abb762cad241a0d4321b5527bd3d6d35e544572fe32 SHA512 3ff54d202975a91177f5803312f09a71c23c39447063efa8c5e8e10eeea69f83e8e5397edeb7be1bcba5433ed0733b69728bfeeb5eaccbe7d605be362952d056 diff --git a/net-im/whatsapp-for-linux/whatsapp-for-linux-1.6.2.ebuild b/net-im/whatsapp-for-linux/whatsapp-for-linux-1.6.2.ebuild new file mode 100644 index 0000000000..bf1e3a51ba --- /dev/null +++ b/net-im/whatsapp-for-linux/whatsapp-for-linux-1.6.2.ebuild @@ -0,0 +1,47 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake xdg + +DESCRIPTION="An unofficial WhatsApp desktop application for Linux" +HOMEPAGE="https://github.com/eneshecan/whatsapp-for-linux" +SRC_URI="https://github.com/eneshecan/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +KEYWORDS="~amd64" +LICENSE="GPL-3" +SLOT="0" + +LANGUAGES="en es it ka nl pt-BR ru tr" +for lang in ${LANGUAGES}; do + IUSE+=" +l10n_${lang}" +done + +RDEPEND=" + dev-cpp/atkmm + dev-cpp/glibmm:2 + dev-cpp/gtkmm:3.0 + dev-libs/glib + dev-libs/libayatana-appindicator + dev-libs/libsigc++:2 + media-libs/libcanberra + || ( + net-libs/webkit-gtk:4 + net-libs/webkit-gtk:4.1 + ) + x11-libs/gtk+:3 +" +DEPEND="${RDEPEND}" + +BDEPEND="dev-util/intltool" + +src_prepare() { + cmake_src_prepare + for lang in ${LANGUAGES}; do + if ! use l10n_${lang}; then + rm "${S}/po/${lang,,}.po" || die "Failed to remove localization" + sed -i -e "/${lang,,}/d" "${S}/po/LINGUAS" || die + fi + done +}