summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-python/coverage/ChangeLog8
-rw-r--r--dev-python/coverage/Manifest5
-rw-r--r--dev-python/coverage/coverage-3.1.ebuild38
-rw-r--r--dev-python/coverage/files/coverage-3.1-python-3.patch50
4 files changed, 99 insertions, 2 deletions
diff --git a/dev-python/coverage/ChangeLog b/dev-python/coverage/ChangeLog
index 6d7054b62b39..2182d79849da 100644
--- a/dev-python/coverage/ChangeLog
+++ b/dev-python/coverage/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-python/coverage
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/coverage/ChangeLog,v 1.10 2009/09/05 18:37:05 arfrever Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/coverage/ChangeLog,v 1.11 2009/10/07 15:58:54 arfrever Exp $
+
+*coverage-3.1 (07 Oct 2009)
+
+ 07 Oct 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ +coverage-3.1.ebuild, +files/coverage-3.1-python-3.patch:
+ Version bump.
05 Sep 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
coverage-3.0.1.ebuild:
diff --git a/dev-python/coverage/Manifest b/dev-python/coverage/Manifest
index 5282df9b4ac5..1f662dc1204f 100644
--- a/dev-python/coverage/Manifest
+++ b/dev-python/coverage/Manifest
@@ -1,6 +1,9 @@
+AUX coverage-3.1-python-3.patch 1197 RMD160 d04a4cfc76c7ec513b6213087cb2794006a32442 SHA1 a11f4659a84f78e9a2435f2cde160ffc391ee6d1 SHA256 2a6614aa4ef54e80e978a41c2ca2975325080658a89d28c6c607e8c5c9c66cfb
DIST coverage-2.85.tar.gz 14169 RMD160 37ab5d97aea8a73843d083fb921b6fa797f669e1 SHA1 4191e2ee99d19990e74c351193443048af9b3a9e SHA256 5783544bffe2fda07e5b7c5f68f0ee87e3d09c395d129ae96ee45e9797b89206
DIST coverage-3.0.1.tar.gz 53491 RMD160 133b13373b13d8c3b077685473b20d82fa37d913 SHA1 c59654b0015f641178449b98a259d78dee102de1 SHA256 ab53a0ff0c555c1a11d38ca45afc618af83611ea5829a7f97e8b620376ff3bb4
+DIST coverage-3.1.tar.gz 61372 RMD160 0fb718a31b11d8670d160f0a147ba8a3914d794b SHA1 ae01268738e4730f3280d105f6c701f8026a7f4d SHA256 55b5711853e43ef32fe77d6da3c4e24bf3223a28d188186b05c30d5081426aea
EBUILD coverage-2.85.ebuild 636 RMD160 401ad42e104ffcbe241702f327cbeef47b0b8895 SHA1 6b4b533d160a1fe4fd1c99608a11e6f7416cb7b5 SHA256 7d366c6de6440094a7e662da2a57da2864fc973e8c87507423e6e558be9913a1
EBUILD coverage-3.0.1.ebuild 801 RMD160 6d9c654c393b0d218c5be53410ba238ee4db68c3 SHA1 07957b937493c39bddbd28d7ac2eba2272d4eff0 SHA256 849427d08d69b3938642b0f1b8971b26c1fdf715e06f8ce37c9f91342a0264ce
-MISC ChangeLog 1520 RMD160 0164fd56d99b540571612a1a46dd1a55949bd533 SHA1 a4ffdb48f6a3cc64db9f4f906d68960be81a6504 SHA256 1dd263cad4df30448715d25c283feba31a079d80baa3733a90a505efbcf9dca9
+EBUILD coverage-3.1.ebuild 959 RMD160 3e380ed7dd52cfabfc704c22051c4732fc0f8a7a SHA1 fefc4ed5051c6a9cafd9c5b68a58eb960c1c4318 SHA256 60ddf036bd3075e8af5082e85c2d476554819fd40e8f05c791a9417337e25956
+MISC ChangeLog 1699 RMD160 3ee3d82666c8552f5e770e44ddd2d971b6fe87f4 SHA1 e5a9a5778771a90cdfed1ce1500318663a3fe84e SHA256 d8651899c5b8e69c148068d7c6bac8aa4a21814b83df1dc046c8445f09f4640f
MISC metadata.xml 543 RMD160 a4f5cf0e919a4d3e445a7be4e81fd6850ed1ac6e SHA1 b59d05c50be0fc2e17484d71288edfe588ecdd1b SHA256 4d5798ce74309570cbb96e5fe942838f3843a50fb2a309716a8e84686c637cde
diff --git a/dev-python/coverage/coverage-3.1.ebuild b/dev-python/coverage/coverage-3.1.ebuild
new file mode 100644
index 000000000000..f7b9e09ef468
--- /dev/null
+++ b/dev-python/coverage/coverage-3.1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/coverage/coverage-3.1.ebuild,v 1.1 2009/10/07 15:58:54 arfrever Exp $
+
+EAPI="2"
+SUPPORT_PYTHON_ABIS="1"
+
+inherit distutils
+
+DESCRIPTION="Measures code coverage during Python execution"
+HOMEPAGE="http://nedbatchelder.com/code/modules/coverage.html"
+SRC_URI="http://pypi.python.org/packages/source/c/coverage/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="test"
+
+RDEPEND=""
+DEPEND="dev-python/setuptools
+ test? ( >=dev-python/nose-0.10.3 )"
+
+PYTHON_MODNAME="coverage"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-python-3.patch"
+ distutils_src_prepare
+}
+
+src_test() {
+ testing() {
+ # Future version of dev-python/nose will support Python 3.
+ [[ "${PYTHON_ABI}" == 3.* ]] && return
+
+ "$(PYTHON)" setup.py build -b "build-${PYTHON_ABI}" nosetests
+ }
+ python_execute_function testing
+}
diff --git a/dev-python/coverage/files/coverage-3.1-python-3.patch b/dev-python/coverage/files/coverage-3.1-python-3.patch
new file mode 100644
index 000000000000..64ad6888abe6
--- /dev/null
+++ b/dev-python/coverage/files/coverage-3.1-python-3.patch
@@ -0,0 +1,50 @@
+--- setup.py
++++ setup.py
+@@ -28,33 +28,22 @@
+ # Pull in the tools we need.
+ import sys
+
+-if sys.hexversion < 0x03000000:
+- # In Py 2.x, use setuptools.
+- from ez_setup import use_setuptools
+- use_setuptools()
+-
+- from setuptools import setup
+- from distutils.core import Extension
++from ez_setup import use_setuptools
++use_setuptools()
+
+- more_setup_args = dict(
+- entry_points = {
+- 'console_scripts': [
+- 'coverage = coverage:main',
+- ]
+- },
+-
+- # We need to get HTML assets from our htmlfiles dir.
+- zip_safe = False,
+- )
+-else:
+- # No setuptools yet for Py 3.x, so do without.
+- from distutils.core import setup, Extension
++from setuptools import setup
++from distutils.core import Extension
++
++more_setup_args = dict(
++ entry_points = {
++ 'console_scripts': [
++ 'coverage = coverage:main',
++ ]
++ },
+
+- more_setup_args = dict(
+- scripts = [
+- 'scripts/coverage',
+- ],
+- )
++ # We need to get HTML assets from our htmlfiles dir.
++ zip_safe = False,
++ )
+
+
+ # Get or massage our metadata.