git: aa24de6a2cf2 - main - chinese/cless: Moved man to share/man

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Thu, 22 Feb 2024 14:02:31 UTC
The branch main has been updated by bofh:

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

commit aa24de6a2cf20713e05319153349c39047da6d49
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-02-22 13:29:55 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-02-22 14:02:03 +0000

    chinese/cless: Moved man to share/man
    
    Approved by:    portmgr (blanket)
---
 chinese/cless/Makefile                |  2 ++
 chinese/cless/files/patch-Makefile.in | 15 ++++++++++++---
 chinese/cless/pkg-plist               |  4 ++--
 3 files changed, 16 insertions(+), 5 deletions(-)

diff --git a/chinese/cless/Makefile b/chinese/cless/Makefile
index 9704c6b56bce..88071f4f2cab 100644
--- a/chinese/cless/Makefile
+++ b/chinese/cless/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	cless
 PORTVERSION=	290
+PORTREVISION=	1
 CATEGORIES=	chinese
 MASTER_SITES=	ftp://ftp.cuhk.hk/pub/chinese/ifcss/software/unix/c-utils/
 
@@ -10,6 +11,7 @@ LICENSE=	BSD2CLAUSE
 
 USES=		ncurses
 GNU_CONFIGURE=	yes
+GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
 CFLAGS+=	-DHANZI # LDFLAGS=-s datadir=/usr/local/lib/less
 CPP=		#
 
diff --git a/chinese/cless/files/patch-Makefile.in b/chinese/cless/files/patch-Makefile.in
index f42322dc35ae..5b14c61e41c5 100644
--- a/chinese/cless/files/patch-Makefile.in
+++ b/chinese/cless/files/patch-Makefile.in
@@ -1,6 +1,15 @@
---- Makefile.in.orig	1995-04-25 10:41:39.000000000 +0800
-+++ Makefile.in	2014-01-08 23:13:25.000000000 +0800
-@@ -73,24 +73,24 @@ lesskey: lesskey.${O} version.${O}
+--- Makefile.in.orig	1995-04-25 02:41:39 UTC
++++ Makefile.in
+@@ -27,7 +27,7 @@ datadir = ${prefix}/share
+ # Where the help file goes.
+ datadir = ${prefix}/share
+ 
+-mandir = ${prefix}/man/man${manext}
++mandir = ${prefix}/share/man/man${manext}
+ manext = 1
+ manprefix = 
+ 
+@@ -73,24 +73,24 @@ filename.${O}: filename.c
  ${OBJ}: less.h defines.h funcs.h
  
  filename.${O}: filename.c
diff --git a/chinese/cless/pkg-plist b/chinese/cless/pkg-plist
index 762aa48d6578..bda7b9206944 100644
--- a/chinese/cless/pkg-plist
+++ b/chinese/cless/pkg-plist
@@ -1,7 +1,7 @@
 bin/cless
 bin/clesskey
-man/man1/cless.1.gz
-man/man1/clesskey.1.gz
+share/man/man1/cless.1.gz
+share/man/man1/clesskey.1.gz
 share/cless.bg5
 share/cless.gb
 share/cless.hlp