1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-04 06:15:24 +00:00

french/fortune-mod-zarathoustra: Use fortune_strfile instead of strfile(8)

This removes the dependency on the games distribution.

Approved by:	general blanket
This commit is contained in:
John Marino 2016-09-14 05:44:01 +00:00
parent 1c5ba91eb4
commit e436738013
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=422113

View File

@ -11,19 +11,15 @@ COMMENT= Compilation of quotes from Nietzsche's Thus spoke Zarathustra
SUB_FILES= pkg-message
.if exists(/usr/games/strfile)
STRCMD= /usr/games/strfile
.elif exists(/usr/bin/strfile)
STRCMD= /usr/bin/strfile
.else
IGNORE= needs strfile command. Please install games distribution of base system
.endif
BUILD_DEPENDS= fortune_strfile:misc/fortune_strfile
STRCMD= ${LOCALBASE}/bin/fortune_strfile
do-build:
@cd ${WRKSRC} && ${STRCMD} zarathoustra
(cd ${WRKSRC} && ${STRCMD} zarathoustra)
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/games/fortune
${INSTALL_DATA} ${WRKSRC}/zarathoustra* ${STAGEDIR}${PREFIX}/share/games/fortune
${INSTALL_DATA} ${WRKSRC}/zarathoustra* \
${STAGEDIR}${PREFIX}/share/games/fortune
.include <bsd.port.mk>