git: f80c8bfa0d82 - main - graphics/gscan2pdf: Move man pages to share/man

From: Nuno Teixeira <eduardo_at_FreeBSD.org>
Date: Sat, 09 Mar 2024 12:58:47 UTC
The branch main has been updated by eduardo:

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

commit f80c8bfa0d82ca0a89a07d35cc6e99900a08924f
Author:     Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2024-03-09 11:54:32 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2024-03-09 12:58:23 +0000

    graphics/gscan2pdf: Move man pages to share/man
    
    Approved by:    portmgr (blanket)
---
 graphics/gscan2pdf/Makefile  | 5 ++---
 graphics/gscan2pdf/pkg-plist | 2 +-
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/graphics/gscan2pdf/Makefile b/graphics/gscan2pdf/Makefile
index 28abdc059e7a..863c4f5b925e 100644
--- a/graphics/gscan2pdf/Makefile
+++ b/graphics/gscan2pdf/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	gscan2pdf
 PORTVERSION=	2.13.2
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	graphics
 MASTER_SITES=	SF
 
@@ -71,8 +71,7 @@ TESSERACT_RUN_DEPENDS=	tesseract:graphics/tesseract
 
 post-patch:
 	@${REINPLACE_CMD} -e \
-		's|$$sharedir/man|$$prefixdir/man| ; \
-		 s|1p|1|' ${WRKSRC}/Makefile.PL
+		 's|1p|1|' ${WRKSRC}/Makefile.PL
 	@${REINPLACE_CMD} -e \
 		's|/usr/share|${PREFIX}/share|g' ${WRKSRC}/bin/${PORTNAME}
 
diff --git a/graphics/gscan2pdf/pkg-plist b/graphics/gscan2pdf/pkg-plist
index ef8c56e21aba..98e50e37adf3 100644
--- a/graphics/gscan2pdf/pkg-plist
+++ b/graphics/gscan2pdf/pkg-plist
@@ -26,7 +26,6 @@ bin/gscan2pdf
 %%SITE_PERL%%/Gscan2pdf/Tesseract.pm
 %%SITE_PERL%%/Gscan2pdf/Translation.pm
 %%SITE_PERL%%/Gscan2pdf/Unpaper.pm
-man/man1/gscan2pdf.1.gz
 share/applications/net.sourceforge.gscan2pdf.desktop
 %%DATADIR%%/180_degree.svg
 %%DATADIR%%/crop.svg
@@ -77,5 +76,6 @@ share/locale/tr/LC_MESSAGES/gscan2pdf.mo
 share/locale/uk/LC_MESSAGES/gscan2pdf.mo
 share/locale/zh_CN/LC_MESSAGES/gscan2pdf.mo
 share/locale/zh_TW/LC_MESSAGES/gscan2pdf.mo
+share/man/man1/gscan2pdf.1.gz
 share/metainfo/net.sourceforge.gscan2pdf.appdata.xml
 share/pixmaps/gscan2pdf.svg