ports/116240: New port: games/crafty-open-enormous
Jonathan Shoemaker
shoemaker at bluebottle.com
Mon Sep 10 01:50:06 UTC 2007
The following reply was made to PR ports/116240; it has been noted by GNATS.
From: shoemaker at bluebottle.com (Jonathan Shoemaker)
To: bug-followup at freebsd.org
Cc:
Subject: Re: ports/116240: New port: games/crafty-open-enormous
Date: 09 Sep 2007 19:40:05 -0600
Since the newer crafty port was committed, I need to modify this to
work with it, since user 'nobody' needs write permission to the book
files for learning to work. New shar attached.
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# crafty-open-enormous
# crafty-open-enormous/Makefile
# crafty-open-enormous/distinfo
# crafty-open-enormous/files
# crafty-open-enormous/files/book-building
# crafty-open-enormous/pkg-descr
# crafty-open-enormous/pkg-plist
#
echo c - crafty-open-enormous
mkdir -p crafty-open-enormous > /dev/null 2>&1
echo x - crafty-open-enormous/Makefile
sed 's/^X//' >crafty-open-enormous/Makefile << 'END-of-crafty-open-enormous/Makefile'
X# New ports collection makefile for: crafty-open-enormous
X# Date created: 9 Sep 2007
X# Whom: Jonathan Shoemaker <shoemaker at bluebottle.com>
X#
X# $FreeBSD:$
X#
X
XPORTNAME= crafty-open-enormous
XPORTVERSION= 1
XCATEGORIES= games
XMASTER_SITES= ftp://ftp.cis.uab.edu/pub/hyatt/pgn/ \
X ${MASTER_SITE_LOCAL}
XDISTFILES= enormous.zip
XEXTRACT_ONLY= ${DISTFILES}
X
XMAINTAINER= shoemaker at bluebottle.com
XCOMMENT= The enormous opening book (about 85-90 MByte) for crafty
X
XBUILD_DEPENDS= crafty:${PORTSDIR}/games/crafty
XRUN_DEPENDS= crafty:${PORTSDIR}/games/crafty
X
XDIST_SUBDIR= crafty
XUSE_ZIP= yes
XNO_WRKSUBDIR= yes
X
X.include <bsd.port.pre.mk>
X
X.if ${ARCH} == "amd64"
XBROKEN= "Coredump during build"
X.endif
X
Xdo-build:
X @${ECHO_MSG} '================================================================'
X @${ECHO_MSG} 'Ignore warnings about illegal moves. These warnings are normal.'
X @${ECHO_MSG} '================================================================'
X (cd ${WRKDIR}; ${CHOWN} nobody ${WRKDIR}; crafty bookpath=. <${FILESDIR}/book-building)
X
Xdo-install:
X ${MKDIR} ${PREFIX}/lib/crafty
X ${INSTALL_DATA} ${WRKDIR}/book.bin ${PREFIX}/lib/crafty/book.bin
X ${CHOWN} nobody:nogroup ${PREFIX}/lib/crafty/book.bin
X ${CHMOD} 664 ${PREFIX}/lib/crafty/book.bin
X
X.include <bsd.port.post.mk>
END-of-crafty-open-enormous/Makefile
echo x - crafty-open-enormous/distinfo
sed 's/^X//' >crafty-open-enormous/distinfo << 'END-of-crafty-open-enormous/distinfo'
XMD5 (crafty/enormous.zip) = 063c388c5b58fef83fa6f8be35644975
XSHA256 (crafty/enormous.zip) = c29bef354014e0cdb91644578101d48419f3aef15c300ab7eb01a1f11f392500
XSIZE (crafty/enormous.zip) = 282114811
END-of-crafty-open-enormous/distinfo
echo c - crafty-open-enormous/files
mkdir -p crafty-open-enormous/files > /dev/null 2>&1
echo x - crafty-open-enormous/files/book-building
sed 's/^X//' >crafty-open-enormous/files/book-building << 'END-of-crafty-open-enormous/files/book-building'
Xbook create enormous.pgn 60 2 50
Xquit
END-of-crafty-open-enormous/files/book-building
echo x - crafty-open-enormous/pkg-descr
sed 's/^X//' >crafty-open-enormous/pkg-descr << 'END-of-crafty-open-enormous/pkg-descr'
XThis is the port of the enormous opening book for crafty. It consumes
Xabout 85-90M.
X
XIt was created with "book create enormous.pgn 60 2 50" (see the crafty
Xdocumentation and online help for a more thorough explanation of what
Xthis does)
X
X// Jonathan Shoemaker <shoemaker at bluebottle.com>
END-of-crafty-open-enormous/pkg-descr
echo x - crafty-open-enormous/pkg-plist
sed 's/^X//' >crafty-open-enormous/pkg-plist << 'END-of-crafty-open-enormous/pkg-plist'
Xlib/crafty/book.bin
X at dirrm lib/crafty
END-of-crafty-open-enormous/pkg-plist
exit
// J Shoemaker
--
If only God would give me some clear sign!
Like making a large deposit in my name at a Swiss bank.
-- Woody Allen, "Without Feathers"
----------------------------------------------------------------------
Finally - A spam blocker that actually works.
http://www.bluebottle.com/tag/4
More information about the freebsd-ports-bugs
mailing list