git: 7223e2f99a16 - main - cad/ngspice_rework: Move man pages to share/man

From: Nuno Teixeira <eduardo_at_FreeBSD.org>
Date: Sun, 03 Mar 2024 00:06:38 UTC
The branch main has been updated by eduardo:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7223e2f99a168af48e35f37ce4f844dcd7ea9b5d

commit 7223e2f99a168af48e35f37ce4f844dcd7ea9b5d
Author:     Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2024-03-02 23:31:19 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2024-03-02 23:32:29 +0000

    cad/ngspice_rework: Move man pages to share/man
    
    Approved by:    portmgr (blanket)
---
 cad/ngspice_rework/Makefile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/cad/ngspice_rework/Makefile b/cad/ngspice_rework/Makefile
index a774d6a129b1..3698f6d97b7b 100644
--- a/cad/ngspice_rework/Makefile
+++ b/cad/ngspice_rework/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	ngspice_rework
 PORTVERSION=	41
+PORTREVISION=	1
 CATEGORIES=	cad
 MASTER_SITES=	SF/ngspice/ng-spice-rework/${PORTVERSION}
 DISTNAME=	ngspice-${PORTVERSION}
@@ -22,6 +23,7 @@ USES=		compiler:c11 gmake libtool ncurses readline autoreconf pkgconfig
 
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--enable-cider --enable-xspice --with-readline=yes
+GNU_CONFIGURE_MANPREFIX=	${PREFIX}/share
 
 OPTIONS_DEFINE=	DEBUG
 
@@ -32,10 +34,10 @@ CONFIGURE_ARGS+=	--with-ngshared --enable-shared
 USES+=			xorg
 USE_XORG=		ice sm x11 xaw xext xmu xt xft
 CONFIGURE_ARGS+=	--with-x
-PLIST_FILES=		bin/ngspice man/man1/ngspice.1.gz
+PLIST_FILES=		bin/ngspice share/man/man1/ngspice.1.gz
 post-install:
 	@cd ${STAGEDIR}${PREFIX} && \
-		${RM} -r include lib share && \
+		${RM} -r include lib share/ngspice && \
 		${RM} bin/cmpp man/man1/cmpp.1
 .endif