git: 1c891dfc4ca3 - main - math/gretl: Move manpages to share/man

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Wed, 27 Mar 2024 08:44:05 UTC
The branch main has been updated by arrowd:

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

commit 1c891dfc4ca39114fec874cc39f002a12398441f
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2024-03-27 08:42:30 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2024-03-27 08:42:46 +0000

    math/gretl: Move manpages to share/man
    
    Approved by:    portmgr (blanket)
---
 math/gretl/Makefile                |  2 +-
 math/gretl/files/patch-Makefile.in | 11 +++++++++++
 math/gretl/pkg-plist               |  2 +-
 3 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/math/gretl/Makefile b/math/gretl/Makefile
index 4b79c78257c5..21c66f078108 100644
--- a/math/gretl/Makefile
+++ b/math/gretl/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	gretl
 PORTVERSION=	2023c
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	math finance
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${DISTVERSIONFULL}/
 
diff --git a/math/gretl/files/patch-Makefile.in b/math/gretl/files/patch-Makefile.in
new file mode 100644
index 000000000000..8266a8dceb69
--- /dev/null
+++ b/math/gretl/files/patch-Makefile.in
@@ -0,0 +1,11 @@
+--- Makefile.in.orig	2024-03-27 08:35:51 UTC
++++ Makefile.in
+@@ -95,7 +95,7 @@ install-man:
+ 	$(MAKE) -C $(DOCDIR) install
+ 
+ install-man:
+-	$(tooldir)/install_man $(tooldir) $(DESTDIR)$(prefix) $(topsrc)/gretl.1
++	$(tooldir)/install_man $(tooldir) $(DESTDIR)$(prefix)/share $(topsrc)/gretl.1
+ 
+ tags:
+ 	etags $(topsrc)/lib/src/*.[ch] $(topsrc)/cli/*.[ch] \
diff --git a/math/gretl/pkg-plist b/math/gretl/pkg-plist
index 08b52fb12f69..c1f3bdbd85e8 100644
--- a/math/gretl/pkg-plist
+++ b/math/gretl/pkg-plist
@@ -144,7 +144,6 @@ lib/libgretl-1.0.so
 lib/libgretl-1.0.so.46
 lib/libgretl-1.0.so.46.0.0
 libdata/pkgconfig/gretl.pc
-man/man1/gretl.1.gz
 %%GUI%%share/applications/gretl.desktop
 %%GUI%%share/applications/gretl_edit.desktop
 %%GUI%%share/metainfo/gretl.appdata.xml
@@ -682,4 +681,5 @@ man/man1/gretl.1.gz
 %%NLS%%share/locale/uk/LC_MESSAGES/gretl.mo
 %%NLS%%share/locale/zh_CN/LC_MESSAGES/gretl.mo
 %%NLS%%share/locale/zh_TW/LC_MESSAGES/gretl.mo
+share/man/man1/gretl.1.gz
 %%GUI%%share/mime/packages/gretl.xml