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-r1.ebuild
Date: Wed, 26 Dec 2007 11:12:13
Message-Id: E1J7UBB-0007Do-E0@stork.gentoo.org
1 tupone 07/12/26 11:12:05
2
3 Modified: ChangeLog
4 Added: crafty-21.6-r1.ebuild
5 Log:
6 Adding some documentation
7 (Portage version: 2.1.3.19)
8
9 Revision Changes Path
10 1.24 games-board/crafty/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-board/crafty/ChangeLog?rev=1.24&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-board/crafty/ChangeLog?rev=1.24&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-board/crafty/ChangeLog?r1=1.23&r2=1.24
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/games-board/crafty/ChangeLog,v
19 retrieving revision 1.23
20 retrieving revision 1.24
21 diff -u -r1.23 -r1.24
22 --- ChangeLog 9 Dec 2007 10:25:17 -0000 1.23
23 +++ ChangeLog 26 Dec 2007 11:12:04 -0000 1.24
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.23 2007/12/09 10:25:17 tupone Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/games-board/crafty/ChangeLog,v 1.24 2007/12/26 11:12:04 tupone Exp $
29 +
30 +*crafty-21.6-r1 (26 Dec 2007)
31 +
32 + 26 Dec 2007; Tupone Alfredo <tupone@g.o> +crafty-21.6-r1.ebuild:
33 + Adding some documentation.
34
35 09 Dec 2007; <atupone@g.o> crafty-21.6.ebuild:
36 Fix problem on x86_64 platform.
37
38
39
40 1.1 games-board/crafty/crafty-21.6-r1.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-board/crafty/crafty-21.6-r1.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-board/crafty/crafty-21.6-r1.ebuild?rev=1.1&content-type=text/plain
44
45 Index: crafty-21.6-r1.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-r1.ebuild,v 1.1 2007/12/26 11:12:04 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 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="icc no-opts"
62 RESTRICT="test"
63
64 RDEPEND=""
65 DEPEND="${RDEPEND}
66 app-arch/unzip
67 icc? ( >=dev-lang/icc-5.0 )"
68
69 src_unpack() {
70 unpack ${A}
71 cd "${S}"
72 sed -i \
73 -e '/-o crafty/s/CC/CXX/' \
74 -e 's:CXFLAGS:CXXFLAGS:g' \
75 Makefile \
76 || die "sed failed"
77 sed -i \
78 -e "s:\"crafty.hlp\":\"${GAMES_DATADIR}/${PN}/crafty.hlp\":" option.c \
79 || die "sed failed"
80 }
81
82 src_compile() {
83 local makeopts="target=LINUX"
84
85 if ! use no-opts ; then
86 if use icc ; then
87 makeopts="${makeopts} CC=icc CXX=gcc asm=X86.o"
88 append-flags -D_REENTRANT -tpp6 \
89 -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \
90 -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST \
91 -DSMP -DCPUS=4 -DCLONE -DDGT
92 append-flags -O2 -fno-alias -fforce-mem \
93 -fomit-frame-pointer -fno-gcse -mpreferred-stack-boundary=2
94 else
95 if [[ "${CHOST}" == "i686-pc-linux-gnu" ]] \
96 || [[ "${CHOST}" == "i586-pc-linux-gnu" ]] ; then
97 append-flags -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \
98 -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B \
99 -DFAST -DSMP -DCPUS=4 -DCLONE -DDGT
100 append-flags -fno-gcse \
101 -fomit-frame-pointer -mpreferred-stack-boundary=2
102 makeopts="${makeopts} CC=gcc CXX=g++"
103 elif [[ "${CHOST}" == "x86_64-pc-linux-gnu" ]] ; then
104 append-flags -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \
105 -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B \
106 -DFAST -DSMP -DCPUS=4 -DCLONE -DDGT
107 append-flags -fomit-frame-pointer
108 makeopts="${makeopts} CC=gcc CXX=g++"
109 else
110 : # everything else :)
111 fi
112 fi
113 fi
114 append-flags -DPOSIX
115 emake ${makeopts} crafty-make LDFLAGS="${LDFLAGS} -lpthread" || die "build failed"
116 }
117
118 src_install() {
119 dogamesbin crafty || die "dogamesbin failed"
120 insinto "${GAMES_DATADIR}/${PN}"
121 doins crafty.hlp || die "doins failed"
122 dodoc "${DISTDIR}"/crafty.doc.ascii
123 prepgamesdirs
124 }
125
126 pkg_postinst() {
127 games_pkg_postinst
128 elog
129 elog "Note: No books or tablebases have been installed. If you want them, just"
130 elog " download them from ${HOMEPAGE}."
131 elog " You will find documentation there too. In most cases you take now "
132 elog " your xboard compatible application, (xboard, eboard, knights) and "
133 elog " just play chess against computer opponent. Have fun."
134 elog
135 }
136
137
138
139 --
140 gentoo-commits@g.o mailing list