astro/phoon: Sanitize MANPREFIX

- Remove NOOP pre-patch
- Add LICENSE BSD2CLAUSE found inside source code

Approved by:	portmgr (blanket)
This commit is contained in:
Muhammad Moinur Rahman 2024-01-20 23:26:56 +01:00
parent 2d807dc445
commit 968a06c520
2 changed files with 6 additions and 7 deletions

View file

@ -1,5 +1,6 @@
PORTNAME= phoon PORTNAME= phoon
PORTVERSION= 2014 PORTVERSION= 2014
PORTREVISION= 1
CATEGORIES= astro CATEGORIES= astro
MASTER_SITES= http://www.acme.com/software/phoon/ MASTER_SITES= http://www.acme.com/software/phoon/
PKGNAMESUFFIX= _14Aug PKGNAMESUFFIX= _14Aug
@ -9,12 +10,10 @@ MAINTAINER= xride@FreeBSD.org
COMMENT= Displays the phase of the moon COMMENT= Displays the phase of the moon
WWW= https://www.acme.com/software/phoon/ WWW= https://www.acme.com/software/phoon/
LICENSE= BSD2CLAUSE
WRKSRC= ${WRKDIR}/${PORTNAME} WRKSRC= ${WRKDIR}/${PORTNAME}
PLIST_FILES= bin/phoon man/man1/phoon.1.gz PLIST_FILES= bin/phoon share/man/man1/phoon.1.gz
pre-patch:
@${REINPLACE_CMD} -e 's|gmtoff = !!!;||g' \
${WRKSRC}/date_parse.c
.include <bsd.port.mk> .include <bsd.port.mk>

View file

@ -6,7 +6,7 @@
-BINDIR = /usr/local/bin -BINDIR = /usr/local/bin
-MANDIR = /usr/local/man/man1 -MANDIR = /usr/local/man/man1
+BINDIR = $(DESTDIR)$(PREFIX)/bin +BINDIR = $(DESTDIR)$(PREFIX)/bin
+MANDIR = $(DESTDIR)$(MANPREFIX)/man/man1 +MANDIR = $(DESTDIR)$(PREFIX)/share/man/man1
DEFINES = -DOS_BSD DEFINES = -DOS_BSD
#DEFINES = -DOS_SYSV #DEFINES = -DOS_SYSV
@ -22,7 +22,7 @@
all: phoon all: phoon
phoon: phoon.o date_parse.o astro.o phoon: phoon.o date_parse.o astro.o
@@ -24,7 +21,7 @@ date_parse.o: date_parse.h @@ -24,7 +21,7 @@ install: all
astro.o: astro.h astro.o: astro.h
install: all install: all