pkgsrc/mail/notmuch/patches/patch-emacs_Makefile.local
ryoon 63a949b1a6 Fix emacs option case
* Fix PLIST for notmuch-emacs option
* Install notmuch-emacs-mua script properly in notmuch-emacs case
2019-03-08 18:27:31 +00:00

15 lines
646 B
Text

$NetBSD: patch-emacs_Makefile.local,v 1.1 2019/03/08 18:27:31 ryoon Exp $
* Do not replace bash with buildlinked one. This is pkgsrc-specific.
--- emacs/Makefile.local.orig 2019-02-17 11:32:59.000000000 +0000
+++ emacs/Makefile.local
@@ -111,7 +111,7 @@ endif
install -m0644 $(emacs_images) "$(DESTDIR)$(emacsetcdir)"
mkdir -p "$(DESTDIR)$(prefix)/bin/"
ifeq ($(HAVE_BASH),1)
- sed "1s|^#!.*|#! $(BASH_ABSOLUTE)|" < $(emacs_mua) > $(DESTDIR)$(prefix)/bin/notmuch-emacs-mua
+ ${BSD_INSTALL_SCRIPT} $(emacs_mua) $(DESTDIR)$(prefix)/bin/notmuch-emacs-mua
chmod 755 $(DESTDIR)$(prefix)/bin/notmuch-emacs-mua
endif
ifeq ($(WITH_DESKTOP),1)