textproc/peg: Install man pages under share/man

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Joseph Mingrone 2024-02-26 14:12:26 -04:00
parent dd1e2e8e88
commit 45f2464d8a
No known key found for this signature in database
GPG key ID: 36A40C83B0D6EF9E
2 changed files with 8 additions and 4 deletions

View file

@ -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' \

View file

@ -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