1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-21 08:42:23 +00:00
freebsd-ports/mail/notmuch-emacs/Makefile
Fernando Apesteguía 826ff513f1 mail/notmuch: update to 0.29.1
- The sources are now compressed with xz instead of gzip.
- Support for GMime 2.6 was dropped and GMime 3.0.3 or later is required now.
- drop workaround for info(1) on FreeBSD 10 since it's no longer supported
- drop workaround for Sphinx since another one was included in notmuch's upstream

ChangeLog: https://notmuchmail.org/pipermail/notmuch/2019/028257.html

PR:	238418
Submitted by:	seschwar@gmail.com (maintainer)
2019-06-13 21:27:41 +00:00

73 lines
1.9 KiB
Makefile

# $FreeBSD$
CATEGORIES= mail elisp
PKGNAMESUFFIX= ${EMACS_PKGNAMESUFFIX}
COMMENT= Emacs major-mode for the Notmuch email search and tagging application
LICENSE= GPLv3
RUN_DEPENDS= notmuch:mail/notmuch
USES= emacs gmake
INSTALL_TARGET= install-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_CONFIGURE_ON= WITH_DESKTOP=1
DESKTOP_USES= desktop-file-utils
DOCS_ALL_TARGET= build-info
DOCS_BUILD_DEPENDS= sphinx-build:textproc/py-sphinx
DOCS_CONFIGURE_ON= HAVE_INSTALL_INFO=1 HAVE_MAKEINFO=1 HAVE_SPHINX=1
DOCS_INFO= notmuch-emacs
DOCS_INSTALL_TARGET= install-info
DOCS_USES= makeinfo
MANPAGES_ALL_TARGET= build-man
MANPAGES_BUILD_DEPENDS= sphinx-build:textproc/py-sphinx
MANPAGES_CONFIGURE_ON= HAVE_SPHINX=1
MANPAGES_INSTALL_TARGET= install-man
# 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' \
BASH_ABSOLUTE=/bin/sh \
desktop_dir=${PREFIX}/share/applications \
emacsetcdir=${PREFIX}/${EMACS_SITE_LISPDIR} \
emacslispdir=${PREFIX}/${EMACS_SITE_LISPDIR} \
HAVE_BASH=1 \
HAVE_EMACS=1 \
infodir=${PREFIX}/${INFO_PATH} \
mandir=${MANPREFIX}/man \
NOTMUCH_SRCDIR=${WRKSRC} \
prefix=${PREFIX} \
srcdir=. \
subdirs='doc emacs' \
WITH_EMACS=1 \
${CONFIGURE_ARGS} \
> ${WRKSRC}/Makefile.config
post-install:
@${GZIP_CMD} ${STAGEDIR}${PREFIX}/${EMACS_SITE_LISPDIR}/*.el
# keep poudriere testport happy
post-install-DOCS-on:
@${FIND} ${STAGEDIR}${PREFIX}/${INFO_PATH} ! -type d ! -name notmuch-emacs.info -delete
post-install-MANPAGES-on:
@${FIND} ${STAGEDIR}${MANPREFIX}/man ! -type d ! -name notmuch-emacs-mua.1.gz -delete
# modify what Mk/Uses/emacs.mk set
MAKE_ARGS+= EMACS+=--quick
.include "${MASTERDIR}/Makefile"