1 |
commit: 2fc3cd384284c6a3240adbf143019b8b95b3e439 |
2 |
Author: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jul 30 20:50:51 2019 +0000 |
4 |
Commit: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 30 20:51:16 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2fc3cd38 |
7 |
|
8 |
dev-games/freecell-solver: Works with python3.7 |
9 |
|
10 |
Package-Manager: Portage-2.3.69, Repoman-2.3.16 |
11 |
Signed-off-by: Alexey Shvetsov <alexxy <AT> gentoo.org> |
12 |
|
13 |
.../freecell-solver-5.6.0-r1.ebuild | 46 ++++++++++++++++++++++ |
14 |
1 file changed, 46 insertions(+) |
15 |
|
16 |
diff --git a/dev-games/freecell-solver/freecell-solver-5.6.0-r1.ebuild b/dev-games/freecell-solver/freecell-solver-5.6.0-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..159cc4f198b |
19 |
--- /dev/null |
20 |
+++ b/dev-games/freecell-solver/freecell-solver-5.6.0-r1.ebuild |
21 |
@@ -0,0 +1,46 @@ |
22 |
+# Copyright 1999-2019 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+ |
27 |
+PYTHON_COMPAT=( python3_{6,7} ) |
28 |
+inherit cmake-utils python-single-r1 |
29 |
+ |
30 |
+DESCRIPTION="C library for automatically solving Freecell and some other solitaire variants" |
31 |
+HOMEPAGE="https://fc-solve.shlomifish.org/" |
32 |
+SRC_URI="https://fc-solve.shlomifish.org/downloads/fc-solve/${P}.tar.xz" |
33 |
+ |
34 |
+LICENSE="MIT" |
35 |
+SLOT="0" |
36 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
37 |
+IUSE="" |
38 |
+ |
39 |
+RDEPEND="${PYTHON_DEPS} |
40 |
+ dev-python/pysol_cards[${PYTHON_USEDEP}] |
41 |
+ dev-python/random2[${PYTHON_USEDEP}] |
42 |
+ dev-python/six[${PYTHON_USEDEP}] |
43 |
+" |
44 |
+DEPEND="${RDEPEND} |
45 |
+ dev-perl/Path-Tiny |
46 |
+ dev-perl/Template-Toolkit |
47 |
+" |
48 |
+ |
49 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
50 |
+ |
51 |
+src_prepare() { |
52 |
+ sed -i -e "s|share/doc/freecell-solver/|share/doc/${P}|" CMakeLists.txt || die |
53 |
+ |
54 |
+ python_fix_shebang board_gen |
55 |
+ |
56 |
+ cmake-utils_src_prepare |
57 |
+} |
58 |
+ |
59 |
+src_configure() { |
60 |
+ local mycmakeargs=( |
61 |
+ -DBUILD_STATIC_LIBRARY=OFF |
62 |
+ -DFCS_BUILD_DOCS=OFF |
63 |
+ -DFCS_WITH_TEST_SUITE=OFF #requires unpackaged dependencies |
64 |
+ ) |
65 |
+ |
66 |
+ cmake-utils_src_configure |
67 |
+} |