git: 968a06c52033 - main - astro/phoon: Sanitize MANPREFIX
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 21 Jan 2024 01:01:14 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=968a06c5203359d9f82e4228a358ffd53b71be2e
commit 968a06c5203359d9f82e4228a358ffd53b71be2e
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-01-20 22:26:56 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-01-21 01:01:06 +0000
astro/phoon: Sanitize MANPREFIX
- Remove NOOP pre-patch
- Add LICENSE BSD2CLAUSE found inside source code
Approved by: portmgr (blanket)
---
astro/phoon/Makefile | 9 ++++-----
astro/phoon/files/patch-Makefile | 4 ++--
2 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/astro/phoon/Makefile b/astro/phoon/Makefile
index 5e1fe3c0fdeb..14c441aff443 100644
--- a/astro/phoon/Makefile
+++ b/astro/phoon/Makefile
@@ -1,5 +1,6 @@
PORTNAME= phoon
PORTVERSION= 2014
+PORTREVISION= 1
CATEGORIES= astro
MASTER_SITES= http://www.acme.com/software/phoon/
PKGNAMESUFFIX= _14Aug
@@ -9,12 +10,10 @@ MAINTAINER= xride@FreeBSD.org
COMMENT= Displays the phase of the moon
WWW= https://www.acme.com/software/phoon/
-WRKSRC= ${WRKDIR}/${PORTNAME}
+LICENSE= BSD2CLAUSE
-PLIST_FILES= bin/phoon man/man1/phoon.1.gz
+WRKSRC= ${WRKDIR}/${PORTNAME}
-pre-patch:
- @${REINPLACE_CMD} -e 's|gmtoff = !!!;||g' \
- ${WRKSRC}/date_parse.c
+PLIST_FILES= bin/phoon share/man/man1/phoon.1.gz
.include <bsd.port.mk>
diff --git a/astro/phoon/files/patch-Makefile b/astro/phoon/files/patch-Makefile
index 86cbfe277088..0512ee432699 100644
--- a/astro/phoon/files/patch-Makefile
+++ b/astro/phoon/files/patch-Makefile
@@ -6,7 +6,7 @@
-BINDIR = /usr/local/bin
-MANDIR = /usr/local/man/man1
+BINDIR = $(DESTDIR)$(PREFIX)/bin
-+MANDIR = $(DESTDIR)$(MANPREFIX)/man/man1
++MANDIR = $(DESTDIR)$(PREFIX)/share/man/man1
DEFINES = -DOS_BSD
#DEFINES = -DOS_SYSV
@@ -22,7 +22,7 @@
all: phoon
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
install: all