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: crafty-22.9.ebuild ChangeLog crafty-22.8.ebuild
Date: Fri, 30 Jan 2009 06:40:41
Message-Id: E1LSn3O-0005lD-Oj@stork.gentoo.org
1 mr_bones_ 09/01/30 06:40:38
2
3 Modified: ChangeLog
4 Added: crafty-22.9.ebuild
5 Removed: crafty-22.8.ebuild
6 Log:
7 version bump; clean old
8 (Portage version: 2.1.6.4/cvs/Linux 2.6.28.1 i686)
9
10 Revision Changes Path
11 1.33 games-board/crafty/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-board/crafty/ChangeLog?rev=1.33&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-board/crafty/ChangeLog?rev=1.33&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-board/crafty/ChangeLog?r1=1.32&r2=1.33
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/games-board/crafty/ChangeLog,v
20 retrieving revision 1.32
21 retrieving revision 1.33
22 diff -u -r1.32 -r1.33
23 --- ChangeLog 13 Jan 2009 01:43:00 -0000 1.32
24 +++ ChangeLog 30 Jan 2009 06:40:38 -0000 1.33
25 @@ -1,6 +1,12 @@
26 # ChangeLog for games-board/crafty
27 # Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/games-board/crafty/ChangeLog,v 1.32 2009/01/13 01:43:00 mr_bones_ Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/games-board/crafty/ChangeLog,v 1.33 2009/01/30 06:40:38 mr_bones_ Exp $
30 +
31 +*crafty-22.9 (30 Jan 2009)
32 +
33 + 30 Jan 2009; Michael Sterrett <mr_bones_@g.o> -crafty-22.8.ebuild,
34 + +crafty-22.9.ebuild:
35 + version bump; clean old
36
37 13 Jan 2009; Michael Sterrett <mr_bones_@g.o> crafty-22.8.ebuild:
38 newer gcc uses -pthread (bug #254689)
39
40
41
42 1.1 games-board/crafty/crafty-22.9.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-board/crafty/crafty-22.9.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-board/crafty/crafty-22.9.ebuild?rev=1.1&content-type=text/plain
46
47 Index: crafty-22.9.ebuild
48 ===================================================================
49 # Copyright 1999-2009 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/games-board/crafty/crafty-22.9.ebuild,v 1.1 2009/01/30 06:40:38 mr_bones_ Exp $
52
53 inherit flag-o-matic toolchain-funcs games
54
55 DESCRIPTION="Bob Hyatt's strong chess engine"
56 HOMEPAGE="ftp://ftp.cis.uab.edu/pub/hyatt/"
57 SRC_URI="ftp://ftp.cis.uab.edu/pub/hyatt/source/${P}.zip
58 ftp://ftp.cis.uab.edu/pub/hyatt/documentation/${PN}.doc.ascii"
59
60 LICENSE="crafty"
61 SLOT="0"
62 KEYWORDS="~amd64 ~ppc ~x86"
63 IUSE="no-opts"
64 RESTRICT="test"
65
66 RDEPEND=""
67 DEPEND="${RDEPEND}
68 app-arch/unzip"
69
70 src_unpack() {
71 unpack ${P}.zip
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 [[ $(tc-getCC) = icc ]] ; then
88 makeopts="${makeopts} 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 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 else
109 : # everything else :)
110 fi
111 fi
112 fi
113 append-flags -DPOSIX -DSKILL
114 emake ${makeopts} crafty-make LDFLAGS="${LDFLAGS} -pthread" || 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 }