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