summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjrm <jrm@FreeBSD.org>2017-07-20 22:18:31 +0000
committerjrm <jrm@FreeBSD.org>2017-07-20 22:18:31 +0000
commit31de8256bc22d32f9d2742890bf74cd893c875c6 (patch)
tree30a2d06c8503bde96729fe7f62fb0cf47fea104e
parentddf0d0efd90ec26a82fb92c52b7c0db6ffac91c5 (diff)
downloadFreeBSD-ports-31de8256bc22d32f9d2742890bf74cd893c875c6.zip
FreeBSD-ports-31de8256bc22d32f9d2742890bf74cd893c875c6.tar.gz
mail/notmuch: Fix issues and upgrade to 0.24.2
Port changes: - fix pkg-plist issues - patch notmuch-emacs-mua to remove bashisms - upgrade to version 0.24.2 Upstream changes: https://git.notmuchmail.org/git?p=notmuch;a=blob_plain;f=NEWS;hb=2e86a4da55c29e0751d950839cdcbe40234ca8ba Approved by: mp39590@gmail.com (maintainer) Differential Revision: https://reviews.freebsd.org/D11644
-rw-r--r--mail/notmuch/Makefile2
-rw-r--r--mail/notmuch/distinfo6
-rw-r--r--mail/notmuch/files/patch-emacs_notmuch-emacs-mua35
-rw-r--r--mail/notmuch/pkg-plist4
4 files changed, 43 insertions, 4 deletions
diff --git a/mail/notmuch/Makefile b/mail/notmuch/Makefile
index 3af7a7c..c47a17e 100644
--- a/mail/notmuch/Makefile
+++ b/mail/notmuch/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= notmuch
-PORTVERSION= 0.24.1
+PORTVERSION= 0.24.2
CATEGORIES= mail
MASTER_SITES= http://notmuchmail.org/releases/
diff --git a/mail/notmuch/distinfo b/mail/notmuch/distinfo
index 7e84074..c70f957 100644
--- a/mail/notmuch/distinfo
+++ b/mail/notmuch/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1494281277
-SHA256 (notmuch-0.24.1.tar.gz) = fa117de2c6096dd896a333b9c770572a939e04a02abe6745b6b07f5363063ca3
-SIZE (notmuch-0.24.1.tar.gz) = 709190
+TIMESTAMP = 1500399569
+SHA256 (notmuch-0.24.2.tar.gz) = aa76a96684d5c5918d940182b6fe40f7d6745f144476fdda57388479d586cc51
+SIZE (notmuch-0.24.2.tar.gz) = 709272
diff --git a/mail/notmuch/files/patch-emacs_notmuch-emacs-mua b/mail/notmuch/files/patch-emacs_notmuch-emacs-mua
new file mode 100644
index 0000000..56878a4
--- /dev/null
+++ b/mail/notmuch/files/patch-emacs_notmuch-emacs-mua
@@ -0,0 +1,35 @@
+--- emacs/notmuch-emacs-mua.orig 2017-07-18 20:34:56 UTC
++++ emacs/notmuch-emacs-mua
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env bash
++#!/bin/sh
+ #
+ # notmuch-emacs-mua - start composing a mail on the command line
+ #
+@@ -26,8 +26,8 @@ set -eu
+ # calling convention: escape -v var "$arg" (like in bash printf).
+ escape ()
+ {
+- local __escape_arg__=${3//\\/\\\\}
+- printf -v $2 '%s' "${__escape_arg__//\"/\\\"}"
++ __escape_arg__="$(printf '%s' "$3" | sed -e 's|\\|\\\\|g' -e 's|\"|\\\"|g')"
++ eval "$2=\$__escape_arg__"
+ }
+
+ EMACS=${EMACS:-emacs}
+@@ -150,14 +150,14 @@ if [ -n "${MAILTO}" ]; then
+ exit 1
+ fi
+ ELISP="(browse-url-mail \"${MAILTO}\")"
+-elif [ -z "${ELISP}" -a -n "${HELLO}" ]; then
++elif [ -z "${ELISP}" ] && [ -n "${HELLO}" ]; then
+ ELISP="(notmuch)"
+ else
+ ELISP="(notmuch-mua-new-mail) ${ELISP}"
+ fi
+
+ # Kill the terminal/frame if we're creating one.
+-if [ -z "$USE_EMACSCLIENT" -o -n "$CREATE_FRAME" -o -n "$NO_WINDOW" ]; then
++if [ -z "$USE_EMACSCLIENT" ] || [ -n "$CREATE_FRAME" ] || [ -n "$NO_WINDOW" ]; then
+ ELISP="${ELISP} (message-add-action #'save-buffers-kill-terminal 'exit)"
+ fi
diff --git a/mail/notmuch/pkg-plist b/mail/notmuch/pkg-plist
index 71b8ec8..a6b9475 100644
--- a/mail/notmuch/pkg-plist
+++ b/mail/notmuch/pkg-plist
@@ -1,4 +1,5 @@
bin/notmuch
+%%EMACS%%bin/notmuch-emacs-mua
%%MUTT%%bin/notmuch-mutt
include/notmuch.h
lib/libnotmuch.so
@@ -30,6 +31,8 @@ lib/libnotmuch.so.4.4.0
%%EMACS%%%%EMACS_SITE_LISPDIR%%/notmuch-address.elc
%%EMACS%%%%EMACS_SITE_LISPDIR%%/notmuch-crypto.el
%%EMACS%%%%EMACS_SITE_LISPDIR%%/notmuch-crypto.elc
+%%EMACS%%%%EMACS_SITE_LISPDIR%%/notmuch-draft.el
+%%EMACS%%%%EMACS_SITE_LISPDIR%%/notmuch-draft.elc
%%EMACS%%%%EMACS_SITE_LISPDIR%%/notmuch-hello.el
%%EMACS%%%%EMACS_SITE_LISPDIR%%/notmuch-hello.elc
%%EMACS%%%%EMACS_SITE_LISPDIR%%/notmuch-jump.el
@@ -65,4 +68,5 @@ lib/libnotmuch.so.4.4.0
%%EMACS%%%%EMACS_SITE_LISPDIR%%/notmuch-company.elc
%%EMACS%%%%EMACS_SITE_LISPDIR%%/notmuch-compat.el
%%EMACS%%%%EMACS_SITE_LISPDIR%%/notmuch-compat.elc
+%%EMACS%%share/applications/notmuch-emacs-mua.desktop
%%ZSH%%share/zsh/functions/Completion/Unix/_notmuch
OpenPOWER on IntegriCloud