git: d0b41bc68aae - 2024Q1 - archivers/lizard: move manpages to share/man

From: Hiroki Tagato <tagattie_at_FreeBSD.org>
Date: Wed, 31 Jan 2024 08:06:36 UTC
The branch 2024Q1 has been updated by tagattie:

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

commit d0b41bc68aae9ef19cf44a6ca9625cf6e5f0859f
Author:     Hiroki Tagato <tagattie@gmail.com>
AuthorDate: 2024-01-24 05:30:23 +0000
Commit:     Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2024-01-31 08:06:15 +0000

    archivers/lizard: move manpages to share/man
    
    Approved by:    portmgr (blanket)
    
    (cherry picked from commit 96fb67aad0aa8e2474c06ac75e7e424a30ce8cb7)
---
 archivers/lizard/Makefile                      |  1 +
 archivers/lizard/files/patch-programs_Makefile | 11 +++++++++++
 archivers/lizard/pkg-plist                     |  6 +++---
 3 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/archivers/lizard/Makefile b/archivers/lizard/Makefile
index e78de3026939..6703b5e74844 100644
--- a/archivers/lizard/Makefile
+++ b/archivers/lizard/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	lizard
 DISTVERSIONPREFIX=	v
 DISTVERSION=	1.0
+PORTREVISION=	1
 CATEGORIES=	archivers
 
 MAINTAINER=	tagattie@FreeBSD.org
diff --git a/archivers/lizard/files/patch-programs_Makefile b/archivers/lizard/files/patch-programs_Makefile
new file mode 100644
index 000000000000..b59f4fdb8799
--- /dev/null
+++ b/archivers/lizard/files/patch-programs_Makefile
@@ -0,0 +1,11 @@
+--- programs/Makefile.orig	2024-01-24 05:25:28 UTC
++++ programs/Makefile
+@@ -117,7 +117,7 @@ BINDIR  ?= $(PREFIX)/bin
+ DESTDIR ?=
+ BINDIR  ?= $(PREFIX)/bin
+ 
+-ifneq (,$(filter $(shell uname),OpenBSD FreeBSD NetBSD DragonFly SunOS))
++ifneq (,$(filter $(shell uname),OpenBSD NetBSD DragonFly SunOS))
+ MANDIR  ?= $(PREFIX)/man/man1
+ else
+ MANDIR  ?= $(PREFIX)/share/man/man1
diff --git a/archivers/lizard/pkg-plist b/archivers/lizard/pkg-plist
index df125082d16f..861efd21a5d2 100644
--- a/archivers/lizard/pkg-plist
+++ b/archivers/lizard/pkg-plist
@@ -9,6 +9,6 @@ lib/liblizard.so
 lib/liblizard.so.1
 lib/liblizard.so.1.0.0
 libdata/pkgconfig/liblizard.pc
-man/man1/lizard.1.gz
-man/man1/lizardcat.1.gz
-man/man1/unlizard.1.gz
+share/man/man1/lizard.1.gz
+share/man/man1/lizardcat.1.gz
+share/man/man1/unlizard.1.gz