summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Delaney <idella4@gentoo.org>2013-02-06 04:38:13 +0000
committerIan Delaney <idella4@gentoo.org>2013-02-06 04:38:13 +0000
commitb1fd1f0822d6ed58baacdf9e5f4732dbdc14a165 (patch)
treecb00197fda43834f74287920723f1e5345e2ee43 /dev-python/pmw
parentVersion bump. (diff)
downloadgentoo-2-b1fd1f0822d6ed58baacdf9e5f4732dbdc14a165.tar.gz
gentoo-2-b1fd1f0822d6ed58baacdf9e5f4732dbdc14a165.tar.bz2
gentoo-2-b1fd1f0822d6ed58baacdf9e5f4732dbdc14a165.zip
Added test phase to 1.3.3 & 2.0.0 while restricting tests due to it doesn't work, dropped unusable 1.3 patches from -2.0.0, added required conversion to py3 code state in -2.0.0, fixed doc install fixing Bug #454974 by Juergen Rose
(Portage version: 2.1.11.40/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)
Diffstat (limited to 'dev-python/pmw')
-rw-r--r--dev-python/pmw/ChangeLog8
-rw-r--r--dev-python/pmw/pmw-1.3.3.ebuild14
-rw-r--r--dev-python/pmw/pmw-2.0.0.ebuild27
3 files changed, 38 insertions, 11 deletions
diff --git a/dev-python/pmw/ChangeLog b/dev-python/pmw/ChangeLog
index 8129d602c4f6..c2820ac04905 100644
--- a/dev-python/pmw/ChangeLog
+++ b/dev-python/pmw/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-python/pmw
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pmw/ChangeLog,v 1.37 2013/01/29 12:35:56 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pmw/ChangeLog,v 1.38 2013/02/06 04:38:13 idella4 Exp $
+
+ 06 Feb 2013; Ian Delaney <idella4@gentoo.org> pmw-1.3.3.ebuild,
+ pmw-2.0.0.ebuild:
+ Added test phase to 1.3.3 & 2.0.0 while restricting tests due to it doesn't
+ work, dropped unusable 1.3 patches from -2.0.0, added required conversion to
+ py3 code state in -2.0.0, fixed doc install fixing Bug #454974 by Juergen Rose
29 Jan 2013; Justin Lecher <jlec@gentoo.org> pmw-1.3.2-r2.ebuild,
pmw-1.3.3.ebuild, pmw-2.0.0.ebuild:
diff --git a/dev-python/pmw/pmw-1.3.3.ebuild b/dev-python/pmw/pmw-1.3.3.ebuild
index 4e2e942042c0..fda1b670071b 100644
--- a/dev-python/pmw/pmw-1.3.3.ebuild
+++ b/dev-python/pmw/pmw-1.3.3.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pmw/pmw-1.3.3.ebuild,v 1.2 2013/01/29 12:35:56 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pmw/pmw-1.3.3.ebuild,v 1.3 2013/02/06 04:38:13 idella4 Exp $
EAPI=5
@@ -26,6 +26,8 @@ RDEPEND="${DEPEND}"
S="${WORKDIR}/src"
DOCS="Pmw/README"
+# https://sourceforge.net/tracker/?func=detail&aid=3603487&group_id=10743&atid=110743
+RESTRICT="test"
pythone_prepare_all() {
local PATCHES=(
@@ -49,3 +51,13 @@ python_install_all() {
distutils-r1_python_install
}
+
+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
+ done
+}
diff --git a/dev-python/pmw/pmw-2.0.0.ebuild b/dev-python/pmw/pmw-2.0.0.ebuild
index fe2e5dbc025f..847516870a5d 100644
--- a/dev-python/pmw/pmw-2.0.0.ebuild
+++ b/dev-python/pmw/pmw-2.0.0.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pmw/pmw-2.0.0.ebuild,v 1.2 2013/01/29 12:35:56 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pmw/pmw-2.0.0.ebuild,v 1.3 2013/02/06 04:38:13 idella4 Exp $
EAPI=5
@@ -18,25 +18,34 @@ SRC_URI="mirror://sourceforge/${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"
+IUSE="doc examples test"
DEPEND="!dev-python/pmw:0"
RDEPEND="${DEPEND}"
+# https://sourceforge.net/tracker/?func=detail&aid=3603487&group_id=10743&atid=110743
+RESTRICT="test"
S="${WORKDIR}/src"
DOCS="Pmw/README"
-pythone_prepare_all() {
- local PATCHES=(
- "${FILESDIR}"/${PN}-1.3.2-install-no-docs.patch
- "${FILESDIR}"/1.3.2-python2.5.patch
- )
- distutils-r1_python_prepare_all
+src_prepare() {
+ distutils-r1_src_prepare
+ 2to3 Pmw
+}
+
+python_test() {
+ cd ${BUILD_DIR}/lib/Pmw/Pmw_2_0_0/ || 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
+ done
}
python_install_all() {
- local DIR="Pmw/Pmw_1_3_3"
+ local DIR="Pmw/Pmw_2_0_0"
if use doc; then
dohtml -a html,gif,py "${DIR}"/doc/*