Gentoo Archives: gentoo-commits

From: "Alfredo Tupone (tupone)" <tupone@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-board/crafty: ChangeLog crafty-21.6.ebuild
Date: Fri, 07 Dec 2007 22:34:03
Message-Id: E1J0lld-0007i2-5l@stork.gentoo.org
1 tupone 07/12/07 22:33:57
2
3 Modified: ChangeLog
4 Added: crafty-21.6.ebuild
5 Log:
6 Version bump. Bug #197935
7 (Portage version: 2.1.3.19)
8
9 Revision Changes Path
10 1.22 games-board/crafty/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-board/crafty/ChangeLog?rev=1.22&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-board/crafty/ChangeLog?rev=1.22&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-board/crafty/ChangeLog?r1=1.21&r2=1.22
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/games-board/crafty/ChangeLog,v
19 retrieving revision 1.21
20 retrieving revision 1.22
21 diff -u -r1.21 -r1.22
22 --- ChangeLog 12 Mar 2007 13:44:57 -0000 1.21
23 +++ ChangeLog 7 Dec 2007 22:33:56 -0000 1.22
24 @@ -1,6 +1,11 @@
25 # ChangeLog for games-board/crafty
26 # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/games-board/crafty/ChangeLog,v 1.21 2007/03/12 13:44:57 genone Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/games-board/crafty/ChangeLog,v 1.22 2007/12/07 22:33:56 tupone Exp $
29 +
30 +*crafty-21.6 (07 Dec 2007)
31 +
32 + 07 Dec 2007; Tupone Alfredo <tupone@g.o> +crafty-21.6.ebuild:
33 + Version bump. Bug #197935 by Christos Gitsis
34
35 12 Mar 2007; Marius Mauch <genone@g.o> crafty-20.13.ebuild,
36 crafty-20.14.ebuild:
37
38
39
40 1.1 games-board/crafty/crafty-21.6.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-board/crafty/crafty-21.6.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-board/crafty/crafty-21.6.ebuild?rev=1.1&content-type=text/plain
44
45 Index: crafty-21.6.ebuild
46 ===================================================================
47 # Copyright 1999-2007 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/games-board/crafty/crafty-21.6.ebuild,v 1.1 2007/12/07 22:33:56 tupone Exp $
50
51 inherit flag-o-matic games
52
53 DESCRIPTION="Bob Hyatt's strong chess engine"
54 HOMEPAGE="ftp://ftp.cis.uab.edu/pub/hyatt/"
55 SRC_URI="ftp://ftp.cis.uab.edu/pub/hyatt/source/${P}.zip"
56
57 LICENSE="crafty"
58 SLOT="0"
59 KEYWORDS="~amd64 ~ppc ~x86"
60 IUSE="icc no-opts"
61 RESTRICT="test"
62
63 RDEPEND=""
64 DEPEND="${RDEPEND}
65 app-arch/unzip
66 icc? ( >=dev-lang/icc-5.0 )"
67
68 src_unpack() {
69 unpack ${A}
70 cd "${S}"
71 sed -i \
72 -e '/-o crafty/s/CC/CXX/' \
73 -e 's:CXFLAGS:CXXFLAGS:g' \
74 Makefile \
75 || die "sed failed"
76 sed -i \
77 -e "s:\"crafty.hlp\":\"${GAMES_DATADIR}/${PN}/crafty.hlp\":" option.c \
78 || die "sed failed"
79 }
80
81 src_compile() {
82 local makeopts="target=LINUX"
83
84 if ! use no-opts ; then
85 if use icc ; then
86 makeopts="${makeopts} CC=icc CXX=gcc asm=X86.o"
87 append-flags -D_REENTRANT -tpp6 \
88 -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \
89 -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST \
90 -DSMP -DCPUS=4 -DCLONE -DDGT
91 append-flags -O2 -fno-alias -fforce-mem \
92 -fomit-frame-pointer -fno-gcse -mpreferred-stack-boundary=2
93 else
94 if [[ "${CHOST}" == "i686-pc-linux-gnu" ]] \
95 || [[ "${CHOST}" == "i586-pc-linux-gnu" ]] ; then
96 append-flags -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \
97 -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B \
98 -DFAST -DSMP -DCPUS=4 -DCLONE -DDGT
99 append-flags -fno-gcse \
100 -fomit-frame-pointer -mpreferred-stack-boundary=2
101 makeopts="${makeopts} CC=gcc CXX=g++ asm=X86.o"
102 else
103 : # everything else :)
104 fi
105 fi
106 fi
107 append-flags -DPOSIX
108 emake ${makeopts} crafty-make LDFLAGS="${LDFLAGS} -lpthread" || die "build failed"
109 }
110
111 src_install() {
112 dogamesbin crafty || die "dogamesbin failed"
113 insinto "${GAMES_DATADIR}/${PN}"
114 doins crafty.hlp || die "doins failed"
115 prepgamesdirs
116 }
117
118 pkg_postinst() {
119 games_pkg_postinst
120 elog
121 elog "Note: No books or tablebases have been installed. If you want them, just"
122 elog " download them from ${HOMEPAGE}."
123 elog " You will find documentation there too. In most cases you take now "
124 elog " your xboard compatible application, (xboard, eboard, knights) and "
125 elog " just play chess against computer opponent. Have fun."
126 elog
127 }
128
129
130
131 --
132 gentoo-commits@g.o mailing list