diff options
Diffstat (limited to 'dev-python/pmw')
-rw-r--r-- | dev-python/pmw/Manifest | 2 | ||||
-rw-r--r-- | dev-python/pmw/pmw-2.1.1.ebuild | 43 |
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-python/pmw/Manifest b/dev-python/pmw/Manifest index cf9d0602d643..17ac2927977b 100644 --- a/dev-python/pmw/Manifest +++ b/dev-python/pmw/Manifest @@ -1,3 +1,5 @@ DIST Pmw-2.0.1.tar.gz 830448 BLAKE2B c78fef1570a34b9784f936f16856c4450164d8a232770e59cc084c1113888af8ee002cd1c7ddeadcddaacb5eae9ff58fcbfc270fc066875523e31a9d26770cd3 SHA512 99654e961aa40a64eebc08fe473e94da0ce431e6465255c68c251dfd544a51edef1a5d97dfd89ce756eb5f7fcf917dbef27f646ba9451ab72f3d460daa09a556 +DIST Pmw-2.1.1.tar.gz 1077119 BLAKE2B 3e78796489d996df8fbcaca119f03b718f5457d38af175232c055c1c94e6c98c3f198e3dd0859a4af1cc88f36df83ed57c0d8ee67f90362a8590de5a37d2f669 SHA512 7f4c3181b0ae546f9f89cf666917fd9ea0161a2c4a4e6b5756e0aeb543fcd3ed4598c83e294b04312fea6a386b06b370668b4400f1497cc8b2fc2ab19a3fdd3d EBUILD pmw-2.0.1-r3.ebuild 1031 BLAKE2B 21c04c2345a53f977c94ba651b3b7485d29d2ef79fe66199b11e73876f9267ae13583acb7b196dd107a5ff2c9ef45f5744914e29d3913afb496acd3ddd6a77e1 SHA512 86165b9d6dd3f4114734f31d3263b40b31455abc9624bd53d5a066d145f90ba33bfb9d3b8bb494a61395c96710bf9074e1699ba9ab1dda42d7bcc5fff3fbaf25 +EBUILD pmw-2.1.1.ebuild 1038 BLAKE2B 9c0b251f65c85d4b03e26b361fdab0569a17737d1a1c7865b70172deb2d5afc81d0d50c0424480ac5779eca17dd50e90f100411d89d0850246ba42baef04a9a3 SHA512 faebb759492a314d4c0730bf9ef8ecb35a87c143e8343ce7b0ce53ccaeaa47f685514fc33395a3b4e353a8eaff023df953d011cc1809a2c23b294e821a726fb5 MISC metadata.xml 387 BLAKE2B 5bb8b4e7edcc726c2347a5007c42a9cda4bec776e1f3cea934b0489ce3559e4f2ddc6c10b49f707433a80c0103aa77a6128263d66bc0334de4cacba5374a64da SHA512 9b6357e3ce690bdb369c394b7aa82034300cb9f4df2357ac0a837e1bf22cbd04b074ca5a75bdd8a2fb27292de40e2f63939e65fdf747a08d6172c507f3696bbc diff --git a/dev-python/pmw/pmw-2.1.1.ebuild b/dev-python/pmw/pmw-2.1.1.ebuild new file mode 100644 index 000000000000..b9c3e6317b8c --- /dev/null +++ b/dev-python/pmw/pmw-2.1.1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYPI_NO_NORMALIZE=1 +PYPI_PN=${PN^} +PYTHON_COMPAT=( python3_{10..12} ) +PYTHON_REQ_USE="tk" + +inherit distutils-r1 virtualx pypi + +DESCRIPTION="Toolkit for building high-level compound Python widgets using the Tkinter module" +HOMEPAGE="https://pypi.org/project/Pmw/" + +LICENSE="BSD" +SLOT="py3" +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos" +IUSE="doc test" +# https://sourceforge.net/p/pmw/bugs/39/ +RESTRICT="test" + +DEPEND="!dev-python/pmw:0" +RDEPEND="${DEPEND}" + +python_test() { + VIRTUALX_COMMAND="${PYTHON}" + cd "${BUILD_DIR}/lib/Pmw/Pmw_${PV//./_}/" || die + cp tests/{flagup.bmp,earthris.gif} . || die + for test in tests/*_test.py; do + echo "running test "$test + PYTHONPATH=tests:../../ virtx emake -j1 $test || die + done +} + +python_install_all() { + local DIR="Pmw/Pmw_${PV//./_}" + + use doc && HTML_DOCS=( "${DIR}"/doc/. ) + + distutils-r1_python_install_all +} |