Add a default option to use utf8proc for Unicode normalization,

case-folding, and other operations.

It is substantially better and more up-to-date than the libc functions
providing the same features.

PR:		234822
Submitted by:	David O'Rourke
This commit is contained in:
Mathieu Arnold 2019-04-10 16:01:38 +00:00
parent 579a33ee33
commit f52b8e5cc5

View file

@ -3,6 +3,7 @@
PORTNAME= tmux
PORTVERSION= 2.8
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= https://github.com/tmux/tmux/releases/download/${PORTVERSION}/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
@ -30,10 +31,12 @@ PLIST_FILES= bin/tmux \
PORTDOCS= CHANGES README TODO
PORTEXAMPLES= *
OPTIONS_DEFINE= DOCS EXAMPLES LIBEVENT_STATIC BACKSPACE
OPTIONS_DEFINE= DOCS EXAMPLES LIBEVENT_STATIC BACKSPACE UTF8PROC
OPTIONS_DEFAULT= UTF8PROC
LIBEVENT_STATIC_DESC= Build with static libevent
BACKSPACE_DESC= Build with tty/keys patch
UTF8PROC_DESC= Build with utf8proc support
BACKSPACE_EXTRA_PATCHES= ${PATCHDIR}/extra-patch-tty-keys.c
@ -41,6 +44,9 @@ LIBEVENT_STATIC_LIB_DEPENDS_OFF= libevent.so:devel/libevent
LIBEVENT_STATIC_BUILD_DEPENDS= ${LOCALBASE}/lib/libevent.a:devel/libevent
LIBEVENT_STATIC_VARS= LESTATIC=${LOCALBASE}/lib/libevent.a
UTF8PROC_CONFIGURE_ENABLE= utf8proc
UTF8PROC_LIB_DEPENDS= libutf8proc.so:textproc/utf8proc
post-patch:
@${REINPLACE_CMD} -e 's|/etc/tmux.conf|${PREFIX}/etc/tmux.conf|g' ${WRKSRC}/CHANGES \
${WRKSRC}/tmux.h