Gentoo Archives: gentoo-commits

From: "Ben de Groot (yngwin)" <yngwin@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-board/stockfish: ChangeLog stockfish-6-r1.ebuild metadata.xml stockfish-6.ebuild
Date: Sat, 07 Feb 2015 11:54:26
Message-Id: 20150207115420.40671113F5@oystercatcher.gentoo.org
1 yngwin 15/02/07 11:54:20
2
3 Modified: ChangeLog metadata.xml
4 Added: stockfish-6-r1.ebuild
5 Removed: stockfish-6.ebuild
6 Log:
7 Ebuild improvements
8
9 (Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 0x4FDF9CFD2FAC514E!)
10
11 Revision Changes Path
12 1.2 games-board/stockfish/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-board/stockfish/ChangeLog?rev=1.2&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-board/stockfish/ChangeLog?rev=1.2&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-board/stockfish/ChangeLog?r1=1.1&r2=1.2
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/games-board/stockfish/ChangeLog,v
21 retrieving revision 1.1
22 retrieving revision 1.2
23 diff -u -r1.1 -r1.2
24 --- ChangeLog 5 Feb 2015 20:09:33 -0000 1.1
25 +++ ChangeLog 7 Feb 2015 11:54:20 -0000 1.2
26 @@ -1,6 +1,12 @@
27 # ChangeLog for games-board/stockfish
28 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/games-board/stockfish/ChangeLog,v 1.1 2015/02/05 20:09:33 yngwin Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/games-board/stockfish/ChangeLog,v 1.2 2015/02/07 11:54:20 yngwin Exp $
31 +
32 +*stockfish-6-r1 (07 Feb 2015)
33 +
34 + 07 Feb 2015; Ben de Groot <yngwin@g.o> -stockfish-6.ebuild,
35 + +stockfish-6-r1.ebuild, metadata.xml:
36 + Ebuild improvements
37
38 *stockfish-6 (05 Feb 2015)
39
40
41
42
43 1.2 games-board/stockfish/metadata.xml
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-board/stockfish/metadata.xml?rev=1.2&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-board/stockfish/metadata.xml?rev=1.2&content-type=text/plain
47 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-board/stockfish/metadata.xml?r1=1.1&r2=1.2
48
49 Index: metadata.xml
50 ===================================================================
51 RCS file: /var/cvsroot/gentoo-x86/games-board/stockfish/metadata.xml,v
52 retrieving revision 1.1
53 retrieving revision 1.2
54 diff -u -r1.1 -r1.2
55 --- metadata.xml 5 Feb 2015 20:09:33 -0000 1.1
56 +++ metadata.xml 7 Feb 2015 11:54:20 -0000 1.2
57 @@ -5,4 +5,10 @@
58 <email>yngwin@g.o</email>
59 <name>Ben de Groot</name>
60 </maintainer>
61 + <use>
62 + <flag name='armv7'>Build for armv7; enables PIE</flag>
63 + <flag name='general-32'>Generic unoptimized 32-bits build</flag>
64 + <flag name='general-64'>Generic unoptimized 64-bits build</flag>
65 + <flag name='optimize'>Enable upstream -O3 optimizations (default enabled)</flag>
66 + </use>
67 </pkgmetadata>
68
69
70
71 1.1 games-board/stockfish/stockfish-6-r1.ebuild
72
73 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-board/stockfish/stockfish-6-r1.ebuild?rev=1.1&view=markup
74 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-board/stockfish/stockfish-6-r1.ebuild?rev=1.1&content-type=text/plain
75
76 Index: stockfish-6-r1.ebuild
77 ===================================================================
78 # Copyright 1999-2015 Gentoo Foundation
79 # Distributed under the terms of the GNU General Public License v2
80 # $Header: /var/cvsroot/gentoo-x86/games-board/stockfish/stockfish-6-r1.ebuild,v 1.1 2015/02/07 11:54:20 yngwin Exp $
81
82 EAPI=5
83 if [[ ${PV} == *9999* ]]; then
84 inherit git-r3
85 EGIT_REPO_URI="git://github.com/official-stockfish/Stockfish.git"
86 KEYWORDS=""
87 S=${WORKDIR}/${P}/src
88 else
89 SRC_URI="https://stockfish.s3.amazonaws.com/${P}-src.zip"
90 KEYWORDS="~amd64 ~x86"
91 S=${WORKDIR}/${P}-src/src
92 fi
93
94 DESCRIPTION="Free UCI chess engine, claimed to be the strongest in the world"
95 HOMEPAGE="http://stockfishchess.org/"
96
97 LICENSE="GPL-3"
98 SLOT="0"
99 IUSE="armv7 cpu_flags_x86_avx2 cpu_flags_x86_popcnt cpu_flags_x86_sse debug
100 general-32 general-64 +optimize"
101
102 DEPEND=""
103 RDEPEND=""
104
105 src_prepare() {
106 # prevent pre-stripping
107 sed -e 's:-strip $(BINDIR)/$(EXE)::' -i Makefile || die
108 }
109
110 src_compile() {
111 local my_arch
112 # generic unoptimized first
113 use general-32 && my_arch=general-32
114 use general-64 && my_arch=general-64
115 # x86
116 use x86 && my_arch=x86-32-old
117 use cpu_flags_x86_sse && my_arch=x86-32
118 # amd64
119 use amd64 && my_arch=x86-64
120 use cpu_flags_x86_popcnt && my_arch=x86-64-modern
121 # both bmi2 and avx2 are part of hni (haswell new instructions)
122 use cpu_flags_x86_avx2 && my_arch=x86-64-bmi2
123 # other architectures
124 use armv7 && my_arch=armv7
125 use ppc && my_arch=ppc
126 use ppc64 && my_arch=ppc64
127
128 emake build ARCH=${my_arch} \
129 debug=$(usex debug "yes" "no") \
130 optimize=$(usex optimize "yes" "no")
131 }
132
133 src_install() {
134 emake PREFIX="${D}/usr" install
135 dodoc ../AUTHORS ../Readme.md
136 }