Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Sep 2016 04:20:54 +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: r422101 - head/misc/fortune-mod-bible
Message-ID:  <201609140420.u8E4KsOV024263@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marino
Date: Wed Sep 14 04:20:54 2016
New Revision: 422101
URL: https://svnweb.freebsd.org/changeset/ports/422101

Log:
  misc/fortune-mod-bible: Use fortune_strfile instead of strfile(8)
  
  This removes the dependency on the games distribution.
  While here, unsuppress build and installation commands and pet portlint.
  
  Approved by:	general blanket

Modified:
  head/misc/fortune-mod-bible/Makefile

Modified: head/misc/fortune-mod-bible/Makefile
==============================================================================
--- head/misc/fortune-mod-bible/Makefile	Wed Sep 14 04:06:59 2016	(r422100)
+++ head/misc/fortune-mod-bible/Makefile	Wed Sep 14 04:20:54 2016	(r422101)
@@ -7,32 +7,28 @@ PORTREVISION=	1
 CATEGORIES=	misc
 MASTER_SITES=	SF/fortunebible/fortunebible/Genesis
 DISTNAME=	bible
+DIST_SUBDIR=	${PORTNAME}
 
 MAINTAINER=	doug@polands.org
 COMMENT=	King James V Bible in fortune file format
 
-DIST_SUBDIR=	${PORTNAME}
+BUILD_DEPENDS=	fortune_strfile:misc/fortune_strfile
+
 NO_WRKSUBDIR=	yes
 PKGMESSAGE=	${WRKDIR}/pkg-message
 USES=		tar:bzip2
 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
+_STRFILE=	${LOCALBASE}/bin/fortune_strfile
 
 post-extract:
 	${RM} ${WRKSRC}/bible.dat
 
 do-build:
-	@cd ${WRKSRC} && ${_STRFILE} -C bible
+	(cd ${WRKSRC} && ${_STRFILE} -C bible)
 
 do-install:
 	@${MKDIR} ${STAGEDIR}${PREFIX}/share/games/fortune
-	${INSTALL_DATA} ${WRKSRC}/bible* ${STAGEDIR}${PREFIX}/share/games/fortune
-
+	${INSTALL_DATA} ${WRKSRC}/bible* \
+		${STAGEDIR}${PREFIX}/share/games/fortune
 
 .include <bsd.port.mk>



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