git: fa2e39cbb88b - main - mail/ruby-notmuch: New port for the Ruby interface to notmuch mail

From: Joseph Mingrone <jrm_at_FreeBSD.org>
Date: Sat, 02 Nov 2024 14:35:53 UTC
The branch main has been updated by jrm:

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

commit fa2e39cbb88be59dbd338ef1cabd59960a1c92a2
Author:     Joseph Mingrone <jrm@FreeBSD.org>
AuthorDate: 2024-10-31 04:43:48 +0000
Commit:     Joseph Mingrone <jrm@FreeBSD.org>
CommitDate: 2024-11-02 14:34:35 +0000

    mail/ruby-notmuch: New port for the Ruby interface to notmuch mail
    
    PR:             282401
    Sponsored by:   The FreeBSD Foundation
---
 mail/Makefile               |  1 +
 mail/ruby-notmuch/Makefile  | 25 +++++++++++++++++++++++++
 mail/ruby-notmuch/pkg-descr |  1 +
 mail/ruby-notmuch/pkg-plist |  1 +
 4 files changed, 28 insertions(+)

diff --git a/mail/Makefile b/mail/Makefile
index 4e99a539c825..8ba791082d32 100644
--- a/mail/Makefile
+++ b/mail/Makefile
@@ -593,6 +593,7 @@
     SUBDIR += rspamd
     SUBDIR += rspamd-devel
     SUBDIR += rss2email3
+    SUBDIR += ruby-notmuch
     SUBDIR += rubygem-actionmailbox60
     SUBDIR += rubygem-actionmailbox61
     SUBDIR += rubygem-actionmailbox70
diff --git a/mail/ruby-notmuch/Makefile b/mail/ruby-notmuch/Makefile
new file mode 100644
index 000000000000..33a7ec5b3145
--- /dev/null
+++ b/mail/ruby-notmuch/Makefile
@@ -0,0 +1,25 @@
+CATEGORIES=	mail ruby
+PKGNAMEPREFIX=	ruby-
+
+COMMENT=	Ruby interface for the Notmuch email search and tagging library
+
+LICENSE=	GPLv3
+
+LIB_DEPENDS=	libnotmuch.so:mail/notmuch \
+		libtalloc.so:devel/talloc
+
+USES=		gmake pkgconfig python:build,test ruby
+
+HAS_CONFIGURE=	yes
+CONFIGURE_ARGS=	--without-emacs
+CONFIGURE_ENV+=	PYTHON=${PYTHON_CMD} \
+		RUBY=${RUBY_CMD}
+
+ALL_TARGET=	ruby-bindings
+MASTERDIR=	${.CURDIR}/../notmuch
+
+do-install:
+	${MAKE_CMD} DESTDIR=${STAGEDIR} -C ${WRKSRC}/bindings/ruby install
+	${STRIP_CMD} ${STAGEDIR}${RUBY_VENDORARCHLIBDIR}/notmuch.so
+
+.include "${MASTERDIR}/Makefile"
diff --git a/mail/ruby-notmuch/pkg-descr b/mail/ruby-notmuch/pkg-descr
new file mode 100644
index 000000000000..85c4e76eba51
--- /dev/null
+++ b/mail/ruby-notmuch/pkg-descr
@@ -0,0 +1 @@
+Ruby interface to the notmuch mail search and index library
diff --git a/mail/ruby-notmuch/pkg-plist b/mail/ruby-notmuch/pkg-plist
new file mode 100644
index 000000000000..c60da9f6c192
--- /dev/null
+++ b/mail/ruby-notmuch/pkg-plist
@@ -0,0 +1 @@
+%%RUBY_VENDORARCHLIBDIR%%/notmuch.so