mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-19 03:52:17 +00:00
ca49c77afc
- add LICENSE to pet portlint - remove BROKEN_powerpc64 since the cause has been fixed in ports r471400 - adjust to upstream's new info page handling - fix parallel installation of flavored mail/py-notmuch PR: 229075 Submitted by: Sebastian Schwarz <seschwar@gmail.com> (maintainer) Relnotes: https://notmuchmail.org/pipermail/notmuch/2018/026684.html
81 lines
2.2 KiB
Makefile
81 lines
2.2 KiB
Makefile
# Created by: DarwinSurvivor <darwinsurvivor@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= notmuch
|
|
PORTVERSION= 0.27
|
|
CATEGORIES?= mail
|
|
MASTER_SITES= https://notmuchmail.org/releases/
|
|
|
|
MAINTAINER= seschwar@gmail.com
|
|
COMMENT?= Thread-based email index, search and tagging application
|
|
|
|
LICENSE= GPLv3
|
|
LICENSE_FILE= ${WRKSRC}/${WRKSRC_SUBDIR:C/[^\/]+/../g}/COPYING-GPL-3
|
|
|
|
.ifndef MASTERDIR
|
|
LIB_DEPENDS= libgmime-2.6.so:mail/gmime26 \
|
|
libxapian.so:databases/xapian-core \
|
|
libtalloc.so:devel/talloc
|
|
TEST_DEPENDS= bash:shells/bash \
|
|
emacs:editors/emacs@nox \
|
|
dtach:misc/dtach \
|
|
gdate:sysutils/coreutils \
|
|
gbase64:sysutils/coreutils \
|
|
gsed:textproc/gsed \
|
|
gsha256sum:sysutils/coreutils \
|
|
gpg:security/gnupg \
|
|
gwc:sysutils/coreutils \
|
|
${LOCALBASE}/bin/gdb:devel/gdb
|
|
|
|
USES= gmake pkgconfig python:build,test
|
|
USE_GNOME= glib20
|
|
USE_LDCONFIG= yes
|
|
|
|
HAS_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --infodir=${PREFIX}/${INFO_PATH} \
|
|
--mandir=${MANPREFIX}/man \
|
|
--prefix=${PREFIX} \
|
|
--with-bash-completion \
|
|
--with-retry-lock \
|
|
--with-zsh-completion \
|
|
--without-emacs
|
|
CONFIGURE_ENV+= PYTHON=${PYTHON_CMD}
|
|
TEST_ENV+= NOTMUCH_SKIP_TESTS="basic.12 count.14 insert.2[89] insert.3[0-9] message-property.6 regexp-query.21" \
|
|
TEST_CFLAGS="-g -O0 -I${LOCALBASE}/include -L${LOCALBASE}/lib" \
|
|
TEST_GDB=${LOCALBASE}/bin/gdb \
|
|
V=1
|
|
TEST_TARGET= test
|
|
.endif
|
|
|
|
PATCH_WRKSRC= ${WRKSRC}/${WRKSRC_SUBDIR:C/[^\/]+/../g}
|
|
PKGDIR= ${.CURDIR}
|
|
|
|
.ifndef MASTERDIR
|
|
OPTIONS_DEFINE= DOXYGEN MANPAGES
|
|
OPTIONS_DEFAULT= MANPAGES
|
|
OPTIONS_SUB= yes
|
|
|
|
DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen
|
|
DOXYGEN_CONFIGURE_WITH= api-docs
|
|
MANPAGES_BUILD_DEPENDS= sphinx-build:textproc/py-sphinx
|
|
MANPAGES_CONFIGURE_WITH= docs
|
|
|
|
# install completions even in absence of shells/bash-completions
|
|
post-configure:
|
|
${REINPLACE_CMD} \
|
|
-e '/^HAVE_INSTALL_INFO[[:blank:]]*=/s/=.*/=0/' \
|
|
-e '/^HAVE_MAKEINFO[[:blank:]]*=/s/=.*/=0/' \
|
|
-e '/^WITH_BASH[[:blank:]]*=/s/=.*/= 1/' \
|
|
${WRKSRC}/Makefile.config
|
|
|
|
post-install:
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/notmuch
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libnotmuch.so.?*.?*.?*
|
|
|
|
# keep poudriere testport happy
|
|
post-install-MANPAGES-on:
|
|
@${RM} ${STAGEDIR}${MANPREFIX}/man/man1/notmuch-emacs-mua.1.gz
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|