Commit 8c6e3872 authored by marino's avatar marino
Browse files

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
parent a75bff11
......@@ -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>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment