summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-board')
-rw-r--r--games-board/eleeye/Manifest1
-rw-r--r--games-board/eleeye/eleeye-3.1.5.ebuild35
-rw-r--r--games-board/eleeye/eleeye-3.3.9999.ebuild38
-rw-r--r--games-board/eleeye/files/eleeye-3.1.5-makefile18
-rw-r--r--games-board/eleeye/files/eleeye-3.3.9999-makefile10
-rw-r--r--games-board/eleeye/metadata.xml8
6 files changed, 110 insertions, 0 deletions
diff --git a/games-board/eleeye/Manifest b/games-board/eleeye/Manifest
new file mode 100644
index 0000000..eeaee9a
--- /dev/null
+++ b/games-board/eleeye/Manifest
@@ -0,0 +1 @@
+DIST eleeye-3.1.5.tar.gz 1608479 SHA256 6692dc3b268beb325fe023ccf09417d23dabeaca1eabf9935dc4767c2ba73578 SHA512 2a65ceb1c851645c7d97d3a4082dfa083d3cb7b46297670619ae057a9479895ba9799e3215d3b6a0ffb9aa4450fa219598c02e6d18f2c996e58d7f5e814e6717 WHIRLPOOL 722f5748d9caa7d5f5c0bbdf40e567aee6e4841d5c5ce4e118e85d69ebb0a452d3ac1d63f91f6be01ad792de69ce34f22f1ba934b8a4a658384e622acc9b499d
diff --git a/games-board/eleeye/eleeye-3.1.5.ebuild b/games-board/eleeye/eleeye-3.1.5.ebuild
new file mode 100644
index 0000000..a9bc7e2
--- /dev/null
+++ b/games-board/eleeye/eleeye-3.1.5.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="5"
+
+inherit versionator games
+
+MY_PV="$(get_version_component_range 1-2)$(get_version_component_range 3)"
+DESCRIPTION="Chinese chess engine (UCCI protocol)"
+HOMEPAGE="https://sourceforge.net/projects/xqwizard/"
+SRC_URI="mirror://sourceforge/project/xqwizard/4.%20ElephantEye/4-1.%20ElephantEye%20${MY_PV}%20%28UCCI%20Engine%29%20Source/${PN}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+S="${WORKDIR}"
+
+src_prepare() {
+ cp "${FILESDIR}"/${P}-makefile ${PN}/Makefile || die
+}
+
+src_compile() {
+ emake -C ${PN} || die
+}
+
+src_install() {
+ dogamesbin ${PN}/${PN} || die
+ dolib ${PN}/evaluate/libeval.so || die
+}
diff --git a/games-board/eleeye/eleeye-3.3.9999.ebuild b/games-board/eleeye/eleeye-3.3.9999.ebuild
new file mode 100644
index 0000000..3babbfa
--- /dev/null
+++ b/games-board/eleeye/eleeye-3.3.9999.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="5"
+
+inherit subversion games
+
+DESCRIPTION="Chinese chess engine (UCCI protocol)"
+HOMEPAGE="https://sourceforge.net/projects/xqwizard/"
+ESVN_REPO_URI="svn://svn.code.sf.net/p/xqwizard/code/ELEEYE"
+
+LICENSE="LGPL-2.1+"
+SLOT="0"
+KEYWORDS=""
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+S="${WORKDIR}"
+
+src_unpack() {
+ subversion_src_unpack
+}
+
+src_prepare() {
+ subversion_src_prepare
+ cp "${FILESDIR}"/${P}-makefile ${PN}/Makefile || die
+}
+
+src_compile() {
+ emake -C ${PN} || die
+}
+
+src_install() {
+ dogamesbin ${PN}/${PN} || die
+}
diff --git a/games-board/eleeye/files/eleeye-3.1.5-makefile b/games-board/eleeye/files/eleeye-3.1.5-makefile
new file mode 100644
index 0000000..4208dca
--- /dev/null
+++ b/games-board/eleeye/files/eleeye-3.1.5-makefile
@@ -0,0 +1,18 @@
+ELEEYE_CPP_FILES = ../base/pipe.cpp $(wildcard *.cpp)
+ELEEYE_O_FILES = $(patsubst %.cpp,%.o,$(ELEEYE_CPP_FILES))
+
+LIBEVAL_CPP_FILES = pregen.cpp position.cpp genmoves.cpp $(wildcard evaluate/*.cpp)
+LIBEVAL_O_FILES = $(patsubst %.cpp,%.o,$(LIBEVAL_CPP_FILES))
+
+CPPFLAGS += -DNDEBUG
+
+all: eleeye evaluate/libeval.so
+
+eleeye: $(ELEEYE_O_FILES)
+ $(CXX) $(LDFLAGS) -o $@ $(ELEEYE_O_FILES) -ldl
+
+evaluate/libeval.so: $(LIBEVAL_O_FILES)
+ $(CXX) $(LDFLAGS) -shared -fPIC -o $@ $(LIBEVAL_O_FILES)
+
+%.o: %.cpp
+ $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -fPIC -c $< -o $@
diff --git a/games-board/eleeye/files/eleeye-3.3.9999-makefile b/games-board/eleeye/files/eleeye-3.3.9999-makefile
new file mode 100644
index 0000000..6fde8d4
--- /dev/null
+++ b/games-board/eleeye/files/eleeye-3.3.9999-makefile
@@ -0,0 +1,10 @@
+CPP_FILES = ../base/pipe.cpp $(wildcard *.cpp)
+O_FILES = $(patsubst %.cpp,%.o,$(CPP_FILES))
+
+CPPFLAGS += -DNDEBUG
+
+eleeye: $(O_FILES)
+ $(CXX) $(LDFLAGS) -o $@ $(O_FILES) -ldl
+
+%.o: %.cpp
+ $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -c $< -o $@
diff --git a/games-board/eleeye/metadata.xml b/games-board/eleeye/metadata.xml
new file mode 100644
index 0000000..16bcc9f
--- /dev/null
+++ b/games-board/eleeye/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>sping@gentoo.org</email>
+ <name>Sebastian Pipping</name>
+ </maintainer>
+</pkgmetadata>