Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-games/freecell-solver/files/, dev-games/freecell-solver/
Date: Fri, 08 Jan 2021 19:19:27
Message-Id: 1610133546.dce14a783c92e42f5ee4f459049e9cf65c9287f7.asturm@gentoo
1 commit: dce14a783c92e42f5ee4f459049e9cf65c9287f7
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 8 16:12:24 2021 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 8 19:19:06 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dce14a78
7
8 dev-games/freecell-solver: Properly depend on dev-libs/rinutils
9
10 Package-Manager: Portage-3.0.12, Repoman-3.0.2
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 ...reecell-solver-6.2.0-no-git-clone-kthxbye.patch | 20 ++++++++
14 .../freecell-solver-6.2.0-r1.ebuild | 57 ++++++++++++++++++++++
15 2 files changed, 77 insertions(+)
16
17 diff --git a/dev-games/freecell-solver/files/freecell-solver-6.2.0-no-git-clone-kthxbye.patch b/dev-games/freecell-solver/files/freecell-solver-6.2.0-no-git-clone-kthxbye.patch
18 new file mode 100644
19 index 00000000000..17675d22ab0
20 --- /dev/null
21 +++ b/dev-games/freecell-solver/files/freecell-solver-6.2.0-no-git-clone-kthxbye.patch
22 @@ -0,0 +1,20 @@
23 +--- a/CMakeLists.txt
24 ++++ b/CMakeLists.txt
25 +@@ -210,7 +210,7 @@
26 + # Clone the patsolve repository with the appropriate branch.
27 + SET (pats_dir "patsolve")
28 +
29 +-IF (NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${pats_dir}")
30 ++IF (0)
31 + EXECUTE_PROCESS(
32 + COMMAND "git" "clone" "https://github.com/shlomif/patsolve.git" "${pats_dir}"
33 + WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
34 +@@ -219,7 +219,7 @@
35 +
36 + # Clone the rinutils repository with the appropriate tag.
37 + SET (rinutils_dir "rinutils")
38 +-IF (NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${rinutils_dir}")
39 ++IF (0)
40 + EXECUTE_PROCESS(
41 + COMMAND "git" "clone" "-b" "0.6.0" "https://github.com/shlomif/rinutils.git" "${rinutils_dir}"
42 + WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
43
44 diff --git a/dev-games/freecell-solver/freecell-solver-6.2.0-r1.ebuild b/dev-games/freecell-solver/freecell-solver-6.2.0-r1.ebuild
45 new file mode 100644
46 index 00000000000..c74ccd6cfb0
47 --- /dev/null
48 +++ b/dev-games/freecell-solver/freecell-solver-6.2.0-r1.ebuild
49 @@ -0,0 +1,57 @@
50 +# Copyright 1999-2021 Gentoo Authors
51 +# Distributed under the terms of the GNU General Public License v2
52 +
53 +EAPI=7
54 +
55 +PYTHON_COMPAT=( python3_{6,7,8,9} )
56 +inherit cmake python-single-r1
57 +
58 +DESCRIPTION="C library for automatically solving Freecell and some other solitaire variants"
59 +HOMEPAGE="https://fc-solve.shlomifish.org/"
60 +SRC_URI="https://fc-solve.shlomifish.org/downloads/fc-solve/${P}.tar.xz"
61 +
62 +LICENSE="MIT"
63 +SLOT="0"
64 +KEYWORDS="amd64 arm64 x86"
65 +IUSE="tcmalloc"
66 +
67 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
68 +
69 +RDEPEND="${PYTHON_DEPS}
70 + dev-libs/rinutils
71 + $(python_gen_cond_dep '
72 + dev-python/pysol_cards[${PYTHON_MULTI_USEDEP}]
73 + dev-python/random2[${PYTHON_MULTI_USEDEP}]
74 + dev-python/six[${PYTHON_MULTI_USEDEP}]
75 + ')
76 + tcmalloc? ( dev-util/google-perftools )
77 +"
78 +DEPEND="${RDEPEND}
79 + dev-perl/Moo
80 + dev-perl/Path-Tiny
81 + dev-perl/Template-Toolkit
82 +"
83 +
84 +DOCS=( README.html )
85 +
86 +PATCHES=(
87 + "${FILESDIR}/${PN}-5.22.1-no-docs.patch"
88 + "${FILESDIR}/${P}-no-git-clone-kthxbye.patch"
89 +)
90 +
91 +src_prepare() {
92 + cmake_src_prepare
93 + python_fix_shebang board_gen
94 + rm -r rinutils || die
95 +}
96 +
97 +src_configure() {
98 + local mycmakeargs=(
99 + -DBUILD_STATIC_LIBRARY=OFF
100 + -DFCS_BUILD_DOCS=OFF
101 + -DFCS_WITH_TEST_SUITE=OFF # requires unpackaged dependencies
102 + -DFCS_AVOID_TCMALLOC=$(usex !tcmalloc)
103 + )
104 +
105 + cmake_src_configure
106 +}