git: 422c41dcb6f1 - main - net-im/lurch: Add new port

From: Felix Palmen <zirias_at_FreeBSD.org>
Date: Wed, 07 Sep 2022 10:34:09 UTC
The branch main has been updated by zirias:

URL: https://cgit.FreeBSD.org/ports/commit/?id=422c41dcb6f1fc0d5d6a24ba61727a467e171e9b

commit 422c41dcb6f1fc0d5d6a24ba61727a467e171e9b
Author:     Michael Adeyeye Oshin <micadeyeye@gmail.com>
AuthorDate: 2022-08-30 02:40:48 +0000
Commit:     Felix Palmen <zirias@FreeBSD.org>
CommitDate: 2022-09-07 10:33:30 +0000

    net-im/lurch: Add new port
    
    OMEMO Encryption Library for libpurple (plugin)
    
    PR:                     266105
---
 net-im/Makefile        |  1 +
 net-im/lurch/Makefile  | 28 ++++++++++++++++++++++++++++
 net-im/lurch/distinfo  |  3 +++
 net-im/lurch/pkg-descr |  4 ++++
 4 files changed, 36 insertions(+)

diff --git a/net-im/Makefile b/net-im/Makefile
index fcc834bdcb3e..5dc94eb8ff7f 100644
--- a/net-im/Makefile
+++ b/net-im/Makefile
@@ -67,6 +67,7 @@
     SUBDIR += libsignon-glib
     SUBDIR += libstrophe
     SUBDIR += loudmouth
+    SUBDIR += lurch
     SUBDIR += matterbridge
     SUBDIR += matterhorn
     SUBDIR += matterircd
diff --git a/net-im/lurch/Makefile b/net-im/lurch/Makefile
new file mode 100644
index 000000000000..da140f39c9b8
--- /dev/null
+++ b/net-im/lurch/Makefile
@@ -0,0 +1,28 @@
+PORTNAME=	lurch
+DISTVERSION=	0.7.0
+CATEGORIES=	net-im security
+MASTER_SITES=	https://github.com/gkdr/lurch/releases/download/v${DISTVERSION}/
+EXTRACT_SUFX=	-src.tar.gz
+
+MAINTAINER=	micadeyeye@gmail.com
+COMMENT=	OMEMO Encryption Library for libpurple (plugin)
+
+LICENSE=	GPLv2
+
+LIB_DEPENDS=	libaxc.so:security/axc \
+		libomemo.so:security/libomemo \
+		libpurple.so:net-im/libpurple \
+		libsignal-protocol-c.so:net/libsignal-protocol-c
+
+USES=		gmake gnome pkgconfig
+USE_GNOME=	glib20
+
+MAKE_ARGS=	USE_DYNAMIC_LIBS=1
+LDFLAGS+=	-Wl,--as-needed
+
+PLIST_FILES=	lib/purple-2/lurch.so
+
+post-install:
+		${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/purple-2/lurch.so
+
+.include <bsd.port.mk>
diff --git a/net-im/lurch/distinfo b/net-im/lurch/distinfo
new file mode 100644
index 000000000000..9867fc439bc2
--- /dev/null
+++ b/net-im/lurch/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1661579780
+SHA256 (lurch-0.7.0-src.tar.gz) = 1ff595407f72deaa3b83e07d9695c64a4310e1bf38f86811e8b524a7bc7c5a8d
+SIZE (lurch-0.7.0-src.tar.gz) = 401110
diff --git a/net-im/lurch/pkg-descr b/net-im/lurch/pkg-descr
new file mode 100644
index 000000000000..e9677bc79ae9
--- /dev/null
+++ b/net-im/lurch/pkg-descr
@@ -0,0 +1,4 @@
+This plugin brings Axolotl, by now renamed to double ratchet, to libpurple
+applications such as Pidgin by implementing the XEP-0384: OMEMO Encryption.
+
+WWW: https://research.ngportal.com/lurch