diff options
Diffstat (limited to 'dev-games')
-rw-r--r-- | dev-games/freecell-solver/Manifest | 1 | ||||
-rw-r--r-- | dev-games/freecell-solver/files/freecell-solver-5.14.0-cmake.patch | 19 | ||||
-rw-r--r-- | dev-games/freecell-solver/freecell-solver-5.14.0.ebuild | 52 |
3 files changed, 72 insertions, 0 deletions
diff --git a/dev-games/freecell-solver/Manifest b/dev-games/freecell-solver/Manifest index 54f88502b41b..25f991c28ccd 100644 --- a/dev-games/freecell-solver/Manifest +++ b/dev-games/freecell-solver/Manifest @@ -1 +1,2 @@ +DIST freecell-solver-5.14.0.tar.xz 407912 BLAKE2B c9da3557d9d073e017215cb0e0c64bfabeeb001c6e8373cc7e35aac40b2722f18966bb7ebf041e869c9e5c1fdbf0fc24e652fef688707c3ee69b300d8fdc246c SHA512 21c8898673e402514c6d40ae0045d6e9077b1606430465bfb146507fbe098be6ca4f88d976e2dafadbc8e84b5aeb9325b58ce8a384ea4ed6de4f5fec485d51ea DIST freecell-solver-5.6.0.tar.xz 392468 BLAKE2B 9b8a22eca95da8675a252bec947dc5edad35a492ce9b04db5bf956e9a8c7051a9ca38902f9704e1f789fe28ce3326515690b2070cbb0318d299fdb8446ec9d1a SHA512 aac86e9bfb5849ffd99c669d8cfdd79272bc2f2a9a7f085e22f775b26fa45fc404efbb7520d23469e96c54c3596e776c8f459e679127de9ec0bc065c82bff246 diff --git a/dev-games/freecell-solver/files/freecell-solver-5.14.0-cmake.patch b/dev-games/freecell-solver/files/freecell-solver-5.14.0-cmake.patch new file mode 100644 index 000000000000..3eef53666837 --- /dev/null +++ b/dev-games/freecell-solver/files/freecell-solver-5.14.0-cmake.patch @@ -0,0 +1,19 @@ +Package wants to install all kinds of doc files. It does not help us. + +--- a/CMakeLists.txt 2019-09-12 23:04:19.628187073 +0200 ++++ b/CMakeLists.txt 2019-09-12 23:06:38.928231282 +0200 +@@ -858,14 +858,6 @@ + INSTALL_MAN ("${fc_solve_manpage}" 6) + ENDIF () + +-INSTALL( +- FILES +- ${docs_to_install} +- "README.win32.txt" +- DESTINATION +- "share/doc/freecell-solver-5.14.0" +-) +- + SET (dest "include/freecell-solver") + INSTALL( + FILES diff --git a/dev-games/freecell-solver/freecell-solver-5.14.0.ebuild b/dev-games/freecell-solver/freecell-solver-5.14.0.ebuild new file mode 100644 index 000000000000..681a115f0356 --- /dev/null +++ b/dev-games/freecell-solver/freecell-solver-5.14.0.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7} ) +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 ~arm64 ~x86" +IUSE="tcmalloc" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS} + 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/Path-Tiny + dev-perl/Template-Toolkit +" + +DOCS=( README.html ) + +PATCHES=( "${FILESDIR}/${P}-cmake.patch" ) + +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 + -DFCS_AVOID_TCMALLOC=$(usex !tcmalloc) + ) + + cmake-utils_src_configure +} |