Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-board/pysolfc/
Date: Sat, 09 Apr 2022 03:36:43
Message-Id: 1649474924.9499d93cbaf22c943a2aa36b8d740dc8adf811dd.ionen@gentoo
1 commit: 9499d93cbaf22c943a2aa36b8d740dc8adf811dd
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 9 03:11:13 2022 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 9 03:28:44 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9499d93c
7
8 games-board/pysolfc: add 2.15.0
9
10 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
11
12 games-board/pysolfc/Manifest | 3 ++
13 games-board/pysolfc/pysolfc-2.15.0.ebuild | 68 +++++++++++++++++++++++++++++++
14 2 files changed, 71 insertions(+)
15
16 diff --git a/games-board/pysolfc/Manifest b/games-board/pysolfc/Manifest
17 index 77121e8a9b32..bc7e55220d0c 100644
18 --- a/games-board/pysolfc/Manifest
19 +++ b/games-board/pysolfc/Manifest
20 @@ -1,3 +1,6 @@
21 DIST PySolFC-2.14.1.tar.xz 4359204 BLAKE2B 48b336b67608e14a2d45923367527564d8c4fcf99f8a80e2a231f7885bd84276ad0b86db8cc31c0b33573ea4232334277458753ce72a727af293cb3f1bd6738c SHA512 e1ef4024d61aa9d86fd5e54ccacf12466e05038ad46e814e066ac3e81839c7ff03a59ace6e50aed8c44887a3620c3b36d25b9916ea564fec8a579e473c3684c0
22 +DIST PySolFC-2.15.0.tar.xz 5022972 BLAKE2B c27dc73478f908e1ebfa4dd1ebff12744bb54a88886245aeab2f48605327231c44d27886b74612bfd233cc614ec55de6e4ba1f5fac0bb0b21ced9d46fc411bc5 SHA512 d50c416814beb1d9ef669923f87ea9493ad4aa30cf9c7dbc1e52c2f2fa89d9d6dcde9a7c4d4b8ab7d0fb36e5953ac27718fc7cc547ab3989cf2babc42844af9a
23 DIST PySolFC-Cardsets--Minimal-2.0.2.tar.xz 6969096 BLAKE2B 50e87073cf4ab69031e1e4116115ddb1771197da176ac609c09e2f5fab1cc48ccb6f3ba40d7b581f67013835893106f7ab579a2cbc744aad98095944fbd2d5d9 SHA512 5317866d6259b154219ec6efea349af3f9cb0fe9309a895ee55f7be87ebc8c34df12b81a08e1dee907a3f475f4e623c3609fdbd7e357890c2ade418ec5d68cb2
24 +DIST PySolFC-Cardsets--Minimal-2.1.0.tar.xz 28484652 BLAKE2B a7537557ce978d296d1a11253a5bfa80a19fc67b495948e35d43d64bcc1283812e753ccf9ee1828461b723e6a21070b3003435f046a590507a7fa6f95bae09c2 SHA512 cc83a26470c2fb13e70741bd8caccb8bd3b0491672eae0caf7437cf38d57e324d225186dde3be49c091d6960dbaefaa23814bcdd7326b07f0f1e32dda15b251c
25 +DIST PySolFC-Cardsets-2.1.tar.bz2 61214563 BLAKE2B 06bf69f22fdcdfbd652bbe75f05722a452609da435a688a04227d235f7a4bd618cb3832e9143d224571eb20c1948014a456d697923623354c81ec12eff365bd9 SHA512 64909dec3d7f0a683e3c0d536f2c3435d0b021b390e411bcd6c9774562483413864105837e57c3210168330f17eda779055a1ec3b52d91aa05f405b990bd6fca
26 DIST PySolFC-Cardsets-2.1PRE.tar.bz2 34399177 BLAKE2B 12f577e67e858b96e9d76bb3aceafaaf1cb267b1805c91f36a51ae0b92652cc265d675543bc16923b216b125142b36aee858b54c2dc8f2eeccdd0d6c3e435fe7 SHA512 7fb83450fb3579d9a4e3e0ec1404d5da779c3e99d0ceaaad9d35adf599e2d9ef173f9d2bbf272ff08dc3c3e043a5dda78ae054c95c6fad828e80dff4c9011314
27
28 diff --git a/games-board/pysolfc/pysolfc-2.15.0.ebuild b/games-board/pysolfc/pysolfc-2.15.0.ebuild
29 new file mode 100644
30 index 000000000000..d7a6144a6a87
31 --- /dev/null
32 +++ b/games-board/pysolfc/pysolfc-2.15.0.ebuild
33 @@ -0,0 +1,68 @@
34 +# Copyright 1999-2022 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=8
38 +
39 +DISTUTILS_SINGLE_IMPL=1
40 +DISTUTILS_USE_PEP517=setuptools
41 +PYTHON_COMPAT=( python3_{8..10} )
42 +PYTHON_REQ_USE="tk"
43 +inherit distutils-r1 xdg
44 +
45 +MY_PN="PySolFC"
46 +MY_P="${MY_PN}-${PV}"
47 +PS_CARD_P="${MY_PN}-Cardsets-2.1"
48 +PS_CARD_MIN_P="${MY_PN}-Cardsets--Minimal-2.1.0"
49 +
50 +DESCRIPTION="Exciting collection of more than 1000 solitaire card games"
51 +HOMEPAGE="https://pysolfc.sourceforge.io/"
52 +SRC_URI="mirror://sourceforge/pysolfc/${MY_P}.tar.xz
53 + extra-cardsets? ( mirror://sourceforge/pysolfc/${PS_CARD_P}.tar.bz2 )
54 + !extra-cardsets? ( mirror://sourceforge/pysolfc/${PS_CARD_MIN_P}.tar.xz )"
55 +S="${WORKDIR}/${MY_P}"
56 +
57 +LICENSE="GPL-3+ GPL-2+"
58 +SLOT="0"
59 +KEYWORDS="~amd64 ~x86"
60 +IUSE="extra-cardsets minimal +sound"
61 +
62 +RDEPEND="
63 + $(python_gen_cond_dep '
64 + dev-python/attrs[${PYTHON_USEDEP}]
65 + dev-python/configobj[${PYTHON_USEDEP}]
66 + dev-python/pysol_cards[${PYTHON_USEDEP}]
67 + dev-python/random2[${PYTHON_USEDEP}]
68 + dev-python/six[${PYTHON_USEDEP}]
69 + sound? ( dev-python/pygame[${PYTHON_USEDEP}] )
70 + !minimal? ( dev-python/pillow[jpeg,tk,${PYTHON_USEDEP}] )')
71 + !minimal? ( dev-tcltk/tktable )"
72 +
73 +distutils_enable_tests unittest
74 +
75 +src_prepare() {
76 + distutils-r1_src_prepare
77 +
78 + # make pip check happier, pycotap is not needed
79 + sed -i "/'pycotap'/d" setup.py || die
80 +
81 + if use extra-cardsets; then
82 + find ../${PS_CARD_P} -type d -name .thumbnails -exec rm -r {} + || die
83 + fi
84 +}
85 +
86 +python_install_all() {
87 + local DOCS=( AUTHORS.md NEWS.asciidoc README.md )
88 + distutils-r1_python_install_all
89 +
90 + doman docs/pysol{,fc}.6
91 +
92 + insinto /usr/share/${MY_PN}
93 + doins -r ../$(usex extra-cardsets ${PS_CARD_P} ${PS_CARD_MIN_P})/.
94 +
95 + # html files are used at runtime, keep at default location
96 + dosym -r /usr/share/{${MY_PN},doc/${PF}}/html
97 +
98 + # russian translation is not currently displaying right
99 + # https://forums.gentoo.org/viewtopic-t-1142910.html
100 + rm "${ED}"/usr/share/locale/ru/LC_MESSAGES/pysol.mo || die
101 +}