git: 6901714ddec2 - main - textproc/ugrep: Install man pages under share/man

From: Joseph Mingrone <jrm_at_FreeBSD.org>
Date: Mon, 26 Feb 2024 19:44:56 UTC
The branch main has been updated by jrm:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6901714ddec281d5de271bc09642893869a8e876

commit 6901714ddec281d5de271bc09642893869a8e876
Author:     Joseph Mingrone <jrm@FreeBSD.org>
AuthorDate: 2024-02-26 19:02:26 +0000
Commit:     Joseph Mingrone <jrm@FreeBSD.org>
CommitDate: 2024-02-26 19:44:49 +0000

    textproc/ugrep: Install man pages under share/man
    
    Approved by:    ashish (maintainer)
    Sponsored by:   The FreeBSD Foundation
---
 textproc/ugrep/Makefile  | 2 ++
 textproc/ugrep/pkg-plist | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/textproc/ugrep/Makefile b/textproc/ugrep/Makefile
index f8e395f4917c..28ffde30b3dc 100644
--- a/textproc/ugrep/Makefile
+++ b/textproc/ugrep/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	ugrep
 DISTVERSIONPREFIX=	v
+PORTREVISION=	1
 DISTVERSION=	5.0.0
 CATEGORIES=	textproc
 
@@ -25,6 +26,7 @@ GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=--with-bash-completion-dir=${PREFIX}/etc/bash_completion.d \
 		--with-fish-completion-dir=${PREFIX}/share/fish/completions \
 		--with-zsh-completion-dir=${PREFIX}/share/zsh/site-functions
+GNU_CONFIGURE_MANPREFIX=	${PREFIX}/share
 
 SHEBANG_FILES=	bin/ug+ bin/ugrep+
 bash_CMD=	${SH}
diff --git a/textproc/ugrep/pkg-plist b/textproc/ugrep/pkg-plist
index 91c39bec9ada..27730963035d 100644
--- a/textproc/ugrep/pkg-plist
+++ b/textproc/ugrep/pkg-plist
@@ -2,8 +2,8 @@ bin/ug
 bin/ugrep
 bin/ug+
 bin/ugrep+
-man/man1/ug.1.gz
-man/man1/ugrep.1.gz
+share/man/man1/ug.1.gz
+share/man/man1/ugrep.1.gz
 %%DATADIR%%/patterns/README.md
 %%DATADIR%%/patterns/c++/README.md
 %%DATADIR%%/patterns/c++/classes