Skip to content

Commit fd85398

Browse files
committed
dev-games/freecell-solver: 5.20.1 version bump
Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Andreas Sturmlechner <[email protected]>
1 parent edf0722 commit fd85398

File tree

4 files changed

+102
-0
lines changed

4 files changed

+102
-0
lines changed

dev-games/freecell-solver/Manifest

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
DIST freecell-solver-5.14.0.tar.xz 407912 BLAKE2B c9da3557d9d073e017215cb0e0c64bfabeeb001c6e8373cc7e35aac40b2722f18966bb7ebf041e869c9e5c1fdbf0fc24e652fef688707c3ee69b300d8fdc246c SHA512 21c8898673e402514c6d40ae0045d6e9077b1606430465bfb146507fbe098be6ca4f88d976e2dafadbc8e84b5aeb9325b58ce8a384ea4ed6de4f5fec485d51ea
2+
DIST freecell-solver-5.20.1.tar.xz 420748 BLAKE2B 5322567ba4246f11deb74d298f069cfa0f093f7d15dda2132c97d04546fac47f979d3e3b69ee2ee0bdef92b3ff10aba27efda5782dc9ffdd9c7eb91ad7c419cd SHA512 439c55713f5fdb98fa90b203fb5a0d135e7f3aa249ee59e659ed371f7d4de03cc16945b3170f3c1fc4e2afe3733866a6db80945868e129589a4fdde00df51335
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Package wants to install all kinds of doc files. It does not help us.
2+
3+
--- a/CMakeLists.txt 2019-09-12 23:04:19.628187073 +0200
4+
+++ b/CMakeLists.txt 2019-09-12 23:06:38.928231282 +0200
5+
@@ -858,14 +858,6 @@
6+
INSTALL_MAN ("${fc_solve_manpage}" 6)
7+
ENDIF ()
8+
9+
-INSTALL(
10+
- FILES
11+
- ${docs_to_install}
12+
- "README.win32.txt"
13+
- DESTINATION
14+
- "share/doc/freecell-solver-5.20.1"
15+
-)
16+
-
17+
SET (dest "include/freecell-solver")
18+
INSTALL(
19+
FILES
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
From f5801e70d0ade110e23595d00c62221f6dcd8845 Mon Sep 17 00:00:00 2001
2+
From: Andreas Sturmlechner <[email protected]>
3+
Date: Thu, 26 Mar 2020 13:28:29 +0100
4+
Subject: [PATCH] Fix pkgconfig libdir path
5+
6+
Needs to respect LIB_SUFFIX to work.
7+
---
8+
libfreecell-solver.pc.in | 2 +-
9+
1 file changed, 1 insertion(+), 1 deletion(-)
10+
11+
diff --git a/libfreecell-solver.pc.in b/libfreecell-solver.pc.in
12+
index 2eb1fe68f..4fc3c7fbb 100644
13+
--- a/libfreecell-solver.pc.in
14+
+++ b/libfreecell-solver.pc.in
15+
@@ -1,6 +1,6 @@
16+
prefix="@CMAKE_INSTALL_PREFIX@"
17+
exec_prefix=${prefix}
18+
-libdir=${exec_prefix}/lib
19+
+libdir=${exec_prefix}/lib@LIB_SUFFIX@
20+
includedir=${prefix}/include
21+
22+
Name: Freecell Solver
23+
--
24+
2.26.0
25+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Copyright 1999-2020 Gentoo Authors
2+
# Distributed under the terms of the GNU General Public License v2
3+
4+
EAPI=7
5+
6+
PYTHON_COMPAT=( python3_{6,7,8} )
7+
inherit cmake python-single-r1
8+
9+
DESCRIPTION="C library for automatically solving Freecell and some other solitaire variants"
10+
HOMEPAGE="https://fc-solve.shlomifish.org/"
11+
SRC_URI="https://fc-solve.shlomifish.org/downloads/fc-solve/${P}.tar.xz"
12+
13+
LICENSE="MIT"
14+
SLOT="0"
15+
KEYWORDS="~amd64 ~arm64 ~x86"
16+
IUSE="tcmalloc"
17+
18+
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
19+
20+
RDEPEND="${PYTHON_DEPS}
21+
$(python_gen_cond_dep '
22+
dev-python/pysol_cards[${PYTHON_MULTI_USEDEP}]
23+
dev-python/random2[${PYTHON_MULTI_USEDEP}]
24+
dev-python/six[${PYTHON_MULTI_USEDEP}]
25+
')
26+
tcmalloc? ( dev-util/google-perftools )
27+
"
28+
DEPEND="${RDEPEND}
29+
dev-perl/Path-Tiny
30+
dev-perl/Template-Toolkit
31+
"
32+
33+
DOCS=( README.html )
34+
35+
PATCHES=(
36+
"${FILESDIR}/${P}-cmake.patch"
37+
"${FILESDIR}/${P}-pkgconfig.patch"
38+
)
39+
40+
src_prepare() {
41+
sed -i -e "s|share/doc/freecell-solver/|share/doc/${P}|" CMakeLists.txt || die
42+
43+
python_fix_shebang board_gen
44+
45+
cmake_src_prepare
46+
}
47+
48+
src_configure() {
49+
local mycmakeargs=(
50+
-DBUILD_STATIC_LIBRARY=OFF
51+
-DFCS_BUILD_DOCS=OFF
52+
-DFCS_WITH_TEST_SUITE=OFF #requires unpackaged dependencies
53+
-DFCS_AVOID_TCMALLOC=$(usex !tcmalloc)
54+
)
55+
56+
cmake_src_configure
57+
}

0 commit comments

Comments
 (0)