From owner-svn-ports-all@freebsd.org Fri Jul 19 14:14:46 2019 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 20A88A3AD8; Fri, 19 Jul 2019 14:14:46 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F39E76F1BC; Fri, 19 Jul 2019 14:14:45 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id CEFB0221B7; Fri, 19 Jul 2019 14:14:45 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x6JEEjnV020519; Fri, 19 Jul 2019 14:14:45 GMT (envelope-from swills@FreeBSD.org) Received: (from swills@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x6JEEjbs020518; Fri, 19 Jul 2019 14:14:45 GMT (envelope-from swills@FreeBSD.org) Message-Id: <201907191414.x6JEEjbs020518@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: swills set sender to swills@FreeBSD.org using -f From: Steve Wills Date: Fri, 19 Jul 2019 14:14:45 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r506936 - head/sysutils/less X-SVN-Group: ports-head X-SVN-Commit-Author: swills X-SVN-Commit-Paths: head/sysutils/less X-SVN-Commit-Revision: 506936 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: F39E76F1BC X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.95 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.95)[-0.948,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Jul 2019 14:14:46 -0000 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 .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