git: 9a2c9f6d943c - main - textproc/mdocml: Moved man to share/man

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Mon, 26 Feb 2024 08:06:45 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9a2c9f6d943cd2a9bd6abfc0a5082ad875aab7c3

commit 9a2c9f6d943cd2a9bd6abfc0a5082ad875aab7c3
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-02-26 08:01:46 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-02-26 08:06:02 +0000

    textproc/mdocml: Moved man to share/man
    
    Approved by:    portmgr (blanket)
---
 textproc/mdocml/Makefile  |  2 ++
 textproc/mdocml/pkg-plist | 30 +++++++++++++++---------------
 2 files changed, 17 insertions(+), 15 deletions(-)

diff --git a/textproc/mdocml/Makefile b/textproc/mdocml/Makefile
index ef5fa8c79059..30d1e610807b 100644
--- a/textproc/mdocml/Makefile
+++ b/textproc/mdocml/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	mdocml
 PORTVERSION=	1.14.6
+PORTREVISION=	1
 CATEGORIES=	textproc
 MASTER_SITES=	http://mdocml.bsd.lv/snapshots/ \
 		LOCAL/uqs
@@ -24,6 +25,7 @@ post-configure:
 	@${REINPLACE_CMD} -e '/^CFLAGS/s/=/?=/' -e '/^PREFIX/s/=/?=/' \
 		-e 's/^INSTALL_PROGRAM.*/INSTALL_PROGRAM=${INSTALL_PROGRAM}/' \
 		-e 's|/var/www|${WWWDIR}|' \
+		-e 's|^MANDIR.*|MANDIR=${PREFIX}/share/man|' \
 		${WRKSRC}/Makefile.local
 	cp ${WRKSRC}/cgi.h.example ${WRKSRC}/cgi.h
 
diff --git a/textproc/mdocml/pkg-plist b/textproc/mdocml/pkg-plist
index 0e1bcf8dca17..e7106c0d7e89 100644
--- a/textproc/mdocml/pkg-plist
+++ b/textproc/mdocml/pkg-plist
@@ -4,21 +4,21 @@ bin/demandoc
 bin/mandoc
 bin/soelim
 bin/whatis
-man/man1/apropos.1.gz
-man/man1/demandoc.1.gz
-@comment man/man1/man.1.gz
-man/man1/mandoc.1.gz
-man/man1/soelim.1.gz
-man/man1/whatis.1.gz
-man/man5/man.conf.5.gz
-man/man5/mandoc.db.5.gz
-man/man7/eqn.7.gz
-man/man7/man.7.gz
-man/man7/mandoc_char.7.gz
-man/man7/mdoc.7.gz
-@comment man/man7/roff.7.gz
-man/man7/tbl.7.gz
-man/man8/makewhatis.8.gz
+share/man/man1/apropos.1.gz
+share/man/man1/demandoc.1.gz
+@comment share/man/man1/man.1.gz
+share/man/man1/mandoc.1.gz
+share/man/man1/soelim.1.gz
+share/man/man1/whatis.1.gz
+share/man/man5/man.conf.5.gz
+share/man/man5/mandoc.db.5.gz
+share/man/man7/eqn.7.gz
+share/man/man7/man.7.gz
+share/man/man7/mandoc_char.7.gz
+share/man/man7/mdoc.7.gz
+@comment share/man/man7/roff.7.gz
+share/man/man7/tbl.7.gz
+share/man/man8/makewhatis.8.gz
 sbin/makewhatis
 %%WWWDIR%%/cgi-bin/man.cgi
 %%WWWDIR%%/htdocs/mandoc.css