commit:     56d59d7b5609810ea8a9f700f4b6709ece299a0d
Author:     Thomas Clarke <tomclarke2006 <AT> hotmail <DOT> com>
AuthorDate: Thu Aug  1 21:46:34 2024 +0000
Commit:     Thomas Clarke <TomClarke2006 <AT> hotmail <DOT> com>
CommitDate: Thu Aug  1 21:51:01 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=56d59d7b

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

Signed-off-by: Thomas Clarke <tomclarke2006 <AT> hotmail.com>

 .../whatsapp-for-linux-1.6.5.ebuild                | 50 ++++++++++++++++++++++
 1 file changed, 50 insertions(+)

diff --git a/net-im/whatsapp-for-linux/whatsapp-for-linux-1.6.5.ebuild 
b/net-im/whatsapp-for-linux/whatsapp-for-linux-1.6.5.ebuild
new file mode 100644
index 000000000..bae2bfe7b
--- /dev/null
+++ b/net-im/whatsapp-for-linux/whatsapp-for-linux-1.6.5.ebuild
@@ -0,0 +1,50 @@
+# Copyright 2024 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"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+
+LANGUAGES="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.1
+       )
+       x11-libs/gtk+:3
+"
+DEPEND="${RDEPEND}"
+
+BDEPEND="dev-util/intltool"
+
+#PATCHES=(
+#      "${FILESDIR}/${PN}-1.6.5-webkitgtk.patch"
+#)
+
+src_prepare() {
+       cmake_src_prepare
+       for lang in ${LANGUAGES}; do
+               if ! use l10n_${lang}; then
+                       rm -v "${S}/po/${lang,,}.po" || die "Failed to remove 
localization"
+                       sed -i -e "/${lang,,}/d" "${S}/po/LINGUAS" || die
+               fi
+       done
+}

Reply via email to