diff options
Diffstat (limited to 'dev-python/pmw')
-rw-r--r-- | dev-python/pmw/Manifest | 4 | ||||
-rw-r--r-- | dev-python/pmw/files/pmw-1.3.3-install-no-docs.patch | 6 | ||||
-rw-r--r-- | dev-python/pmw/pmw-1.3.3-r3.ebuild | 56 | ||||
-rw-r--r-- | dev-python/pmw/pmw-2.0.1-r1.ebuild | 52 |
4 files changed, 114 insertions, 4 deletions
diff --git a/dev-python/pmw/Manifest b/dev-python/pmw/Manifest index 0c49669093b8..154375397205 100644 --- a/dev-python/pmw/Manifest +++ b/dev-python/pmw/Manifest @@ -1,6 +1,8 @@ -AUX pmw-1.3.3-install-no-docs.patch 496 BLAKE2B f2ef8e3c1bab1dc2913c7e78d6c2d72b53c094a9a3cbc0746fcb7e3fad3a45cfdf4a7fd62332726d7398f0a45eeff7feddb55f8fe518c8f12b749406e16ddaaa SHA512 6925199967f5d980285165f13339903947ca3c1841a279a79913c68a3d7a7e381d34b1a3c5af359a5c63b1a0d94dcb6e883c661a222e96cdc1aa8a9239f31811 +AUX pmw-1.3.3-install-no-docs.patch 480 BLAKE2B ad4403d5bf71ae2fc2788c5a8efef3c7bb763deadee84b91db994f1c2522043302be7ef5c06fe7327a86ca12eb68c4143d7bd004154cf06ddd3b999632fd15f6 SHA512 7ac3e8914ff603ac30d081bb373dcea57466738f63b540d44ff4d768ccf8f6c253a3e0a5446119886401be4b85b2660be55a1bdffec8a607e0e78acfdf8b50f7 DIST Pmw-2.0.1.tar.gz 830448 BLAKE2B c78fef1570a34b9784f936f16856c4450164d8a232770e59cc084c1113888af8ee002cd1c7ddeadcddaacb5eae9ff58fcbfc270fc066875523e31a9d26770cd3 SHA512 99654e961aa40a64eebc08fe473e94da0ce431e6465255c68c251dfd544a51edef1a5d97dfd89ce756eb5f7fcf917dbef27f646ba9451ab72f3d460daa09a556 DIST Pmw.1.3.3.tar.gz 451232 BLAKE2B 2ea74cf010b094539b1e052850b358e05a561aee1990de7184244b77a4133c1259ff54fa6e47c5368dac4bf81bf23e9217742ef1327ab7e20b8dca27ebf5f333 SHA512 d63fad8f8c5bb9b8cb940b10bdf9e3bc1dabe714e10f32c587d5e1097ef0767492602984089172d85cf57c8ebf34acf555b8fe73a2157c6f734ee36042803668 EBUILD pmw-1.3.3-r2.ebuild 1227 BLAKE2B b95220e48ef2ad28960a750d36f7429a0cd02d67345262c9a95d68b629167f57e0db542e0701868770ca817a7b8c27c76e6e74ba4dfed17d2ccde84b1079ce43 SHA512 1c5fa6dcecf737a07309652a046cafbfcdf9333a8dea32626fe8a08fcb1867bdc0746a1bdb79814418203ddd0ab8c38a57fbda0e2c9c83429dd1d571953927ba +EBUILD pmw-1.3.3-r3.ebuild 1227 BLAKE2B 75e6d9ddc49ad39b374881b0c2f060ba074580e8f449cd0a7609b1fb25bfc3138ee73e3ff7847e5cefc50ce3012050f848c9ba85f3f09a6f1338e9cafe096a9a SHA512 114d858580a4fb2086ce9a6d3631d274eb2ec68106d93885d13e8fc2039dbb6c260fd9545ffcd896fe22ff203c3a2a8e80b5cfe3a2ec33c5be71457961704c26 +EBUILD pmw-2.0.1-r1.ebuild 1211 BLAKE2B e1c94009cb50eca463b9269d51aa651f38ad950b7706b00fbd6fc7219aa344e68d767ca6575194e14d6ece7df9453775378eb9a1c1195a9d489590386acc489c SHA512 b332cc7ede4bfdd7ad17154251acb4d59f12f599bf40cfaf8c62b3ba5311eb2705af4134fe0e8314324e71961b91bf2f7e5864d6fd0d83c7b7b7d872b7188199 EBUILD pmw-2.0.1.ebuild 1202 BLAKE2B 7a120d5cd8844e563293c1f6aca1cf5109cbded43b11881c4b3cce69a3035219dbae8a515a838450ff5fc94066ff10b686c537f4f3d851165d35c94729a6a4ba SHA512 b9d367e773baae18b3d05e8e71008c6d19d4493a677af4ff3b5b615b0f592503b80c8fde635a8226339bfb6a4b9bedcea269943f06575d564468e22e4ace1cde MISC metadata.xml 366 BLAKE2B c2d56d3c744468056b41ca45aaff5263692a9055807ae406644d9c482489f004271d932d56e078a2d66bdca3f17332e0ac03c7f93d7d41890db0eaa90c004002 SHA512 f0bac4e4faad03c83434cc214c0a0befebcbd1cd7eb89663d6058dcb36ee791102b081595e604409d278f01d7c2062f1d1ca1e01e1194e44826f66e6121697f7 diff --git a/dev-python/pmw/files/pmw-1.3.3-install-no-docs.patch b/dev-python/pmw/files/pmw-1.3.3-install-no-docs.patch index 979e24abf59a..bbfd0f35f1c4 100644 --- a/dev-python/pmw/files/pmw-1.3.3-install-no-docs.patch +++ b/dev-python/pmw/files/pmw-1.3.3-install-no-docs.patch @@ -1,10 +1,10 @@ src/setup.py | 2 -- 1 file changed, 2 deletions(-) -diff --git a/src/setup.py b/src/setup.py +diff --git a/setup.py b/setup.py index a5f9039..cfcf8a2 100755 ---- a/src/setup.py -+++ b/src/setup.py +--- a/setup.py ++++ b/setup.py @@ -16,9 +16,7 @@ setup(name="Pmw", 'Pmw.Pmw_1_3_3.lib',], diff --git a/dev-python/pmw/pmw-1.3.3-r3.ebuild b/dev-python/pmw/pmw-1.3.3-r3.ebuild new file mode 100644 index 000000000000..652f36827a09 --- /dev/null +++ b/dev-python/pmw/pmw-1.3.3-r3.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="tk" + +inherit distutils-r1 + +MY_P="Pmw.${PV}" + +DESCRIPTION="Toolkit for building high-level compound Python widgets using the Tkinter module" +HOMEPAGE="http://pmw.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="py2" +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" +IUSE="doc examples" + +DEPEND="!dev-python/pmw:0" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/src" + +DOCS="Pmw/README" +# https://sourceforge.net/p/pmw/bugs/39/ +RESTRICT="test" + +PATCHES=( "${FILESDIR}"/${P}-install-no-docs.patch ) + +python_test() { + cd "${BUILD_DIR}/lib/Pmw/Pmw_1_3_3/" || die + PYTHONPATH=PYTHONPATH=tests:../../ + cp tests/{flagup.bmp,earthris.gif} . || die + for test in tests/*_test.py; do + echo "running test "$test + PYTHONPATH=tests:../../ "${PYTHON}" $test || die + done +} + +python_install_all() { + local DIR="Pmw/Pmw_1_3_3" + + if use doc; then + dohtml -a html,gif,py ${DIR}/doc/* + fi + + if use examples; then + insinto /usr/share/doc/${PF}/examples + doins ${DIR}/demos/* + fi + + distutils-r1_python_install_all +} diff --git a/dev-python/pmw/pmw-2.0.1-r1.ebuild b/dev-python/pmw/pmw-2.0.1-r1.ebuild new file mode 100644 index 000000000000..9795b10364b7 --- /dev/null +++ b/dev-python/pmw/pmw-2.0.1-r1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{5,6,7} ) +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" + +LICENSE="BSD" +SLOT="py3" +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" +IUSE="doc examples test" + +DEPEND="!dev-python/pmw:0" +RDEPEND="${DEPEND}" +# https://sourceforge.net/p/pmw/bugs/39/ +RESTRICT="test" + +S="${WORKDIR}/${MY_P}" + +python_prepare() { + distutils-r1_python_prepare_all + 2to3 Pmw +} + +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:../../ virtualmake $test || die + done +} + +python_install_all() { + local DIR="Pmw/Pmw_${PV//./_}" + + use doc && HTML_DOCS=( "${DIR}"/doc/. ) + use examples && EXAMPLES=( "${DIR}"/demos/. ) + + distutils-r1_python_install_all +} |