devel/hare: Move man pages to share/man

While here, fix build with poudriere.

HAREC   .cache/hare.ssa
QBE     .cache/hare.s
AS      .cache/hare.o
LD      .bin/hare
HARE    .bin/harec2
Error creating /nonexistent/.cache/hare: Permission denied
*** Error code 255

Stop.
make[1]: stopped in /wrkdirs/usr/ports/devel/hare/work/hare-0919412b
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/hare

Approved by:	portmgr (blanket, just fix it)
This commit is contained in:
Yasuhiro Kimura 2024-03-20 15:26:45 +09:00
parent 050ff9f5a3
commit dda0309f01
3 changed files with 7 additions and 6 deletions

View file

@ -1,5 +1,6 @@
PORTNAME= hare
PORTVERSION= g20230719
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= https://git.sr.ht/~sircmpwn/${PORTNAME}/archive/
PKGNAMESUFFIX= -lang
@ -21,7 +22,7 @@ BUILD_DEPENDS= harec:lang/harec \
scdoc:textproc/scdoc
RUN_DEPENDS= harec:lang/harec
MAKE_ARGS= ARCH=${ARCH:S/^amd64$/x86_64/} PREFIX=${PREFIX}
MAKE_ARGS= ARCH=${ARCH:S/^amd64$/x86_64/} HARECACHE=${WRKDIR}/.cache/hare PREFIX=${PREFIX}
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTNAME}

View file

@ -1,5 +1,5 @@
--- config.example.mk.orig 2023-07-19 01:21:32.000000000 +0200
+++ config.example.mk 2023-07-19 13:07:52.729248178 +0200
--- config.example.mk.orig 2023-07-18 23:21:32 UTC
+++ config.example.mk
@@ -1,21 +1,23 @@
## Install configuration
@ -9,7 +9,7 @@
-SRCDIR = $(PREFIX)/src
+#PREFIX = %%LOCALBASE%%
+BINDIR = $(PREFIX)/bin
+MANDIR = $(PREFIX)/man
+MANDIR = $(PREFIX)/share/man
+DATADIR = $(PREFIX)/share/hare
+SRCDIR = $(DATADIR)/src

View file

@ -1,7 +1,7 @@
bin/hare
bin/haredoc
man/man1/hare.1.gz
man/man1/haredoc.1.gz
share/man/man1/hare.1.gz
share/man/man1/haredoc.1.gz
%%PORTDOCS%%%%DOCSDIR%%/README.md
%%PORTDOCS%%%%DOCSDIR%%/maintainers.md
%%PORTDOCS%%%%DOCSDIR%%/modules.md