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 PORTNAME= peg
DISTVERSION= 0.1.19 DISTVERSION= 0.1.19
PORTREVISION= 1
CATEGORIES= textproc CATEGORIES= textproc
MASTER_SITES= https://www.piumarta.com/software/peg/ MASTER_SITES= https://www.piumarta.com/software/peg/
@ -13,7 +14,7 @@ USES= gmake
PLIST_FILES= bin/leg \ PLIST_FILES= bin/leg \
bin/peg \ bin/peg \
man/man1/peg.1.gz share/man/man1/peg.1.gz
post-patch: post-patch:
@${REINPLACE_CMD} -e 's,%%STAGEDIR%%,${STAGEDIR},g' \ @${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 +++ Makefile
@@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
-CFLAGS = -g -Wall $(OFLAGS) $(XFLAGS) -Isrc -CFLAGS = -g -Wall $(OFLAGS) $(XFLAGS) -Isrc
@ -6,7 +6,7 @@
OFLAGS = -O3 -DNDEBUG OFLAGS = -O3 -DNDEBUG
#OFLAGS = -pg #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) $(CC) $(CFLAGS) -o $@-new leg.o $(OBJS)
mv $@-new $@ mv $@-new $@
@ -15,5 +15,8 @@
+ROOT = %%STAGEDIR%% +ROOT = %%STAGEDIR%%
+PREFIX = %%PREFIX%% +PREFIX = %%PREFIX%%
BINDIR = $(ROOT)$(PREFIX)/bin 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