ChangeLog

# ChangeLog for games-board/crafty
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/games-board/crafty/ChangeLog,v 1.30 2008/06/25 19:12:04 nixnut Exp $

25 Jun 2008; nixnut crafty-22.1.ebuild:
Stable on ppc wrt bug 229161

24 Jun 2008; Christian Faulhammer crafty-22.1.ebuild:
stable x86, bug 229161

24 Jun 2008; Thomas Anderson crafty-22.1.ebuild:
amd64 stable, bug #229161

*crafty-22.1 (23 Apr 2008)

23 Apr 2008; Michael Sterrett +crafty-22.1.ebuild:
version bump (bug #218922)

11 Apr 2008; Chris Gianelloni crafty-20.13.ebuild,
-crafty-21.6-r1.ebuild, crafty-22.0.ebuild:
Removed icc USE flag use for bug #216511.

*crafty-22.0 (29 Feb 2008)

29 Feb 2008; Tupone Alfredo +crafty-22.0.ebuild:
Version bump to 22.0 Bug #211888 by Thomas Riedel

*crafty-21.6-r1 (26 Dec 2007)

26 Dec 2007; Tupone Alfredo +crafty-21.6-r1.ebuild:
Adding some documentation.

09 Dec 2007; crafty-21.6.ebuild:
Fix problem on x86_64 platform.
Bug #195918 by HTS.
Bug #201630 by Chris Smith

*crafty-21.6 (07 Dec 2007)

07 Dec 2007; Tupone Alfredo +crafty-21.6.ebuild:
Version bump. Bug #197935 by Christos Gitsis

12 Mar 2007; Marius Mauch crafty-20.13.ebuild,
crafty-20.14.ebuild:
Replacing einfo with elog

07 Mar 2007; Chris Gianelloni crafty-20.13.ebuild,
crafty-20.14.ebuild:
Change all instances of [ to [[.

*crafty-20.14 (02 Oct 2006)

02 Oct 2006; Tristan Heaven +crafty-20.14.ebuild:
Version bump

*crafty-20.13 (08 Jun 2006)

08 Jun 2006; Michael Sterrett crafty-20.1.ebuild,
crafty-20.11.ebuild, +crafty-20.13.ebuild:
version bump (bug #135849)

*crafty-20.11 (02 Jun 2006)

02 Jun 2006; Michael Sterrett +crafty-20.11.ebuild:
version bump (bug #135224)

26 Sep 2005; Chris Gianelloni crafty-19.8.ebuild:
Making games last on inherit line.

12 Sep 2005; Michael Hanselmann crafty-19.20.ebuild:
Stable on ppc.

*crafty-19.20 (25 Aug 2005)

25 Aug 2005; Michael Sterrett +crafty-19.20.ebuild:
version bump (bug #103567)

24 Aug 2005; Michael Sterrett -crafty-19.1.ebuild,
-crafty-19.12.ebuild, -crafty-19.15.ebuild, -crafty-19.18.ebuild:
clean old ebuilds

24 Aug 2005; Michael Sterrett crafty-19.19.ebuild:
stable on x86

*crafty-19.19 (31 May 2005)

31 May 2005; Michael Sterrett +crafty-19.19.ebuild:
version bump (bug #94641)

*crafty-19.18 (12 Apr 2005)

12 Apr 2005; Michael Sterrett +crafty-19.18.ebuild:
version bump

*crafty-19.15 (20 Jul 2004)

20 Jul 2004; Michael Sterrett +crafty-19.15.ebuild:
version bump

01 Jul 2004; Jeremy Huddleston crafty-19.1.ebuild,
crafty-19.12.ebuild, crafty-19.8.ebuild:
virtual/glibc -> virtual/libc

03 Jun 2004; Aron Griffis crafty-19.8.ebuild:
Fix use invocation

*crafty-19.12 (06 Apr 2004)

06 Apr 2004; Michael Sterrett crafty-19.12.ebuild:
version bump

*crafty-19.8 (31 Dec 2003)

31 Dec 2003; Mike Frysinger :
Update to 19.8 and clean up #34789.

*crafty-19.1 (25 Oct 2002)

13 Dec 2003; Brad House crafty-19.1.ebuild:
mark stable on amd64

25 Oct 2002; Mike Frysinger :
Update to 19.1 per #9657.

*crafty-18.15-r2 (13 Feb 2003)

29 Jun 2003; Daniel Ahlberg :
Added missing changelog entry.

*crafty-18.15-r1.ebuild (15 Jul 2002)

30 Sep 2002; Mike Frysinger crafty-18.15-r2.ebuild :
Updated to allow for compile on gcc3.x and i586 optimizations

*crafty-18.15-r1.ebuild (15 Jul 2002)

07 Aug 2002; Mark Guertin crafty-18.15-r1.ebuild :
Added ppc patch to close bug #5932 and ppc to keywords

15 Jul 2002; J.Alberto S.L. crafty-18.15-r1.ebuild :
First relase. Ebuild submitted by Frank Eibisch .

Manifest

DIST crafty-22.1.zip 405169 RMD160 963ec8110617b3d1273953d03ddb974019ec26a9 SHA1 4ed19f5c676035b899d82cd254eee3d391cbabbf SHA256 ec25063af97d079402f1daee99493cc7d7c9a9df6001f856f9d0584dd23894be
DIST crafty.doc.ascii 79678 RMD160 f0c8304efcaa93a14a37da96d22bb25cda8d1bf5 SHA1 99bb27b39ddd4bd3db8078e128eadfcde1c3b64b SHA256 be291c0f4c7e7d64404ec58b9e92c2455c4342d3c96c721ba21a80fce8332e83
EBUILD crafty-22.1.ebuild 2689 RMD160 130ac199ea60ec7f22a6708df81f49e09e4158f7 SHA1 a74fcd5049977834750301025da8636f650a6d2e SHA256 814c436b3161988235e1b22849085578d8b284b99160f4c9e16a148a2161b049
MISC ChangeLog 4344 RMD160 c2230f17e505c7ef06b7bb0b40863ef92d0bbfc5 SHA1 45e615515b9d38409cfa534b4b8c339c6dd38a6f SHA256 471d46f1e896cab81c5a5fcec2fd4a3430e2930190cfe6132b7b84e343609813
MISC metadata.xml 249 RMD160 88ee2399ce6b1f209307a856b772e1faf8056b19 SHA1 23af7043274b9d3c6b615be57dbd7876dbd2efb1 SHA256 49f221ca292eb58886695b31631b28f38321f3fd6dfd265bba9991b093d68dec

crafty-22.1.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-board/crafty/crafty-22.1.ebuild,v 1.4 2008/06/25 19:12:04 nixnut Exp $

inherit flag-o-matic games

DESCRIPTION="Bob Hyatt's strong chess engine"
HOMEPAGE="ftp://ftp.cis.uab.edu/pub/hyatt/"
SRC_URI="ftp://ftp.cis.uab.edu/pub/hyatt/source/${P}.zip
ftp://ftp.cis.uab.edu/pub/hyatt/documentation/${PN}.doc.ascii"

LICENSE="crafty"
SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE="no-opts"
RESTRICT="test"

RDEPEND=""
DEPEND="${RDEPEND}
app-arch/unzip"

src_unpack() {
unpack ${A}
cd "${S}"
sed -i \
-e '/-o crafty/s/CC/CXX/' \
-e 's:CXFLAGS:CXXFLAGS:g' \
Makefile \
|| die "sed failed"
sed -i \
-e "s:\"crafty.hlp\":\"${GAMES_DATADIR}/${PN}/crafty.hlp\":" option.c \
|| die "sed failed"
}

src_compile() {
local makeopts="target=LINUX"

if ! use no-opts ; then
if [[ $(tc-getCC) = icc ]] ; then
makeopts="${makeopts} CC=icc CXX=gcc asm=X86.o"
append-flags -D_REENTRANT -tpp6 \
-DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \
-DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST \
-DSMP -DCPUS=4 -DCLONE -DDGT
append-flags -O2 -fno-alias -fforce-mem \
-fomit-frame-pointer -fno-gcse -mpreferred-stack-boundary=2
else
if [[ "${CHOST}" == "i686-pc-linux-gnu" ]] \
|| [[ "${CHOST}" == "i586-pc-linux-gnu" ]] ; then
append-flags -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \
-DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B \
-DFAST -DSMP -DCPUS=4 -DCLONE -DDGT
append-flags -fno-gcse \
-fomit-frame-pointer -mpreferred-stack-boundary=2
makeopts="${makeopts} CC=gcc CXX=g++"
elif [[ "${CHOST}" == "x86_64-pc-linux-gnu" ]] ; then
append-flags -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \
-DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B \
-DFAST -DSMP -DCPUS=4 -DCLONE -DDGT
append-flags -fomit-frame-pointer
makeopts="${makeopts} CC=gcc CXX=g++"
else
: # everything else :)
fi
fi
fi
append-flags -DPOSIX
emake ${makeopts} crafty-make LDFLAGS="${LDFLAGS} -lpthread" || die "build failed"
}

src_install() {
dogamesbin crafty || die "dogamesbin failed"
insinto "${GAMES_DATADIR}/${PN}"
doins crafty.hlp || die "doins failed"
dodoc "${DISTDIR}"/crafty.doc.ascii
prepgamesdirs
}

pkg_postinst() {
games_pkg_postinst
elog
elog "Note: No books or tablebases have been installed. If you want them, just"
elog " download them from ${HOMEPAGE}."
elog " You will find documentation there too. In most cases you take now "
elog " your xboard compatible application, (xboard, eboard, knights) and "
elog " just play chess against computer opponent. Have fun."
elog
}

metadata.xml




games

Don't try to enable crazy CFLAG options