diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-04-16 13:07:24 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-04-16 13:07:24 +0100 |
commit | 0c100b7dd2b30e75b799d806df4ef899fd98e1ea (patch) | |
tree | 464c922e949c7e4d5d891fb2cdda5daee5612537 /dev-python/pmw | |
parent | e68d405c5d712af4387159df07e226217bdda049 (diff) |
gentoo resync : 16.04.2022
Diffstat (limited to 'dev-python/pmw')
-rw-r--r-- | dev-python/pmw/Manifest | 1 | ||||
-rw-r--r-- | dev-python/pmw/pmw-2.0.1-r3.ebuild | 46 |
2 files changed, 47 insertions, 0 deletions
diff --git a/dev-python/pmw/Manifest b/dev-python/pmw/Manifest index 83869806d025..06034a4a9017 100644 --- a/dev-python/pmw/Manifest +++ b/dev-python/pmw/Manifest @@ -1,3 +1,4 @@ DIST Pmw-2.0.1.tar.gz 830448 BLAKE2B c78fef1570a34b9784f936f16856c4450164d8a232770e59cc084c1113888af8ee002cd1c7ddeadcddaacb5eae9ff58fcbfc270fc066875523e31a9d26770cd3 SHA512 99654e961aa40a64eebc08fe473e94da0ce431e6465255c68c251dfd544a51edef1a5d97dfd89ce756eb5f7fcf917dbef27f646ba9451ab72f3d460daa09a556 EBUILD pmw-2.0.1-r2.ebuild 1107 BLAKE2B bdfd68ec23822835e2c6c18db3db40ee107e9d1145470c9dbfcf48649ae4ea057c0cfcc0af48c284f4ba1ec87110c42175c000b17038563816c3b0af7ef3c2b7 SHA512 90af072444604f1827ae50567a316006e3e623ba0ed7afa384074dc196798b31d4bb68f39081276cd26eb8fb753960c972ca5a3777d86cc66732b9a746dd6b23 +EBUILD pmw-2.0.1-r3.ebuild 1114 BLAKE2B 67f360696405bc804a18b44605ae63b8b2d4a5477ba930d157ae599d8c902cd84c8d2e2a919d6806bcc94c75304c3e50148d735acfdc285cf43034ce386bc821 SHA512 b9c35e62d742a72ea580b7e529e91803d2190b7084da8a344d94f6d0e5174b001d414e059f63dd2424d35108038c054b869db523465a8272e0d1d00e59fcc373 MISC metadata.xml 387 BLAKE2B 99c3a902dae4415dd912cad8aad2e27721685de791aa8957bec02ab02e21fc2d7fdefb058c8c1f0ea8068bf32f85067915b709b9f862ae08559578e2078ffb22 SHA512 d0347142c16a2de1e49ca50e30f474abbf7e41eac7ca080c26a5457b8da5fb8808c6b9c2103052eb6772585663037e9fc57ae15bbb42e574b6958b8ce2f968e2 diff --git a/dev-python/pmw/pmw-2.0.1-r3.ebuild b/dev-python/pmw/pmw-2.0.1-r3.ebuild new file mode 100644 index 000000000000..84486c02a806 --- /dev/null +++ b/dev-python/pmw/pmw-2.0.1-r3.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..10} ) +PYTHON_REQ_USE="tk" + +inherit distutils-r1 virtualx + +MY_PN="Pmw" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Toolkit for building high-level compound Python widgets using the Tkinter module" +HOMEPAGE="http://pmw.sourceforge.net/" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +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 +} |