diff options
author | Joseph Mingrone <jrm@FreeBSD.org> | 2024-02-26 18:12:26 +0000 |
---|---|---|
committer | Joseph Mingrone <jrm@FreeBSD.org> | 2024-02-26 18:41:13 +0000 |
commit | 45f2464d8a6bab0c8e41f506577f97d4a4cf7135 (patch) | |
tree | 9a50117f85507c164a68fbfe22a3a7e6e379f553 | |
parent | dd1e2e8e88adc2c0757ea2ff27edaaef2504dbac (diff) |
textproc/peg: Install man pages under share/man
Sponsored by: The FreeBSD Foundation
-rw-r--r-- | textproc/peg/Makefile | 3 | ||||
-rw-r--r-- | 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 |