diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2021-09-20 18:49:56 -0400 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2021-09-20 19:08:50 -0400 |
commit | 3c08f5cfa4afcf526d12e2d05ebb4af9334e8c03 (patch) | |
tree | df9766de648b20b5a27f892f384bdef36131fc68 /games-board/pysolfc/pysolfc-2.14.0.ebuild | |
parent | sys-apps/sysvinit: Bump to version 3.00 (diff) | |
download | gentoo-3c08f5cfa4afcf526d12e2d05ebb4af9334e8c03.tar.gz gentoo-3c08f5cfa4afcf526d12e2d05ebb4af9334e8c03.tar.bz2 gentoo-3c08f5cfa4afcf526d12e2d05ebb4af9334e8c03.zip |
games-board/pysolfc: add 2.14.0
Upstream advertise python3.10 compat with this release
but deps haven't been tested with it yet (notably pygame,
may be better to wait for its next release).
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'games-board/pysolfc/pysolfc-2.14.0.ebuild')
-rw-r--r-- | games-board/pysolfc/pysolfc-2.14.0.ebuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/games-board/pysolfc/pysolfc-2.14.0.ebuild b/games-board/pysolfc/pysolfc-2.14.0.ebuild new file mode 100644 index 000000000000..10d0ba152253 --- /dev/null +++ b/games-board/pysolfc/pysolfc-2.14.0.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..9} ) +DISTUTILS_SINGLE_IMPL=1 +PYTHON_REQ_USE="tk" +inherit distutils-r1 xdg + +MY_PN="PySolFC" +MY_P="${MY_PN}-${PV}" +PS_CARD_P="${MY_PN}-Cardsets-2.1PRE" +PS_CARD_MIN_P="${MY_PN}-Cardsets--Minimal-2.0.2" + +DESCRIPTION="Exciting collection of more than 1000 solitaire card games" +HOMEPAGE="https://pysolfc.sourceforge.io/" +SRC_URI="mirror://sourceforge/pysolfc/${MY_P}.tar.xz + extra-cardsets? ( mirror://sourceforge/pysolfc/${PS_CARD_P}.tar.bz2 ) + !extra-cardsets? ( mirror://sourceforge/pysolfc/${PS_CARD_MIN_P}.tar.xz )" +S="${WORKDIR}/${MY_P}" + +LICENSE="GPL-3+ GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="extra-cardsets minimal +sound" + +RDEPEND=" + $(python_gen_cond_dep ' + dev-python/attrs[${PYTHON_USEDEP}] + dev-python/configobj[${PYTHON_USEDEP}] + dev-python/pysol_cards[${PYTHON_USEDEP}] + dev-python/random2[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] + !minimal? ( + dev-python/pillow[jpeg,tk,${PYTHON_USEDEP}] + dev-tcltk/tktable + ) + sound? ( dev-python/pygame[${PYTHON_USEDEP}] ) + ')" + +distutils_enable_tests unittest + +python_install_all() { + local DOCS=( AUTHORS.md NEWS.asciidoc README.md ) + distutils-r1_python_install_all + + doman docs/pysol{,fc}.6 + + insinto /usr/share/${MY_PN} + doins -r ../$(usex extra-cardsets ${PS_CARD_P} ${PS_CARD_MIN_P})/. + + # html files are used at runtime, keep at default location + dosym -r /usr/share/{${MY_PN},doc/${PF}}/html +} |