Upgraded the unittest2 Portage package

Upgraded dev-python/unittest2 to version 0.5.1 on amd64, arm, x86

(This will be used by various unittests in platform/factory.)

BUG=None
TEST=emerge on all boards

Change-Id: I83838f8610f179aba3c3c731ff8bde16aa922444
Reviewed-on: https://gerrit.chromium.org/gerrit/31415
Tested-by: Jon Salz <jsalz@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Commit-Ready: Jon Salz <jsalz@chromium.org>
This commit is contained in:
Jon Salz 2012-08-25 08:17:28 +08:00 committed by Gerrit
parent 40270a7cfb
commit 5c55b4408d
3 changed files with 62 additions and 0 deletions

View File

@ -0,0 +1,2 @@
DIST unittest2-0.5.1.tar.gz 62470 RMD160 aa83b1d6dedaa71a9e6d3bed4028e855bef04821 SHA1 2299652dc1c0155d67d6574d9f854de45d36a7ce SHA256 aa5de8cdf654d843379c97bd1ee240e86356d3355a97b147a6f3f4d149247a71
DIST unittest2py3k-0.5.1.tar.gz 55493 RMD160 119f837e7af015fc83e8967fa1388f8745d9895f SHA1 f686e4e3b3c0c705814d94b55ddb53d174177994 SHA256 78249c5f1ac508a34d9d131d43a89d77bf154186f3ea5f7a6b993d3f3535d403

View File

@ -0,0 +1,48 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/unittest2/unittest2-0.5.1.ebuild,v 1.18 2011/07/26 16:26:56 neurogeek Exp $
EAPI="3"
SUPPORT_PYTHON_ABIS="1"
# http://hg.python.org/unittest2/rev/d2be68aedc8e
PYTHON_TESTS_RESTRICTED_ABIS="2.4"
inherit distutils
DESCRIPTION="The new features in unittest for Python 2.7 backported to Python 2.4+."
HOMEPAGE="http://pypi.python.org/pypi/unittest2 http://pypi.python.org/pypi/unittest2py3k http://code.google.com/p/unittest-ext/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz
mirror://pypi/${PN:0:1}/${PN}py3k/${PN}py3k-${PV}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
IUSE=""
DEPEND="dev-python/setuptools"
RDEPEND="${DEPEND}"
DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES="1"
DOCS="README.txt"
src_prepare() {
preparation() {
if [[ "${PYTHON_ABI}" == 3.* ]]; then
cp -pr "${WORKDIR}/${PN}py3k-${PV}" "${S}-${PYTHON_ABI}" || return 1
else
cp -pr "${S}" "${S}-${PYTHON_ABI}" || return 1
fi
# Disable versioning of unit2 script to avoid collision with versioning performed by distutils_src_install().
sed -e "/'%s = unittest2:main_' % SCRIPT2,/d" -i "${S}-${PYTHON_ABI}/setup.py" || return 1
}
python_execute_function -q preparation
}
src_test() {
testing() {
./unit2 discover
}
python_execute_function -s testing
}

View File

@ -0,0 +1,12 @@
DEFINED_PHASES=compile install postinst postrm prepare test
DEPEND=dev-python/setuptools >=app-admin/eselect-python-20091230 dev-lang/python
DESCRIPTION=The new features in unittest for Python 2.7 backported to Python 2.4+.
EAPI=3
HOMEPAGE=http://pypi.python.org/pypi/unittest2 http://pypi.python.org/pypi/unittest2py3k http://code.google.com/p/unittest-ext/
KEYWORDS=alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos
LICENSE=BSD
RDEPEND=dev-python/setuptools >=app-admin/eselect-python-20091230 dev-lang/python
SLOT=0
SRC_URI=mirror://pypi/u/unittest2/unittest2-0.5.1.tar.gz mirror://pypi/u/unittest2py3k/unittest2py3k-0.5.1.tar.gz
_eclasses_=distutils b4c334e216d998c4ce4b750cb091e42e multilib 5f4ad6cf85e365e8f0c6050ddd21659e python 6bbd984910e27780e5d0ea543d83ef84 toolchain-funcs 6526ac6fc9aedf391efb91fcd75ace68
_md5_=f775e38fde93c1eec34679112538040a