svn commit: r422109 - head/chinese/fortune

John Marino marino at FreeBSD.org
Wed Sep 14 05:23:53 UTC 2016


Author: marino
Date: Wed Sep 14 05:23:52 2016
New Revision: 422109
URL: https://svnweb.freebsd.org/changeset/ports/422109

Log:
  chinese/fortune: Use fortune_strfile instead of strfile(8) and mark BROKEN
  
  This removes the dependency on the games distribution.
  Unfortunately, it's also unfetchable (Google Code site) so it's also been
  marked BROKEN for this reason.
  
  Approved by:	general blanket

Modified:
  head/chinese/fortune/Makefile

Modified: head/chinese/fortune/Makefile
==============================================================================
--- head/chinese/fortune/Makefile	Wed Sep 14 05:16:28 2016	(r422108)
+++ head/chinese/fortune/Makefile	Wed Sep 14 05:23:52 2016	(r422109)
@@ -11,21 +11,17 @@ DISTNAME=	fortune-mod-zh-${PORTVERSION}
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	Classic fortune file in Chinese
 
+BROKEN=		unfetchable (Google Code site)
+
 RUN_DEPENDS=	autob5:chinese/autoconvert
+BUILD_DEPENDS=	fortune_strfile:misc/fortune_strfile
+STRFILE=	${LOCALBASE}/bin/fortune_strfile
 
 PROJECTHOST=	chinese-fortune
 NO_BUILD=	yes
 USES=		tar:bzip2 gmake
 SUB_FILES=	pkg-message
 
-.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
-
 post-patch:
 	@${REINPLACE_CMD} -e "s|/usr/|${PREFIX}/|" \
 		-e "s|strfile|${STRFILE}|" \


More information about the svn-ports-all mailing list