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-24.1.ebuild ChangeLog crafty-24.0.ebuild
Date: Thu, 30 Oct 2014 07:29:57
Message-Id: 20141030072952.4F79F90DC@oystercatcher.gentoo.org
1 mr_bones_ 14/10/30 07:29:52
2
3 Modified: ChangeLog
4 Added: crafty-24.1.ebuild
5 Removed: crafty-24.0.ebuild
6 Log:
7 version bump
8
9 (Portage version: 2.2.8-r2/cvs/Linux x86_64, unsigned Manifest commit)
10
11 Revision Changes Path
12 1.59 games-board/crafty/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-board/crafty/ChangeLog?rev=1.59&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-board/crafty/ChangeLog?rev=1.59&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-board/crafty/ChangeLog?r1=1.58&r2=1.59
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/games-board/crafty/ChangeLog,v
21 retrieving revision 1.58
22 retrieving revision 1.59
23 diff -u -r1.58 -r1.59
24 --- ChangeLog 16 Sep 2014 22:16:57 -0000 1.58
25 +++ ChangeLog 30 Oct 2014 07:29:52 -0000 1.59
26 @@ -1,6 +1,12 @@
27 # ChangeLog for games-board/crafty
28 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/games-board/crafty/ChangeLog,v 1.58 2014/09/16 22:16:57 mr_bones_ Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/games-board/crafty/ChangeLog,v 1.59 2014/10/30 07:29:52 mr_bones_ Exp $
31 +
32 +*crafty-24.1 (30 Oct 2014)
33 +
34 + 30 Oct 2014; Michael Sterrett <mr_bones_@g.o> +crafty-24.1.ebuild,
35 + -crafty-24.0.ebuild:
36 + version bump
37
38 16 Sep 2014; Michael Sterrett <mr_bones_@g.o> -crafty-23.8.ebuild:
39 old
40
41
42
43 1.1 games-board/crafty/crafty-24.1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-board/crafty/crafty-24.1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-board/crafty/crafty-24.1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: crafty-24.1.ebuild
49 ===================================================================
50 # Copyright 1999-2014 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/games-board/crafty/crafty-24.1.ebuild,v 1.1 2014/10/30 07:29:52 mr_bones_ Exp $
53
54 EAPI=5
55 inherit flag-o-matic toolchain-funcs eutils games
56
57 DESCRIPTION="Bob Hyatt's strong chess engine"
58 HOMEPAGE="http://www.craftychess.com/"
59 SRC_URI="http://www.craftychess.com/${P}.zip
60 http://www.cis.uab.edu/hyatt/crafty/source/${P}.zip
61 ftp://ftp.cis.uab.edu/pub/hyatt/documentation/${PN}.doc.ascii"
62
63 LICENSE="crafty"
64 SLOT="0"
65 KEYWORDS="~amd64 ~ppc ~x86"
66 IUSE="no-opts"
67 RESTRICT="test"
68
69 RDEPEND=""
70 DEPEND="${RDEPEND}
71 app-arch/unzip"
72
73 src_prepare() {
74 sed -i \
75 -e '/-o crafty/s/CC/CXX/' \
76 -e 's:CXFLAGS:CXXFLAGS:g' \
77 Makefile || die
78 sed -i \
79 -e "s:\"crafty.hlp\":\"${GAMES_DATADIR}/${PN}/crafty.hlp\":" option.c || die
80 }
81
82 src_compile() {
83 local makeopts="target=UNIX"
84
85 if ! use no-opts ; then
86 if [[ $(tc-getCC) = icc ]] ; then
87 makeopts="${makeopts} 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 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 else
108 : # everything else :)
109 fi
110 fi
111 fi
112 append-flags -DPOSIX -DSKILL
113 emake ${makeopts} crafty-make LDFLAGS="${LDFLAGS} -pthread"
114 }
115
116 src_install() {
117 dogamesbin crafty
118 insinto "${GAMES_DATADIR}/${PN}"
119 doins crafty.hlp
120 dodoc "${DISTDIR}"/crafty.doc.ascii
121 prepgamesdirs
122 }
123
124 pkg_postinst() {
125 games_pkg_postinst
126 elog
127 elog "Note: No books or tablebases have been installed. If you want them, just"
128 elog " download them from ${HOMEPAGE}."
129 elog " You will find documentation there too. In most cases you take now "
130 elog " your xboard compatible application, (xboard, eboard, knights) and "
131 elog " just play chess against computer opponent. Have fun."
132 elog
133 }