summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2019-09-12 23:08:48 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2019-09-12 23:40:52 +0200
commitbaaafb987b9d961c77d0488711c50456ee1c2c92 (patch)
tree50780a570f387d0cce411b56a40b56319e54dcff /dev-games
parentnet-firewall/shorewall: drop old (diff)
downloadgentoo-baaafb987b9d961c77d0488711c50456ee1c2c92.tar.gz
gentoo-baaafb987b9d961c77d0488711c50456ee1c2c92.tar.bz2
gentoo-baaafb987b9d961c77d0488711c50456ee1c2c92.zip
dev-games/freecell-solver: Add USE tcmalloc, fix doc install dir
Package-Manager: Portage-2.3.76, Repoman-2.3.17 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'dev-games')
-rw-r--r--dev-games/freecell-solver/files/freecell-solver-5.6.0-cmake.patch19
-rw-r--r--dev-games/freecell-solver/freecell-solver-5.6.0-r2.ebuild (renamed from dev-games/freecell-solver/freecell-solver-5.6.0-r1.ebuild)10
2 files changed, 27 insertions, 2 deletions
diff --git a/dev-games/freecell-solver/files/freecell-solver-5.6.0-cmake.patch b/dev-games/freecell-solver/files/freecell-solver-5.6.0-cmake.patch
new file mode 100644
index 000000000000..322482ce6dee
--- /dev/null
+++ b/dev-games/freecell-solver/files/freecell-solver-5.6.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.6.0"
+-)
+-
+ SET (dest "include/freecell-solver")
+ INSTALL(
+ FILES
diff --git a/dev-games/freecell-solver/freecell-solver-5.6.0-r1.ebuild b/dev-games/freecell-solver/freecell-solver-5.6.0-r2.ebuild
index 159cc4f198b0..681a115f0356 100644
--- a/dev-games/freecell-solver/freecell-solver-5.6.0-r1.ebuild
+++ b/dev-games/freecell-solver/freecell-solver-5.6.0-r2.ebuild
@@ -13,19 +13,24 @@ SRC_URI="https://fc-solve.shlomifish.org/downloads/fc-solve/${P}.tar.xz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
-IUSE=""
+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
"
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+DOCS=( README.html )
+
+PATCHES=( "${FILESDIR}/${P}-cmake.patch" )
src_prepare() {
sed -i -e "s|share/doc/freecell-solver/|share/doc/${P}|" CMakeLists.txt || die
@@ -40,6 +45,7 @@ src_configure() {
-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