[Bug 270362] devel/tig: update to 2.5.8

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 20 Mar 2023 15:24:56 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270362

            Bug ID: 270362
           Summary: devel/tig: update to 2.5.8
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: 0mp@FreeBSD.org
          Reporter: jcfyecrayz@liamekaens.com
             Flags: maintainer-feedback?(0mp@FreeBSD.org)
          Assignee: 0mp@FreeBSD.org

The attached patch updates tig from 2.5.5 (20220111) to 2.5.8 (20230204).

It also fixes a missing dependency.  If pcre2 (or pcre) is detected during
'configure', it will enable the pcre library during the build.

If so, 'make stage-qa' will complain:

Error: /usr/local/bin/tig is linked to /usr/local/lib/libpcre2-posix.so.3 from
devel/pcre2 but it is not declared as a dependency
Warning: you need LIB_DEPENDS+=libpcre2-posix.so:devel/pcre2

The patch also adds a PCRE option that explicity enables / disables pcre as
desired.  The default state of the PCRE option is off which is just like how
packages are build in a package builder environment where the pcre package is
not installed.  But I have no problem with having it on by default (committer's
discretion).  The advantage is that it allows users to search via regexp which
is a useful tool.  The pcre libs have a friendly BSD3CLAUSE license.

While here, tweak some sorting / formatting as hinted by portfmt/portclippy.

QA:
 - poudriere testport (ok - 12-stable/amd64 & i386)

-- 
You are receiving this mail because:
You are the assignee for the bug.