dev-games/freecell-solver - 6.16.0 (gentoo)

Search

Install

Install this version:

emerge -a =dev-games/freecell-solver-6.16.0

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-games/freecell-solver-6.16.0

Or alternatively:

emerge --autounmask-write -a =dev-games/freecell-solver-6.16.0

Package Information

Description:
C library for automatically solving Freecell and some other solitaire variants
Homepage:
https://fc-solve.shlomifish.org/
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
6.16.0 8 ~amd64 ~arm64 ~loong ~riscv ~x86 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_{12..14} )
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 ~loong ~riscv ~x86"
IUSE="tcmalloc"

REQUIRED_USE="${PYTHON_REQUIRED_USE}"

RDEPEND="${PYTHON_DEPS}
	dev-libs/rinutils
	$(python_gen_cond_dep '
		dev-python/pysol-cards[${PYTHON_USEDEP}]
		dev-python/random2[${PYTHON_USEDEP}]
		dev-python/six[${PYTHON_USEDEP}]
	')
	tcmalloc? ( dev-util/google-perftools )
"
DEPEND="${RDEPEND}
	dev-perl/Moo
	dev-perl/Path-Tiny
	dev-perl/Template-Toolkit
"

DOCS=( README.html )

PATCHES=(
	"${FILESDIR}/${PN}-5.22.1-no-docs.patch"
	"${FILESDIR}/${PN}-6.6.0-no-git-clone-kthxbye.patch"
)

src_prepare() {
	cmake_src_prepare
	python_fix_shebang board_gen
}

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
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-games/freecell-solver | euse -E <flag> -p dev-games/freecell-solver | euse -D <flag> -p dev-games/freecell-solver

Global/Standard Flags

Inherited Eclasses

Dependencies

DEPEND

${PYTHON_DEPS}
	dev-libs/rinutils
	$(python_gen_cond_dep '
		dev-python/pysol-cards[${PYTHON_USEDEP}]
		dev-python/random2[${PYTHON_USEDEP}]
		dev-python/six[${PYTHON_USEDEP}]
	')
	tcmalloc? ( dev-util/google-perftools )

	dev-perl/Moo
	dev-perl/Path-Tiny
	dev-perl/Template-Toolkit

RDEPEND

${PYTHON_DEPS}
	dev-libs/rinutils
	$(python_gen_cond_dep '
		dev-python/pysol-cards[${PYTHON_USEDEP}]
		dev-python/random2[${PYTHON_USEDEP}]
		dev-python/six[${PYTHON_USEDEP}]
	')
	tcmalloc? ( dev-util/google-perftools )

Manifest for 6.16.0

Type File Size Source URLs
DIST freecell-solver-6.16.0.tar.xz 443572 bytes https://fc-solve.shlomifish.org/downloads/fc-solve/freecell-solver-6.16.0.tar.xz