Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Sep 2016 05:23:52 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r422109 - head/chinese/fortune
Message-ID:  <201609140523.u8E5Nqk1050620@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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}|" \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609140523.u8E5Nqk1050620>