From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 690CD1382C5 for ; Fri, 8 Jan 2021 19:19:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 56843E0843; Fri, 8 Jan 2021 19:19:26 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 31266E0843 for ; Fri, 8 Jan 2021 19:19:26 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 39AA43412E9 for ; Fri, 8 Jan 2021 19:19:25 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B5ECA47 for ; Fri, 8 Jan 2021 19:19:23 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1610133546.dce14a783c92e42f5ee4f459049e9cf65c9287f7.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-games/freecell-solver/files/, dev-games/freecell-solver/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-games/freecell-solver/files/freecell-solver-6.2.0-no-git-clone-kthxbye.patch dev-games/freecell-solver/freecell-solver-6.2.0-r1.ebuild X-VCS-Directories: dev-games/freecell-solver/files/ dev-games/freecell-solver/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: dce14a783c92e42f5ee4f459049e9cf65c9287f7 X-VCS-Branch: master Date: Fri, 8 Jan 2021 19:19:23 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 580c7df4-5418-4b03-946e-1c793121c278 X-Archives-Hash: c367b0fa836192f2cebff8a68254518d commit: dce14a783c92e42f5ee4f459049e9cf65c9287f7 Author: Andreas Sturmlechner gentoo org> AuthorDate: Fri Jan 8 16:12:24 2021 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Fri Jan 8 19:19:06 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dce14a78 dev-games/freecell-solver: Properly depend on dev-libs/rinutils Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Andreas Sturmlechner gentoo.org> ...reecell-solver-6.2.0-no-git-clone-kthxbye.patch | 20 ++++++++ .../freecell-solver-6.2.0-r1.ebuild | 57 ++++++++++++++++++++++ 2 files changed, 77 insertions(+) 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 new file mode 100644 index 00000000000..17675d22ab0 --- /dev/null +++ b/dev-games/freecell-solver/files/freecell-solver-6.2.0-no-git-clone-kthxbye.patch @@ -0,0 +1,20 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -210,7 +210,7 @@ + # Clone the patsolve repository with the appropriate branch. + SET (pats_dir "patsolve") + +-IF (NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${pats_dir}") ++IF (0) + EXECUTE_PROCESS( + COMMAND "git" "clone" "https://github.com/shlomif/patsolve.git" "${pats_dir}" + WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" +@@ -219,7 +219,7 @@ + + # Clone the rinutils repository with the appropriate tag. + SET (rinutils_dir "rinutils") +-IF (NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${rinutils_dir}") ++IF (0) + EXECUTE_PROCESS( + COMMAND "git" "clone" "-b" "0.6.0" "https://github.com/shlomif/rinutils.git" "${rinutils_dir}" + WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" 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 new file mode 100644 index 00000000000..c74ccd6cfb0 --- /dev/null +++ b/dev-games/freecell-solver/freecell-solver-6.2.0-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9} ) +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 x86" +IUSE="tcmalloc" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS} + dev-libs/rinutils + $(python_gen_cond_dep ' + dev-python/pysol_cards[${PYTHON_MULTI_USEDEP}] + dev-python/random2[${PYTHON_MULTI_USEDEP}] + dev-python/six[${PYTHON_MULTI_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}/${P}-no-git-clone-kthxbye.patch" +) + +src_prepare() { + cmake_src_prepare + python_fix_shebang board_gen + rm -r rinutils || die +} + +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 +}