diff options
author | Marcin Deranek <gringo@slonko.net> | 2015-02-06 20:46:04 +0100 |
---|---|---|
committer | Marcin Deranek <gringo@slonko.net> | 2015-02-06 20:46:04 +0100 |
commit | 92d771c7cc63d24f9437cf32c720d87facd89b28 (patch) | |
tree | 210a94a3223c18c95e07a10dcbb49b45ae1dcbd2 /games-board/stockfish/stockfish-5.ebuild | |
parent | 69311f4a6fef4c4191a2fdf30006e5ba595c9a53 (diff) | |
download | portage-92d771c7cc63d24f9437cf32c720d87facd89b28.tar.gz portage-92d771c7cc63d24f9437cf32c720d87facd89b28.tar.bz2 portage-92d771c7cc63d24f9437cf32c720d87facd89b28.zip |
Already in portage
Diffstat (limited to 'games-board/stockfish/stockfish-5.ebuild')
-rw-r--r-- | games-board/stockfish/stockfish-5.ebuild | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/games-board/stockfish/stockfish-5.ebuild b/games-board/stockfish/stockfish-5.ebuild deleted file mode 100644 index 95dd07b..0000000 --- a/games-board/stockfish/stockfish-5.ebuild +++ /dev/null @@ -1,65 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=5 -inherit games toolchain-funcs - -DESCRIPTION="UCI chess engine http://www.stockfishchess.com/" -HOMEPAGE="http://www.stockfishchess.com/" -SRC_URI="http://stockfish.s3.amazonaws.com/stockfish-${PV}-linux.zip" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="debug optimization" - -case $(tc-arch) in - "x86" ) IUSE+=" sse" ;; - "amd64" ) IUSE+=" popcnt" ;; -esac - -DEPEND="optimization? ( sys-devel/gcc[lto] )" - -S="${WORKDIR}/${PN}-${PV}-linux/src" - -pkg_setup() { - games_pkg_setup -} - -src_compile() { - local makeopts="ARCH=" - - case $(tc-arch) in - "x86" ) - makeopts+="x86-32" - ! use sse && makeopts+="-old" - ;; - "amd64" ) - makeopts+="x86-64" - use popcnt && makeopts+="-modern" - ;; - esac - - use debug && makeopts+=" debug=yes" - ! use optimization && makeopts+=" optimize=no" - - emake build ${makeopts} || die "emake failed" -} - -src_install() { - dogamesbin stockfish || die "dogamesbin failed" - dodoc ../Copying.txt ../Readme.md || die "dodoc failed" - prepgamesdirs -} - -pkg_postinst() { - games_pkg_postinst - elog - elog "Note: The opening book hasn't been installed. If you want it, just" - elog " download it from ${HOMEPAGE}." - elog " In most cases you take now your xboard compatible application," - elog " (xboard, eboard, knights) and just play chess against computer" - elog " opponent. Have fun." - elog -} |