From fa2e39cbb88be59dbd338ef1cabd59960a1c92a2 Mon Sep 17 00:00:00 2001 From: Joseph Mingrone Date: Thu, 31 Oct 2024 01:43:48 -0300 Subject: [PATCH] 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(+) create mode 100644 mail/ruby-notmuch/Makefile create mode 100644 mail/ruby-notmuch/pkg-descr create mode 100644 mail/ruby-notmuch/pkg-plist 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