summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2020-04-14 19:57:00 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2020-04-14 22:21:24 +0200
commita8638d5b667693a4fd07e1e211a007f2b83bc434 (patch)
treee223f43f7e897fff1e082b38712a22a1237d751c /dev-games/freecell-solver/freecell-solver-5.22.1.ebuild
parentnet-misc/smb4k: 3.0.4 version bump (diff)
downloadgentoo-a8638d5b667693a4fd07e1e211a007f2b83bc434.tar.gz
gentoo-a8638d5b667693a4fd07e1e211a007f2b83bc434.tar.bz2
gentoo-a8638d5b667693a4fd07e1e211a007f2b83bc434.zip
dev-games/freecell-solver: 5.22.1 version bump
Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'dev-games/freecell-solver/freecell-solver-5.22.1.ebuild')
-rw-r--r--dev-games/freecell-solver/freecell-solver-5.22.1.ebuild51
1 files changed, 51 insertions, 0 deletions
diff --git a/dev-games/freecell-solver/freecell-solver-5.22.1.ebuild b/dev-games/freecell-solver/freecell-solver-5.22.1.ebuild
new file mode 100644
index 000000000000..67975b0abe75
--- /dev/null
+++ b/dev-games/freecell-solver/freecell-solver-5.22.1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7,8} )
+inherit cmake 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 ~arm64 ~x86"
+IUSE="tcmalloc"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ $(python_gen_cond_dep '
+ dev-python/pysol_cards[${PYTHON_MULTI_USEDEP}]
+ dev-python/random2[${PYTHON_MULTI_USEDEP}]
+ dev-python/six[${PYTHON_MULTI_USEDEP}]
+ ')
+ tcmalloc? ( dev-util/google-perftools )
+"
+DEPEND="${RDEPEND}
+ dev-perl/Path-Tiny
+ dev-perl/Template-Toolkit
+"
+
+DOCS=( README.html )
+
+PATCHES=( "${FILESDIR}/${P}-no-docs.patch" )
+
+src_prepare() {
+ python_fix_shebang board_gen
+ cmake_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_STATIC_LIBRARY=OFF
+ -DFCS_BUILD_DOCS=OFF
+ -DFCS_WITH_TEST_SUITE=OFF #requires unpackaged dependencies
+ -DFCS_AVOID_TCMALLOC=$(usex !tcmalloc)
+ )
+
+ cmake_src_configure
+}