Lines 1-6
Link Here
|
1 |
# $FreeBSD$ |
1 |
# $FreeBSD$ |
2 |
|
2 |
|
3 |
PORTREVISION= 1 |
|
|
4 |
CATEGORIES= mail elisp |
3 |
CATEGORIES= mail elisp |
5 |
PKGNAMESUFFIX= ${EMACS_PKGNAMESUFFIX} |
4 |
PKGNAMESUFFIX= ${EMACS_PKGNAMESUFFIX} |
6 |
|
5 |
|
Lines 11-17
RUN_DEPENDS= notmuch:mail/notmuch
Link Here
|
11 |
USES= emacs gmake |
10 |
USES= emacs gmake |
12 |
|
11 |
|
13 |
INSTALL_TARGET= install-emacs |
12 |
INSTALL_TARGET= install-emacs |
14 |
MAKE_ARGS+= subdirs+=emacs |
|
|
15 |
MASTERDIR= ${.CURDIR}/../notmuch |
13 |
MASTERDIR= ${.CURDIR}/../notmuch |
16 |
NO_ARCH= yes |
14 |
NO_ARCH= yes |
17 |
|
15 |
|
Lines 21-35
OPTIONS_SUB= yes
Link Here
|
21 |
|
19 |
|
22 |
DESKTOP_DESC= Install .desktop file for notmuch-emacs-mua |
20 |
DESKTOP_DESC= Install .desktop file for notmuch-emacs-mua |
23 |
|
21 |
|
24 |
DESKTOP_MAKE_ARGS= WITH_DESKTOP=1 |
22 |
DESKTOP_CONFIGURE_ON= WITH_DESKTOP=1 |
25 |
DESKTOP_USES= desktop-file-utils |
23 |
DESKTOP_USES= desktop-file-utils |
|
|
24 |
DOCS_ALL_TARGET= build-info |
26 |
DOCS_BUILD_DEPENDS= sphinx-build:textproc/py-sphinx |
25 |
DOCS_BUILD_DEPENDS= sphinx-build:textproc/py-sphinx |
|
|
26 |
DOCS_CONFIGURE_ON= HAVE_INSTALL_INFO=1 HAVE_MAKEINFO=1 HAVE_SPHINX=1 |
27 |
DOCS_INFO= notmuch-emacs |
27 |
DOCS_INFO= notmuch-emacs |
|
|
28 |
DOCS_INSTALL_TARGET= install-info |
28 |
DOCS_USES= makeinfo |
29 |
DOCS_USES= makeinfo |
29 |
MANPAGES_ALL_TARGET= build-man |
30 |
MANPAGES_ALL_TARGET= build-man |
30 |
MANPAGES_BUILD_DEPENDS= sphinx-build:textproc/py-sphinx |
31 |
MANPAGES_BUILD_DEPENDS= sphinx-build:textproc/py-sphinx |
|
|
32 |
MANPAGES_CONFIGURE_ON= HAVE_SPHINX=1 |
31 |
MANPAGES_INSTALL_TARGET= install-man |
33 |
MANPAGES_INSTALL_TARGET= install-man |
32 |
MANPAGES_MAKE_ARGS= subdirs+=doc |
|
|
33 |
|
34 |
|
34 |
# fake ./configure to avoid unneeded dependencies |
35 |
# fake ./configure to avoid unneeded dependencies |
35 |
do-configure: |
36 |
do-configure: |
Lines 41-64
do-configure:
Link Here
|
41 |
emacsetcdir=${PREFIX}/${EMACS_SITE_LISPDIR} \ |
42 |
emacsetcdir=${PREFIX}/${EMACS_SITE_LISPDIR} \ |
42 |
emacslispdir=${PREFIX}/${EMACS_SITE_LISPDIR} \ |
43 |
emacslispdir=${PREFIX}/${EMACS_SITE_LISPDIR} \ |
43 |
HAVE_EMACS=1 \ |
44 |
HAVE_EMACS=1 \ |
44 |
HAVE_SPHINX=1 \ |
45 |
infodir=${PREFIX}/${INFO_PATH} \ |
45 |
mandir=${MANPREFIX}/man \ |
46 |
mandir=${MANPREFIX}/man \ |
|
|
47 |
NOTMUCH_SRCDIR=${WRKSRC} \ |
46 |
prefix=${PREFIX} \ |
48 |
prefix=${PREFIX} \ |
47 |
srcdir=. \ |
49 |
srcdir=. \ |
|
|
50 |
subdirs='doc emacs' \ |
48 |
WITH_EMACS=1 \ |
51 |
WITH_EMACS=1 \ |
|
|
52 |
${CONFIGURE_ARGS} \ |
49 |
> ${WRKSRC}/Makefile.config |
53 |
> ${WRKSRC}/Makefile.config |
50 |
|
54 |
|
51 |
do-build-DOCS-on: |
55 |
# work around race condition in Sphinx (cf. PR-227460) |
52 |
@${MAKE_CMD} -C ${WRKSRC} subdirs=doc sphinx-texinfo |
56 |
pre-build: |
53 |
@${MAKE_CMD} -C ${WRKSRC}/doc/_build/texinfo MAKEINFO='${MAKEINFO} --no-split' info |
57 |
@${MKDIR} ${WRKSRC}/doc/_build/doctrees |
54 |
|
|
|
55 |
do-install-DOCS-on: |
56 |
${INSTALL_MAN} ${WRKSRC}/doc/_build/texinfo/notmuch-emacs.info ${STAGEDIR}${PREFIX}/${INFO_PATH} |
57 |
|
58 |
|
58 |
post-install: |
59 |
post-install: |
59 |
@${GZIP_CMD} ${STAGEDIR}${PREFIX}/${EMACS_SITE_LISPDIR}/*.el |
60 |
@${GZIP_CMD} ${STAGEDIR}${PREFIX}/${EMACS_SITE_LISPDIR}/*.el |
60 |
|
61 |
|
61 |
# keep poudriere testport happy |
62 |
# keep poudriere testport happy |
|
|
63 |
post-install-DOCS-on: |
64 |
@${FIND} ${STAGEDIR}${PREFIX}/${INFO_PATH} ! -type d ! -name notmuch-emacs.info -delete |
65 |
|
62 |
post-install-MANPAGES-on: |
66 |
post-install-MANPAGES-on: |
63 |
@${FIND} ${STAGEDIR}${MANPREFIX}/man ! -type d ! -name notmuch-emacs-mua.1.gz -delete |
67 |
@${FIND} ${STAGEDIR}${MANPREFIX}/man ! -type d ! -name notmuch-emacs-mua.1.gz -delete |
64 |
|
68 |
|