Version bump for #414475. Enable python 3. Thanks to Ian Delaney for digging into...
authorMike Gilbert <floppym@gentoo.org>
Sun, 20 May 2012 01:19:38 +0000 (01:19 +0000)
committerMike Gilbert <floppym@gentoo.org>
Sun, 20 May 2012 01:19:38 +0000 (01:19 +0000)
Package-Manager: portage-2.2.0_alpha107/cvs/Linux x86_64

ChangeLog
Manifest
files/webtest-1.3.4-index_fixt.patch [new file with mode: 0644]
webtest-1.3.4.ebuild [new file with mode: 0644]

index 52b17722c299d9f58867856b3cc0155c70b17889..c9bea83ac54ac87b84e4129098356c49b9697b65 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,13 @@
 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
 # $Header$
 
+*webtest-1.3.4 (20 May 2012)
+
+  20 May 2012; Mike Gilbert <floppym@gentoo.org>
+  +files/webtest-1.3.4-index_fixt.patch, +webtest-1.3.4.ebuild:
+  Version bump for #414475. Enable python 3. Thanks to Ian Delaney for digging
+  into the test suite.
+
   16 Apr 2012; Jeroen Roovers <jer@gentoo.org> webtest-1.3.ebuild:
   Marked ~hppa (bug #411761).
 
index b3b9ca64bb495778d47a04f7a98a9f144a9f1ea3..5711667a478a17ac01d366b2198396d8a1dc3ddc 100644 (file)
--- a/Manifest
+++ b/Manifest
@@ -1,17 +1,20 @@
 -----BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
+Hash: SHA256
 
 AUX webtest-1.3-doctest-ellipsis.patch 1116 RMD160 290b833ed2309917f664a94694244a4ed8c09486 SHA1 bc9cd1bad655803661dff69ff1a549949d88ba3c SHA256 a6e64a000ad6745b12cb8ab6061b09ce692f3efcf061851cc1bc0e4eb9d2e9ed
+AUX webtest-1.3.4-index_fixt.patch 325 RMD160 da593e2c6e47ab04f6fddb1ab48fae87364420ed SHA1 5c7e27a034e7cf656fa391f23a3b20535da3e478 SHA256 358939de8a5f188262c8ba337c122a390b408d2b56ae1f4c7c79875945ad6bc1
 DIST WebTest-1.2.3.tar.gz 49571 RMD160 41cee0779ed26fb484d692e7cbff165c46335095 SHA1 2bf3c6a11b948c6b166935bbd73a3a0a40e458e5 SHA256 5e1cdb914a889ee035daa610e9858c1a33fec481cbd7a7df45b537954cbb513b
+DIST WebTest-1.3.4.tar.gz 78557 RMD160 740a0341df25f07d1f221d5ee5ce6f4b3ab59830 SHA1 ae486dea68b51cf372415f9c9e42d7309967b9e9 SHA256 f8915f0da91ad47f84e8a7d49936263fb4c5fdd1fb2737e1a7553b2fe52992f1
 DIST WebTest-1.3.tar.gz 76603 RMD160 079283805bad6d76a90022c308820f690b288a9e SHA1 439ca06af501df7f8f4c8c68214d8463424cc82e SHA256 aba8f6dcf87584c1d05848814cdd6c58fcb4cde1640a892322c978cc1ae204f3
 EBUILD webtest-1.2.3.ebuild 814 RMD160 0942f048b849138f2938d4b6f14fa39f824f2c7b SHA1 6d16fb82c0eb0dd632b049ea45ae9caf10eec1c5 SHA256 5f302345dd8c45e5199289908d015ef55d427ec78ed7d598a0548aff89ff4d75
+EBUILD webtest-1.3.4.ebuild 1431 RMD160 8ee08c1113a20c51cd48f5c3edca52949d5d6659 SHA1 1545a28a453ef9dbd509faf246175aae85e7f32a SHA256 932a4612dba4e647035460a159e213d40d04a30a35225b11f33dc1b35a42721a
 EBUILD webtest-1.3.ebuild 1438 RMD160 7515e3b9cdb7135b57f04004aee860ea99435d12 SHA1 860239153df99ce7c3b43d80e444676d6ed4d7e8 SHA256 04bee08412683430f944df134449032ae5cae66db65f7c8e6d41b77fa3706a58
-MISC ChangeLog 3968 RMD160 285a788de68a8c447689d46966203e7a0a960631 SHA1 5da7fffee6199d5f0d868fb6ed57d80c79198402 SHA256 090a57733a154acc69ad09174bb3af2454808b8ac3b6d7a37ba990b2a3285c6e
+MISC ChangeLog 4218 RMD160 6122f4a10accdaf34ef02e37d8bcd051ffaa8d62 SHA1 e3362f734c267b794edfa2bbcdc66494e8519e7e SHA256 38f7205dd862d21acd259841a63d93965a2d189b10375025c6ecfaead42849eb
 MISC metadata.xml 230 RMD160 ad5e936f4cd2e999fb84f0f9f2378feb20e8394c SHA1 0f48d82fbdba75c4209f3f3e55327752fbb32b0e SHA256 5b66abf10f340308f2e1a4f3a275e110a2a52842e683bd2a1eb84d387a5ea163
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.17 (GNU/Linux)
 
-iEYEARECAAYFAk+LguAACgkQVWmRsqeSphPGtQCdE1PoIxS3NlZzYoS9danNq1K/
-t2QAni0oo0yOqmkp6rrCfWZp65p38rCx
-=/Vhc
+iF4EAREIAAYFAk+4RrAACgkQC77qH+pIQ6TsFQD+LxIFU5//fkZQstcFuehik5Ux
+zU0iCDvEau3ZOYNLpH4A/RduutnW8KX/Y0f6NXg7udUxEYr5nEMUrvd410xU69/Q
+=kZoe
 -----END PGP SIGNATURE-----
diff --git a/files/webtest-1.3.4-index_fixt.patch b/files/webtest-1.3.4-index_fixt.patch
new file mode 100644 (file)
index 0000000..5cb75c7
--- /dev/null
@@ -0,0 +1,13 @@
+--- /dev/null  2012-05-03 18:34:53.288000099 +0800
++++ docs/index_fixt.py 2012-05-07 00:07:55.392854158 +0800
+@@ -0,0 +1,10 @@
++# -*- coding: utf-8 -*-
++from doctest import ELLIPSIS
++
++
++def setup_test(test):
++    for example in test.examples:
++        example.options.setdefault(ELLIPSIS, 1)
++
++setup_test.__test__ = False
++
diff --git a/webtest-1.3.4.ebuild b/webtest-1.3.4.ebuild
new file mode 100644 (file)
index 0000000..294f21c
--- /dev/null
@@ -0,0 +1,60 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header$
+
+EAPI="3"
+PYTHON_DEPEND="2:2.6 3:3.2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="2.5 3.1 *-jython *-pypy-*"
+DISTUTILS_SRC_TEST="nosetests"
+
+inherit distutils eutils
+
+MY_PN="WebTest"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Helper to test WSGI applications"
+HOMEPAGE="http://pythonpaste.org/webtest/ http://pypi.python.org/pypi/WebTest"
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~sparc ~x86 ~x86-fbsd"
+IUSE="doc"
+
+RDEPEND=">=dev-python/webob-0.9.2"
+DEPEND="${RDEPEND}
+       dev-python/setuptools
+       doc? ( dev-python/sphinx )
+       test? ( dev-python/pyquery )"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+       epatch "${FILESDIR}/${P}-index_fixt.patch"
+       distutils_src_prepare
+}
+
+src_compile() {
+       distutils_src_compile
+
+       if use doc; then
+               einfo "Generation of documentation"
+               sphinx-build docs html || die "Building of documentation failed"
+       fi
+}
+
+src_install() {
+       distutils_src_install
+
+       # Avoid future-import bug on py2.5.* - lint3 is py3 anyway
+       delete_lint3() {
+               [[ "${PYTHON_ABI}" == 3.* ]] && return
+               rm "${ED}$(python_get_sitedir)/webtest/lint3.py"
+       }
+       python_execute_function -q delete_lint3
+
+       if use doc; then
+               dohtml -r html/*
+       fi
+}