summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Palimaka <kensington@gentoo.org>2019-04-13 00:07:54 +1000
committerMichael Palimaka <kensington@gentoo.org>2019-04-13 00:16:51 +1000
commitefded93dd12ecf407990ddaaa9e2cd5f4029f358 (patch)
tree40c0d6af15f7e8d963806976c5a8e210db6a1851 /dev-games
parentdev-python/pysol_cards: new package (diff)
downloadgentoo-efded93dd12ecf407990ddaaa9e2cd5f4029f358.tar.gz
gentoo-efded93dd12ecf407990ddaaa9e2cd5f4029f358.tar.bz2
gentoo-efded93dd12ecf407990ddaaa9e2cd5f4029f358.zip
dev-games/freecell-solver: new package
Closes: https://bugs.gentoo.org/656408 Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Michael Palimaka <kensington@gentoo.org>
Diffstat (limited to 'dev-games')
-rw-r--r--dev-games/freecell-solver/Manifest1
-rw-r--r--dev-games/freecell-solver/freecell-solver-5.6.0.ebuild46
-rw-r--r--dev-games/freecell-solver/metadata.xml10
3 files changed, 57 insertions, 0 deletions
diff --git a/dev-games/freecell-solver/Manifest b/dev-games/freecell-solver/Manifest
new file mode 100644
index 00000000000..54f88502b41
--- /dev/null
+++ b/dev-games/freecell-solver/Manifest
@@ -0,0 +1 @@
+DIST freecell-solver-5.6.0.tar.xz 392468 BLAKE2B 9b8a22eca95da8675a252bec947dc5edad35a492ce9b04db5bf956e9a8c7051a9ca38902f9704e1f789fe28ce3326515690b2070cbb0318d299fdb8446ec9d1a SHA512 aac86e9bfb5849ffd99c669d8cfdd79272bc2f2a9a7f085e22f775b26fa45fc404efbb7520d23469e96c54c3596e776c8f459e679127de9ec0bc065c82bff246
diff --git a/dev-games/freecell-solver/freecell-solver-5.6.0.ebuild b/dev-games/freecell-solver/freecell-solver-5.6.0.ebuild
new file mode 100644
index 00000000000..e1c757cd773
--- /dev/null
+++ b/dev-games/freecell-solver/freecell-solver-5.6.0.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_6 )
+inherit cmake-utils python-single-r1
+
+DESCRIPTION="C library for automatically solving Freecell and some other solitaire variants"
+HOMEPAGE="https://fc-solve.shlomifish.org/"
+SRC_URI="https://fc-solve.shlomifish.org/downloads/fc-solve/${P}.tar.xz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+RDEPEND="${PYTHON_DEPS}
+ dev-python/pysol_cards[${PYTHON_USEDEP}]
+ dev-python/random2[${PYTHON_USEDEP}]
+ dev-python/six[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}
+ dev-perl/Path-Tiny
+ dev-perl/Template-Toolkit
+"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+src_prepare() {
+ sed -i -e "s|share/doc/freecell-solver/|share/doc/${P}|" CMakeLists.txt || die
+
+ python_fix_shebang board_gen
+
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_STATIC_LIBRARY=OFF
+ -DFCS_BUILD_DOCS=OFF
+ -DFCS_WITH_TEST_SUITE=OFF #requires unpackaged dependencies
+ )
+
+ cmake-utils_src_configure
+}
diff --git a/dev-games/freecell-solver/metadata.xml b/dev-games/freecell-solver/metadata.xml
new file mode 100644
index 00000000000..1eaf1a5b6c2
--- /dev/null
+++ b/dev-games/freecell-solver/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>kde@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">shlomif/fc-solve</remote-id>
+ </upstream>
+</pkgmetadata>