From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (unknown [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 99F7A138334 for ; Sun, 27 Jan 2019 12:22:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C2481E1043; Sun, 27 Jan 2019 12:22:49 +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 846A2E1043 for ; Sun, 27 Jan 2019 12:22:49 +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 20231335D4B for ; Sun, 27 Jan 2019 12:22:48 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 903C7455 for ; Sun, 27 Jan 2019 12:22:46 +0000 (UTC) From: "Andrey Grozin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrey Grozin" Message-ID: <1548591743.c5e61740d8762f6fa47ceebf62be0aa415fd3a07.grozin@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-board/pysolfc/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-board/pysolfc/pysolfc-2.4.0-r1.ebuild X-VCS-Directories: games-board/pysolfc/ X-VCS-Committer: grozin X-VCS-Committer-Name: Andrey Grozin X-VCS-Revision: c5e61740d8762f6fa47ceebf62be0aa415fd3a07 X-VCS-Branch: master Date: Sun, 27 Jan 2019 12:22:46 +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: 02fe736f-c62b-442c-bfac-e75e3dbeb8c2 X-Archives-Hash: 1c6ddfae8e4d6527b0321f1e681decb8 commit: c5e61740d8762f6fa47ceebf62be0aa415fd3a07 Author: Andrey Grozin gentoo org> AuthorDate: Sun Jan 27 12:22:23 2019 +0000 Commit: Andrey Grozin gentoo org> CommitDate: Sun Jan 27 12:22:23 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5e61740 games-board/pysolfc: add a missing dependency Package-Manager: Portage-2.3.58, Repoman-2.3.12 Signed-off-by: Andrey Grozin gentoo.org> games-board/pysolfc/pysolfc-2.4.0-r1.ebuild | 69 +++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/games-board/pysolfc/pysolfc-2.4.0-r1.ebuild b/games-board/pysolfc/pysolfc-2.4.0-r1.ebuild new file mode 100644 index 00000000000..af1ee277708 --- /dev/null +++ b/games-board/pysolfc/pysolfc-2.4.0-r1.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_5,3_6} ) +PYTHON_REQ_USE="tk" + +inherit eutils distutils-r1 + +MY_PN=PySolFC + +DESCRIPTION="An exciting collection of more than 1000 solitaire card games" +HOMEPAGE="http://pysolfc.sourceforge.net/" +SRC_URI="https://github.com/shlomif/${MY_PN}/archive/${P}.tar.gz + extra-cardsets? ( mirror://sourceforge/${PN}/archive/${P}/${MY_PN}-Cardsets-2.0.tar.bz2 )" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="extra-cardsets minimal +sound" + +S=${WORKDIR}/${MY_PN}-${P} + +DEPEND="dev-python/six" +RDEPEND="${DEPEND} + python_targets_python3_5? ( dev-python/random2[python_targets_python3_5] ) + python_targets_python3_6? ( dev-python/random2[python_targets_python3_6] ) + !minimal? ( dev-python/pillow[tk,${PYTHON_USEDEP}] + dev-tcltk/tktable ) + sound? ( dev-python/pygame[${PYTHON_USEDEP}] )" + +PATCHES=( + "${FILESDIR}/${PN}-gentoo.patch" #591904 + "${FILESDIR}/${PN}-locales.patch" +) + +python_prepare_all() { + sed -i \ + -e "/pysol.desktop/d" \ + -e "s:share/icons:share/pixmaps:" \ + -e "s:data_dir =.*:data_dir = \'/usr/share/${PN}\':" \ + setup.py || die + + distutils-r1_python_prepare_all +} + +python_compile_all() { + pushd html-src > /dev/null || die "html-src not found" + PYTHONPATH=.. "${EPYTHON}" gen-html.py || die "gen-html failed" + mv images html/ || die "mv images failed" + popd > /dev/null +} + +python_install_all() { + make_desktop_entry pysol.py "PySol Fan Club Edition" pysol02 + + if use extra-cardsets; then + insinto /usr/share/${PN} + doins -r "${WORKDIR}"/${MY_PN}-Cardsets-2.0/* + fi + + dosym /usr/share/doc/${PF}/html /usr/share/${PN}/html + + doman docs/*.6 + DOCS=( README.md AUTHORS docs/README docs/README.SOURCE ) + HTML_DOCS=( html-src/html/. ) + distutils-r1_python_install_all +}