aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2016-09-14 13:09:12 +0800
committermarino <marino@FreeBSD.org>2016-09-14 13:09:12 +0800
commitd7e1281ae092b176d9a470ef2f9ad1b4a4e54578 (patch)
tree8a60c991545848db613849171e8787d8384583ec /misc
parent02e2840bb8f596d2c0a18fa25c9006d8bf0d4998 (diff)
downloadfreebsd-ports-gnome-d7e1281ae092b176d9a470ef2f9ad1b4a4e54578.tar.gz
freebsd-ports-gnome-d7e1281ae092b176d9a470ef2f9ad1b4a4e54578.tar.zst
freebsd-ports-gnome-d7e1281ae092b176d9a470ef2f9ad1b4a4e54578.zip
misc/fortune-mod-epictetus: Use fortune_strfile instead of strfile(8)
This removes the dependency on the games distribution. Approved by: general blanket
Diffstat (limited to 'misc')
-rw-r--r--misc/fortune-mod-epictetus/Makefile16
1 files changed, 6 insertions, 10 deletions
diff --git a/misc/fortune-mod-epictetus/Makefile b/misc/fortune-mod-epictetus/Makefile
index 34d9371121ef..1be7264212b1 100644
--- a/misc/fortune-mod-epictetus/Makefile
+++ b/misc/fortune-mod-epictetus/Makefile
@@ -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>