Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Jul 2019 14:14:45 +0000 (UTC)
From:      Steve Wills <swills@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r506936 - head/sysutils/less
Message-ID:  <201907191414.x6JEEjbs020518@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: swills
Date: Fri Jul 19 14:14:45 2019
New Revision: 506936
URL: https://svnweb.freebsd.org/changeset/ports/506936

Log:
  sysutils/less: add pcre option, clean up, enable color and pcre options
  
  PR:		239225
  Approved by:	jharris@widomaker.com (maintainer)

Modified:
  head/sysutils/less/Makefile   (contents, props changed)

Modified: head/sysutils/less/Makefile
==============================================================================
--- head/sysutils/less/Makefile	Fri Jul 19 14:12:54 2019	(r506935)
+++ head/sysutils/less/Makefile	Fri Jul 19 14:14:45 2019	(r506936)
@@ -3,6 +3,7 @@
 
 PORTNAME=	less
 PORTVERSION=	530
+PORTREVISION=	1
 CATEGORIES=	sysutils
 MASTER_SITES=	http://www.greenwoodsoftware.com/less/ \
 		http://bitrote.org/distfiles/
@@ -13,24 +14,36 @@ COMMENT=	Better pager utility
 LICENSE=	GPLv3
 
 USES=		cpe ncurses
-CPE_VENDOR=	gnu
 
+CPE_VENDOR=	gnu
 GNU_CONFIGURE=	yes
 
-PLIST_FILES=	bin/less bin/lesskey bin/lessecho \
-		man/man1/less.1.gz man/man1/lesskey.1.gz \
-		man/man1/lessecho.1.gz
+PLIST_FILES=	bin/less \
+		bin/lessecho \
+		bin/lesskey \
+		man/man1/less.1.gz \
+		man/man1/lessecho.1.gz \
+		man/man1/lesskey.1.gz
 
-OPTIONS_DEFINE=	COLORS
+OPTIONS_DEFINE=		COLORS PCRE
+OPTIONS_DEFAULT=	COLORS PCRE
+
+PCRE_USES=		localbase
+PCRE_LIB_DEPENDS=	libpcre.so:devel/pcre
+
 COLORS_DESC=	Enable colors support via escape sequence
 
 .include <bsd.port.options.mk>
 
 .if ${PORT_OPTIONS:MCOLORS}
 CPPFLAGS+=	-DCOLOR_LESS
+.endif
 
-pre-fetch:
-	@${ECHO_MSG} "Making a color version of less."
+.if ${PORT_OPTIONS:MPCRE}
+CONFIGURE_ARGS+=	--with-regex=pcre
+LDFLAGS+=		-L${LOCALBASE}/lib -lpcre
+.else
+CONFIGURE_ARGS+=	--with-regex=posix
 .endif
 
 .include <bsd.port.mk>



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