git: 45f2464d8a6b - main - textproc/peg: Install man pages under share/man

From: Joseph Mingrone <jrm_at_FreeBSD.org>
Date: Mon, 26 Feb 2024 18:41:24 UTC
The branch main has been updated by jrm:

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

commit 45f2464d8a6bab0c8e41f506577f97d4a4cf7135
Author:     Joseph Mingrone <jrm@FreeBSD.org>
AuthorDate: 2024-02-26 18:12:26 +0000
Commit:     Joseph Mingrone <jrm@FreeBSD.org>
CommitDate: 2024-02-26 18:41:13 +0000

    textproc/peg: Install man pages under share/man
    
    Sponsored by:   The FreeBSD Foundation
---
 textproc/peg/Makefile             | 3 ++-
 textproc/peg/files/patch-Makefile | 9 ++++++---
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/textproc/peg/Makefile b/textproc/peg/Makefile
index 5b0e87949548..76a7fcecd3ae 100644
--- a/textproc/peg/Makefile
+++ b/textproc/peg/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	peg
 DISTVERSION=	0.1.19
+PORTREVISION=	1
 CATEGORIES=	textproc
 MASTER_SITES=	https://www.piumarta.com/software/peg/
 
@@ -13,7 +14,7 @@ USES=		gmake
 
 PLIST_FILES=	bin/leg \
 		bin/peg \
-		man/man1/peg.1.gz
+		share/man/man1/peg.1.gz
 
 post-patch:
 	@${REINPLACE_CMD} -e 's,%%STAGEDIR%%,${STAGEDIR},g' \
diff --git a/textproc/peg/files/patch-Makefile b/textproc/peg/files/patch-Makefile
index dcba9dc57e3a..62bc6e1c443f 100644
--- a/textproc/peg/files/patch-Makefile
+++ b/textproc/peg/files/patch-Makefile
@@ -1,4 +1,4 @@
---- Makefile.orig	2016-07-22 00:55:15 UTC
+--- Makefile.orig	2023-11-19 06:10:00 UTC
 +++ Makefile
 @@ -1,4 +1,4 @@
 -CFLAGS = -g -Wall $(OFLAGS) $(XFLAGS) -Isrc
@@ -6,7 +6,7 @@
  OFLAGS = -O3 -DNDEBUG
  #OFLAGS = -pg
  
-@@ -14,8 +14,8 @@ leg : leg.o $(OBJS)
+@@ -14,10 +14,10 @@ leg : leg.o $(OBJS)
  	$(CC) $(CFLAGS) -o $@-new leg.o $(OBJS)
  	mv $@-new $@
  
@@ -15,5 +15,8 @@
 +ROOT	= %%STAGEDIR%%
 +PREFIX	= %%PREFIX%%
  BINDIR	= $(ROOT)$(PREFIX)/bin
- MANDIR	= $(ROOT)$(PREFIX)/man/man1
+-MANDIR	= $(ROOT)$(PREFIX)/man/man1
++MANDIR	= $(ROOT)$(PREFIX)/share/man/man1
+ 
+ install : $(BINDIR) $(BINDIR)/peg $(BINDIR)/leg $(MANDIR) $(MANDIR)/peg.1