diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-12-06 13:55:15 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-12-06 13:55:15 +0000 |
commit | b4212d16f5fcdfd7b52632c50fd9e6f279dd53cc (patch) | |
tree | e2d0925a833f5d22434b9353ee983714edf3ecd5 /dev-python/unittest2 | |
parent | app-misc/enum: Bump to 1.0.2 (diff) | |
download | historical-b4212d16f5fcdfd7b52632c50fd9e6f279dd53cc.tar.gz historical-b4212d16f5fcdfd7b52632c50fd9e6f279dd53cc.tar.bz2 historical-b4212d16f5fcdfd7b52632c50fd9e6f279dd53cc.zip |
Support Python 3.
Package-Manager: portage-2.2.0_alpha7_p1/cvs/Linux x86_64
Diffstat (limited to 'dev-python/unittest2')
-rw-r--r-- | dev-python/unittest2/ChangeLog | 6 | ||||
-rw-r--r-- | dev-python/unittest2/Manifest | 15 | ||||
-rw-r--r-- | dev-python/unittest2/unittest2-0.5.1.ebuild | 24 |
3 files changed, 26 insertions, 19 deletions
diff --git a/dev-python/unittest2/ChangeLog b/dev-python/unittest2/ChangeLog index 2ec62ed0fdd5..0bdbf4bbecb5 100644 --- a/dev-python/unittest2/ChangeLog +++ b/dev-python/unittest2/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-python/unittest2 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/unittest2/ChangeLog,v 1.11 2010/11/16 17:42:04 tomka Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/unittest2/ChangeLog,v 1.12 2010/12/06 13:55:15 arfrever Exp $ + + 06 Dec 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + unittest2-0.5.1.ebuild: + Support Python 3. 16 Nov 2010; Thomas Kahle <tomka@gentoo.org> unittest2-0.5.1.ebuild: x86 stable per bug 345487 diff --git a/dev-python/unittest2/Manifest b/dev-python/unittest2/Manifest index c6639d72b4f2..23777a34fd37 100644 --- a/dev-python/unittest2/Manifest +++ b/dev-python/unittest2/Manifest @@ -1,14 +1,5 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - DIST unittest2-0.5.1.tar.gz 62470 RMD160 aa83b1d6dedaa71a9e6d3bed4028e855bef04821 SHA1 2299652dc1c0155d67d6574d9f854de45d36a7ce SHA256 aa5de8cdf654d843379c97bd1ee240e86356d3355a97b147a6f3f4d149247a71 -EBUILD unittest2-0.5.1.ebuild 749 RMD160 1d325b9ab394be911eb1772e0d98c1de31a8014f SHA1 6dea7debb43029a1244d83c3b7a6b783c54c01c7 SHA256 18a6160261e447ab26a2737a7823cb96ecd7fe4ede149f254afa33ed770bdf36 -MISC ChangeLog 1819 RMD160 981adb0cd91fcc74d6e13224c6b910f9eba18737 SHA1 7bebcb2c2197f3844b56ad3a1d126ec13daef53a SHA256 94e351634cce29f80054742d6063f8133db38efbde148a687a1c15de68c0c786 +DIST unittest2py3k-0.5.1.tar.gz 55493 RMD160 119f837e7af015fc83e8967fa1388f8745d9895f SHA1 f686e4e3b3c0c705814d94b55ddb53d174177994 SHA256 78249c5f1ac508a34d9d131d43a89d77bf154186f3ea5f7a6b993d3f3535d403 +EBUILD unittest2-0.5.1.ebuild 1149 RMD160 3836446a891aca96e848dd260e836ed72dfec90a SHA1 8019639cb2aa051cbcf8c6d307fb35dd72ebcedc SHA256 d99e5519db919688657f0a67f429080ef138edfdddc394f7cf4a5ee7d5435e5f +MISC ChangeLog 1942 RMD160 78dcfb9afcd3df435c39d3a631deff4d13e6e1f6 SHA1 7b8e5d908059856394bf4fa0e74195ee805cf38e SHA256 165fa6e2b8cef28c9269cc5e24ddd11aa1d557461a5f676555718cbd68c45cff MISC metadata.xml 259 RMD160 4b781a038008fac445e4154045f964b64ad59e75 SHA1 9809d89f3360f9f7537c2bb480d6bcbe942c6ea0 SHA256 0fb1da675767b69b5bd240d135effe2fc500e8b997a5f4eed212e5b26d027972 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.16 (GNU/Linux) - -iEYEARECAAYFAkziwm4ACgkQnZsgo/h8kNYcwwCdEaKx6iDc2tLIVqQUPoJT5s6+ -g2QAn01kOWVp29K5xKpD20h+oWjP5Ygd -=CnyG ------END PGP SIGNATURE----- diff --git a/dev-python/unittest2/unittest2-0.5.1.ebuild b/dev-python/unittest2/unittest2-0.5.1.ebuild index 30725e9e29a4..9c425d8c6032 100644 --- a/dev-python/unittest2/unittest2-0.5.1.ebuild +++ b/dev-python/unittest2/unittest2-0.5.1.ebuild @@ -1,17 +1,16 @@ # Copyright 1999-2010 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.6 2010/11/16 17:42:04 tomka Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/unittest2/unittest2-0.5.1.ebuild,v 1.7 2010/12/06 13:55:15 arfrever Exp $ EAPI="3" -PYTHON_DEPEND="2" SUPPORT_PYTHON_ABIS="1" -RESTRICT_PYTHON_ABIS="3.*" inherit distutils DESCRIPTION="The new features in unittest for Python 2.7 backported to Python 2.4+." -HOMEPAGE="http://pypi.python.org/pypi/unittest2" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" +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" @@ -21,11 +20,24 @@ 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 + } + python_execute_function -q preparation +} + src_test() { testing() { ./unit2 discover } - python_execute_function testing + python_execute_function -s testing } |