summaryrefslogtreecommitdiff
path: root/mail/notmuch-emacs/Makefile
diff options
context:
space:
mode:
authorDima Panov <fluffy@FreeBSD.org>2018-02-27 05:01:28 +0000
committerDima Panov <fluffy@FreeBSD.org>2018-02-27 05:01:28 +0000
commited2a6eb1387c9bf7f1ad02759ccf70e145a2e516 (patch)
treeb1d7da9b02b6d7dc8db35785f60c9ebeb7102edf /mail/notmuch-emacs/Makefile
parentMaintainer reset for e-mails in domains without MX records (diff)
- Pass maintainership of mail/notmuch and mail/py-notmuch to submitter.
- Update ports to version to 0.26. - Unconditionally install completions according to Porter's Handbook Chapter 6.31. without adding extra dependencies. - Turn on the MANPAGES option by default. Building the manual pages is kept as an option to allow for more minimal custom builds. - Remove RUBY option as it never did anything. There are no build or install instructions in the Makefile nor %%RUBY%% references in pkg-plist. Building with the RUBY option enabled makes absolutely no difference to the produced package. The only thing ever requiring the Ruby bindings to the Notmuch library is the Vim client, which isn't built either. - Turn mail/py-notmuch into a slave port of mail/notmuch. - Split off EMACS option into the flavor aware slave port mail/notmuch-emacs. - Split off MUTT option into the slave port mail/notmuch-mutt. - Perform miscellaneous cleanups. PR: 225059 Submitted by: seschwar AT gmail.com Reviewed by: mat, fluffy, maintainers Approved by: maintainers Differential Revision: D13944
Notes
Notes: svn path=/head/; revision=463108
Diffstat (limited to 'mail/notmuch-emacs/Makefile')
-rw-r--r--mail/notmuch-emacs/Makefile67
1 files changed, 67 insertions, 0 deletions
diff --git a/mail/notmuch-emacs/Makefile b/mail/notmuch-emacs/Makefile
new file mode 100644
index 000000000000..f7f704228f8a
--- /dev/null
+++ b/mail/notmuch-emacs/Makefile
@@ -0,0 +1,67 @@
+# $FreeBSD$
+
+CATEGORIES= mail elisp
+PKGNAMESUFFIX= ${EMACS_PKGNAMESUFFIX}
+
+COMMENT= Emacs major-mode for the Notmuch email search and tagging application
+
+RUN_DEPENDS= notmuch:mail/notmuch
+
+USES= emacs gmake
+
+INSTALL_TARGET= install-emacs
+MAKE_ARGS+= subdirs+=emacs
+MASTERDIR= ${.CURDIR}/../notmuch
+NO_ARCH= yes
+
+OPTIONS_DEFINE= DESKTOP DOCS MANPAGES
+OPTIONS_DEFAULT= MANPAGES
+OPTIONS_SUB= yes
+
+DESKTOP_DESC= Install .desktop file for notmuch-emacs-mua
+
+DESKTOP_MAKE_ARGS= WITH_DESKTOP=1
+DESKTOP_USES= desktop-file-utils
+DOCS_BUILD_DEPENDS= sphinx-build:textproc/py-sphinx
+DOCS_INFO= notmuch-emacs
+DOCS_USES= makeinfo
+MANPAGES_ALL_TARGET= build-man
+MANPAGES_BUILD_DEPENDS= sphinx-build:textproc/py-sphinx
+MANPAGES_INSTALL_TARGET= install-man
+MANPAGES_MAKE_ARGS= subdirs+=doc
+
+# fake ./configure to avoid unneeded dependencies
+do-configure:
+ @${CP} ${WRKSRC}/version ${WRKSRC}/version.stamp
+ @${ECHO_CMD} 'quiet=$$($$(word 1, $$(1)))' > ${WRKSRC}/Makefile.local
+ @${PRINTF} \
+ '%s\n' \
+ desktop_dir=${PREFIX}/share/applications \
+ emacsetcdir=${PREFIX}/${EMACS_SITE_LISPDIR} \
+ emacslispdir=${PREFIX}/${EMACS_SITE_LISPDIR} \
+ HAVE_EMACS=1 \
+ HAVE_SPHINX=1 \
+ mandir=${MANPREFIX}/man \
+ prefix=${PREFIX} \
+ srcdir=. \
+ WITH_EMACS=1 \
+ > ${WRKSRC}/Makefile.config
+
+do-build-DOCS-on:
+ @${MAKE_CMD} -C ${WRKSRC} subdirs=doc sphinx-texinfo
+ @${MAKE_CMD} -C ${WRKSRC}/doc/_build/texinfo MAKEINFO='${MAKEINFO} --no-split' info
+
+do-install-DOCS-on:
+ ${INSTALL_MAN} ${WRKSRC}/doc/_build/texinfo/notmuch-emacs.info ${STAGEDIR}${PREFIX}/${INFO_PATH}
+
+post-install:
+ @${GZIP_CMD} ${STAGEDIR}${PREFIX}/${EMACS_SITE_LISPDIR}/*.el
+
+# keep poudriere testport happy
+post-install-MANPAGES-on:
+ @${FIND} ${STAGEDIR}${MANPREFIX}/man ! -type d ! -name notmuch-emacs-mua.1.gz -delete
+
+.include "${MASTERDIR}/Makefile"
+
+# modify what Mk/Uses/emacs.mk set
+MAKE_ARGS+= EMACS+=--quick