Skip to content

Commit

Permalink
astro/phoon: Sanitize MANPREFIX
Browse files Browse the repository at this point in the history
- Remove NOOP pre-patch
- Add LICENSE BSD2CLAUSE found inside source code

Approved by:	portmgr (blanket)
  • Loading branch information
5u623l20 committed Jan 21, 2024
1 parent 2d807dc commit 968a06c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions astro/phoon/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
PORTNAME= phoon
PORTVERSION= 2014
PORTREVISION= 1
CATEGORIES= astro
MASTER_SITES= http://www.acme.com/software/phoon/
PKGNAMESUFFIX= _14Aug
Expand All @@ -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>
4 changes: 2 additions & 2 deletions astro/phoon/files/patch-Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 968a06c

Please sign in to comment.