public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Ben de Groot" <yngwin@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/betagarden:master commit in: games-board/stockfish/
Date: Fri,  6 Feb 2015 14:57:19 +0000 (UTC)	[thread overview]
Message-ID: <1423234628.b80d16e448d2c7e9b66a6206e7c71a4222ba4c89.yngwin@gentoo> (raw)

commit:     b80d16e448d2c7e9b66a6206e7c71a4222ba4c89
Author:     Ben de Groot <yngwin <AT> gentoo <DOT> org>
AuthorDate: Fri Feb  6 14:57:08 2015 +0000
Commit:     Ben de Groot <yngwin <AT> gentoo <DOT> org>
CommitDate: Fri Feb  6 14:57:08 2015 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/betagarden.git;a=commit;h=b80d16e4

games-board/stockfish: live ebuild

---
 games-board/stockfish/metadata.xml          |  8 ++++++
 games-board/stockfish/stockfish-9999.ebuild | 40 +++++++++++++++++++++++++++++
 2 files changed, 48 insertions(+)

diff --git a/games-board/stockfish/metadata.xml b/games-board/stockfish/metadata.xml
new file mode 100644
index 0000000..f2b4a5d
--- /dev/null
+++ b/games-board/stockfish/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+  <maintainer>
+    <email>yngwin@gentoo.org</email>
+    <name>Ben de Groot</name>
+  </maintainer>
+</pkgmetadata>

diff --git a/games-board/stockfish/stockfish-9999.ebuild b/games-board/stockfish/stockfish-9999.ebuild
new file mode 100644
index 0000000..cba1014
--- /dev/null
+++ b/games-board/stockfish/stockfish-9999.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-board/stockfish/stockfish-6.ebuild,v 1.1 2015/02/05 20:09:33 yngwin Exp $
+
+EAPI=5
+inherit git-r3 toolchain-funcs
+
+DESCRIPTION="The strongest chess engine in the world"
+HOMEPAGE="http://stockfishchess.org/"
+EGIT_REPO_URI="git://github.com/official-stockfish/Stockfish.git"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS=""
+IUSE="cpu_flags_x86_avx2 cpu_flags_x86_popcnt cpu_flags_x86_sse"
+
+DEPEND=""
+RDEPEND=""
+
+S=${WORKDIR}/${P}/src
+
+src_prepare() {
+	sed -e 's:-strip $(BINDIR)/$(EXE)::' -i Makefile
+}
+
+src_compile() {
+	local my_arch
+	use x86 && my_arch=x86-32-old
+	use cpu_flags_x86_sse && my_arch=x86-32
+	use amd64 && my_arch=x86-64
+	use cpu_flags_x86_popcnt && my_arch=x86-64-modern
+	use cpu_flags_x86_avx2 && my_arch=x86-64-bmi2
+
+	emake build ARCH=${my_arch} CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS}"
+}
+
+src_install() {
+	emake PREFIX="${D}/usr" install
+	dodoc ../AUTHORS ../Readme.md
+}


             reply	other threads:[~2015-02-06 14:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-06 14:57 Ben de Groot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-02-07 11:41 [gentoo-commits] proj/betagarden:master commit in: games-board/stockfish/ Ben de Groot
2015-02-07 11:46 Ben de Groot
2015-02-07 16:02 Ben de Groot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1423234628.b80d16e448d2c7e9b66a6206e7c71a4222ba4c89.yngwin@gentoo \
    --to=yngwin@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox