commit:     d40bb10152be4f0df14eb9c09c783e48946f063a
Author:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Fri Feb  3 20:48:17 2023 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Fri Feb  3 20:48:30 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d40bb101

net-im/whatsapp-for-linux: add 1.5.3

Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 net-im/whatsapp-for-linux/Manifest                 |  1 +
 .../whatsapp-for-linux-1.5.3.ebuild                | 47 ++++++++++++++++++++++
 2 files changed, 48 insertions(+)

diff --git a/net-im/whatsapp-for-linux/Manifest 
b/net-im/whatsapp-for-linux/Manifest
index 891797aef..df583d955 100644
--- a/net-im/whatsapp-for-linux/Manifest
+++ b/net-im/whatsapp-for-linux/Manifest
@@ -1 +1,2 @@
 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.5.3.ebuild 
b/net-im/whatsapp-for-linux/whatsapp-for-linux-1.5.3.ebuild
new file mode 100644
index 000000000..bf1e3a51b
--- /dev/null
+++ b/net-im/whatsapp-for-linux/whatsapp-for-linux-1.5.3.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
+}

Reply via email to