blob: 47e178ee18f7ce771b8beb5e0c7997d7d2bc9799 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
PORTREVISION= 1
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
PORTSCOUT= limit:^[0-9\.]*$$
# fake ./configure to avoid unneeded dependencies
do-configure:
@${CP} ${WRKSRC}/version.txt ${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
@${PRINTF} "tags.add('WITH_EMACS')\nrsti_dir = '${WRKSRC}/emacs'\n" \
> ${WRKSRC}/sphinx.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"
|