diff --git a/games-board/pysolfc/Manifest b/games-board/pysolfc/Manifest index 0a64223e9f6ab..5f7dfa3d7ab7f 100644 --- a/games-board/pysolfc/Manifest +++ b/games-board/pysolfc/Manifest @@ -1,3 +1,6 @@ DIST PySolFC-3.2.0.tar.xz 32808092 BLAKE2B 04ca5567e67c32407135141b96d316e206093b712f0bac1761d2d46a729f8558f40794a5dc575cd420b92da8b5741eb5e7d57327ba756a997889174a31d07161 SHA512 190d20228585942ebf8be42514561a1642a2f102a4e32cf9e12d5b429f34279a447268839156d1e153be2147c152d738065bdbbc79d6494cfb9b5dcc901630d9 +DIST PySolFC-3.4.0.tar.xz 32914516 BLAKE2B 0994642fad2100658c922e3d1f79dff4d5c499aa3cb19d9d4e132f98b6f25153c1a07ea51dcddc1ee28e36e1585b5539370e3f85067a74438db5af77003d2ce0 SHA512 208e301cd8f8467e5078aace219a729097a851f09cd47d12ee9723e5b2127e951dfe779704ad0dedacd94c2a9a18553fcc06de8fa426d27a6794eb0d15ff128f DIST PySolFC-Cardsets--Minimal-3.0.0.tar.xz 25188212 BLAKE2B a047a151b5c4256cfb0300c6bc75713db9aab63e4e76ba99233a59f39a9a7017406320a0e3b874b72084b3bccd14ca303f7af9666652efee85cf39803ad8c43c SHA512 9d4bacd072b450b29b9f1bec4557121a3647c2f837aeb6e249f452cb886467c5e7ca36dd36a78ea69a5c9df6f30d5245e12681d9d02fc9da2ece09c25d77e787 +DIST PySolFC-Cardsets--Minimal-3.1.0.tar.xz 25083116 BLAKE2B 0c8d91c382cb51a52f25bc6aab9485b90b21aca2369b11848f40be2df80901bf367c4e8573a626564a3e754c04c0f5918fcf657c85d5a39d405960155f42caa4 SHA512 dc03e79490576c53e398df691f59a3c3b886c5dd20feef3f525828c2a49339537db303464a3782101e76d682cbf0345619d84e4a1d116bbb9879cd489ebe6637 DIST PySolFC-Cardsets-3.0.tar.bz2 87075654 BLAKE2B 527463ba2abe22c553753f7cb8f6608867a3da01532461cd29b5cf007a49c242cbdbe82f50751283d17a46ecb15b263e324fbc1288b5c5eb3cc9bdc1cfc9b257 SHA512 4544bc8b890d0cd41d66bd513faf86c21455f4d0f154e567fd689917f2f3ca56fadf3ca9372bc80c5b1d5387aa4abfab7952e73024a3e41101112e716f80b762 +DIST PySolFC-Cardsets-3.1.tar.bz2 82706375 BLAKE2B 7fdf91e971437bec69430ab98810bbccab72bc3072c7a5bb3d9101efc2c86779e4aaca047a136bc174defb014865a3628633686dcb2e2b2ae6e9764b2ed6829a SHA512 a06fd5dfc16c7cfde4a6612f925cc2829b06a55ccc6633ed7176508888557eded9d3c32a6d336eb2f8c5950d9e0e7b215e57211ee890cf59228ab5cb4874e716 diff --git a/games-board/pysolfc/pysolfc-3.4.0.ebuild b/games-board/pysolfc/pysolfc-3.4.0.ebuild new file mode 100644 index 0000000000000..079d1785eb58f --- /dev/null +++ b/games-board/pysolfc/pysolfc-3.4.0.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_SINGLE_IMPL=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{11..13} ) +PYTHON_REQ_USE="tk" +inherit distutils-r1 xdg + +MY_PN="PySolFC" +MY_P="${MY_PN}-${PV}" +PS_CARD_P="${MY_PN}-Cardsets-3.1" +PS_CARD_MIN_P="${MY_PN}-Cardsets--Minimal-3.1.0" + +DESCRIPTION="Exciting collection of more than 1000 solitaire card games" +HOMEPAGE="https://pysolfc.sourceforge.io/" +SRC_URI=" + https://downloads.sourceforge.net/pysolfc/${MY_P}.tar.xz + extra-cardsets? ( https://downloads.sourceforge.net/pysolfc/${PS_CARD_P}.tar.bz2 ) + !extra-cardsets? ( https://downloads.sourceforge.net/pysolfc/${PS_CARD_MIN_P}.tar.xz ) +" +S=${WORKDIR}/${MY_P} + +LICENSE="GPL-3+ GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~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}] + sound? ( dev-python/pygame[${PYTHON_USEDEP}] ) + !minimal? ( dev-python/pillow[jpeg,tk,${PYTHON_USEDEP}] ) + ') + !minimal? ( dev-tcltk/tktable ) +" + +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 + + # russian translation is not currently displaying right? + # (please report if works fine for you and this should be reverted) + # https://forums.gentoo.org/viewtopic-t-1142910.html + rm -- "${ED}"/usr/share/locale/ru/LC_MESSAGES/pysol.mo || die +}