Gentoo Archives: gentoo-commits

From: "Michael Sterrett (mr_bones_)" <mr_bones_@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-board/crafty: ChangeLog crafty-22.1.ebuild
Date: Wed, 23 Apr 2008 04:33:21
Message-Id: E1JoWfW-0005iK-BE@stork.gentoo.org
1 mr_bones_ 08/04/23 04:33:18
2
3 Modified: ChangeLog
4 Added: crafty-22.1.ebuild
5 Log:
6 version bump (bug #218922)
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.27 games-board/crafty/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-board/crafty/ChangeLog?rev=1.27&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-board/crafty/ChangeLog?rev=1.27&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-board/crafty/ChangeLog?r1=1.26&r2=1.27
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/games-board/crafty/ChangeLog,v
19 retrieving revision 1.26
20 retrieving revision 1.27
21 diff -u -r1.26 -r1.27
22 --- ChangeLog 11 Apr 2008 15:41:11 -0000 1.26
23 +++ ChangeLog 23 Apr 2008 04:33:17 -0000 1.27
24 @@ -1,6 +1,11 @@
25 # ChangeLog for games-board/crafty
26 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/games-board/crafty/ChangeLog,v 1.26 2008/04/11 15:41:11 wolf31o2 Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/games-board/crafty/ChangeLog,v 1.27 2008/04/23 04:33:17 mr_bones_ Exp $
29 +
30 +*crafty-22.1 (23 Apr 2008)
31 +
32 + 23 Apr 2008; Michael Sterrett <mr_bones_@g.o> +crafty-22.1.ebuild:
33 + version bump (bug #218922)
34
35 11 Apr 2008; Chris Gianelloni <wolf31o2@g.o> crafty-20.13.ebuild,
36 -crafty-21.6-r1.ebuild, crafty-22.0.ebuild:
37
38
39
40 1.1 games-board/crafty/crafty-22.1.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-board/crafty/crafty-22.1.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-board/crafty/crafty-22.1.ebuild?rev=1.1&content-type=text/plain
44
45 Index: crafty-22.1.ebuild
46 ===================================================================
47 # Copyright 1999-2008 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/games-board/crafty/crafty-22.1.ebuild,v 1.1 2008/04/23 04:33:17 mr_bones_ 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 ftp://ftp.cis.uab.edu/pub/hyatt/documentation/${PN}.doc.ascii"
57
58 LICENSE="crafty"
59 SLOT="0"
60 KEYWORDS="~amd64 ~ppc ~x86"
61 IUSE="no-opts"
62 RESTRICT="test"
63
64 RDEPEND=""
65 DEPEND="${RDEPEND}
66 app-arch/unzip"
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 [[ $(tc-getCC) = 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++"
102 elif [[ "${CHOST}" == "x86_64-pc-linux-gnu" ]] ; then
103 append-flags -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \
104 -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B \
105 -DFAST -DSMP -DCPUS=4 -DCLONE -DDGT
106 append-flags -fomit-frame-pointer
107 makeopts="${makeopts} CC=gcc CXX=g++"
108 else
109 : # everything else :)
110 fi
111 fi
112 fi
113 append-flags -DPOSIX
114 emake ${makeopts} crafty-make LDFLAGS="${LDFLAGS} -lpthread" || die "build failed"
115 }
116
117 src_install() {
118 dogamesbin crafty || die "dogamesbin failed"
119 insinto "${GAMES_DATADIR}/${PN}"
120 doins crafty.hlp || die "doins failed"
121 dodoc "${DISTDIR}"/crafty.doc.ascii
122 prepgamesdirs
123 }
124
125 pkg_postinst() {
126 games_pkg_postinst
127 elog
128 elog "Note: No books or tablebases have been installed. If you want them, just"
129 elog " download them from ${HOMEPAGE}."
130 elog " You will find documentation there too. In most cases you take now "
131 elog " your xboard compatible application, (xboard, eboard, knights) and "
132 elog " just play chess against computer opponent. Have fun."
133 elog
134 }
135
136
137
138 --
139 gentoo-commits@l.g.o mailing list