misc/fortune-mod-epictetus: Use fortune_strfile instead of strfile(8)
This removes the dependency on the games distribution. Approved by: general blanket
This commit is contained in:
parent
c9e5cedaee
commit
706750303f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=422107
1 changed files with 6 additions and 10 deletions
|
@ -12,25 +12,21 @@ COMMENT= Quotes from Epictetus
|
|||
LICENSE= BSD2CLAUSE
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
BUILD_DEPENDS= fortune_strfile:misc/fortune_strfile
|
||||
STRFILE= ${LOCALBASE}/bin/fortune_strfile
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= akosela
|
||||
|
||||
PLIST_FILES= share/games/fortune/epictetus \
|
||||
share/games/fortune/epictetus.dat
|
||||
|
||||
.if exists(/usr/games/strfile)
|
||||
STRFILE= /usr/games/strfile
|
||||
.elif exists(/usr/bin/strfile)
|
||||
STRFILE= /usr/bin/strfile
|
||||
.else
|
||||
IGNORE= needs strfile command. Please install games distribution of base system
|
||||
.endif
|
||||
|
||||
do-build:
|
||||
@(cd ${WRKSRC} && ${STRFILE} epictetus)
|
||||
(cd ${WRKSRC} && ${STRFILE} epictetus)
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/share/games/fortune
|
||||
${INSTALL_DATA} ${WRKSRC}/epictetus* ${STAGEDIR}${PREFIX}/share/games/fortune
|
||||
${INSTALL_DATA} ${WRKSRC}/epictetus* \
|
||||
${STAGEDIR}${PREFIX}/share/games/fortune
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
Loading…
Reference in a new issue