Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Nov 2020 16:17:58 +0000 (UTC)
From:      "Sergey A. Osokin" <osa@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r556114 - head/www/unit
Message-ID:  <202011231617.0ANGHwrQ062273@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: osa
Date: Mon Nov 23 16:17:57 2020
New Revision: 556114
URL: https://svnweb.freebsd.org/changeset/ports/556114

Log:
  Add more logic for regular expressions support, continue using devel/pcre2
  by default.
  
  Bump PORTREVISION.

Modified:
  head/www/unit/Makefile

Modified: head/www/unit/Makefile
==============================================================================
--- head/www/unit/Makefile	Mon Nov 23 16:13:15 2020	(r556113)
+++ head/www/unit/Makefile	Mon Nov 23 16:17:57 2020	(r556114)
@@ -3,7 +3,7 @@
 
 PORTNAME=	unit
 PORTVERSION=	1.21.0
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	www
 MASTER_SITES?=	https://unit.nginx.org/download/
 
@@ -21,14 +21,19 @@ CPE_PRODUCT=	unit
 OPTIONS_DEFINE?=	\
 	DEBUG \
 	IPV6 \
-	PCRE2 \
 	SSL \
 	UNIXSOCK
 OPTIONS_DEFAULT?=	IPV6 PCRE2 SSL UNIXSOCK
 
+OPTIONS_RADIO+=		REGEX
+OPTIONS_RADIO_REGEX=	NOPCRE PCRE PCRE2
+
 DEBUG_DESC=	Enable debug logging
 DEVKIT_DESC=	Install headers and library
-PCRE2_DESC=	Enable PCRE2 support
+REGEX_DESC=	Support regular expressions
+NOPCRE_DESC=	No support for Regular Expressions
+PCRE_DESC=	Regular Expressions via devel/pcre
+PCRE2_DESC=	Regular Expressions via devel/pcre2
 SSL_DESC=	Enable SSL/TLS
 UNIXSOCK_DESC=	Enable unix sockets
 
@@ -78,9 +83,16 @@ CONFIGURE_ARGS+=--debug
 CONFIGURE_ARGS+=--no-ipv6
 .endif
 
-.if empty(PORT_OPTIONS:MPCRE2)
+.if ${PORT_OPTIONS:MNOPCRE}
+CONFIGURE_ARGS+=--no-regex
+.endif
+
+.if ${PORT_OPTIONS:MPCRE}
 CONFIGURE_ARGS+=--no-pcre2
-.else
+LIB_DEPENDS+=	libpcre.so:devel/pcre
+.endif
+
+.if ${PORT_OPTIONS:MPCRE2}
 LIB_DEPENDS+=	libpcre2-8.so:devel/pcre2
 .endif
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202011231617.0ANGHwrQ062273>