summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2012-05-16 15:42:54 +0000
committerMike Gilbert <floppym@gentoo.org>2012-05-16 15:42:54 +0000
commit561574141746e9bf6df6d65a0a9d616754f865a8 (patch)
tree2f97316b42e32f45004ff29c00309fefc9107301 /dev-python/fudge
parentStable for HPPA (bug #413807). (diff)
downloadgentoo-2-561574141746e9bf6df6d65a0a9d616754f865a8.tar.gz
gentoo-2-561574141746e9bf6df6d65a0a9d616754f865a8.tar.bz2
gentoo-2-561574141746e9bf6df6d65a0a9d616754f865a8.zip
Add old version needed for dev-python/fabric test suite.
(Portage version: 2.2.0_alpha105/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/fudge')
-rw-r--r--dev-python/fudge/ChangeLog9
-rw-r--r--dev-python/fudge/fudge-0.9.6.ebuild60
2 files changed, 67 insertions, 2 deletions
diff --git a/dev-python/fudge/ChangeLog b/dev-python/fudge/ChangeLog
index 8e0531e4835b..6064af90b2ca 100644
--- a/dev-python/fudge/ChangeLog
+++ b/dev-python/fudge/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-python/fudge
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/fudge/ChangeLog,v 1.4 2011/03/22 22:33:49 arfrever Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/fudge/ChangeLog,v 1.5 2012/05/16 15:42:54 floppym Exp $
+
+*fudge-0.9.6 (16 May 2012)
+
+ 16 May 2012; Mike Gilbert <floppym@gentoo.org> +fudge-0.9.6.ebuild:
+ Add old version needed for dev-python/fabric test suite.
*fudge-1.0.3 (22 Mar 2011)
diff --git a/dev-python/fudge/fudge-0.9.6.ebuild b/dev-python/fudge/fudge-0.9.6.ebuild
new file mode 100644
index 000000000000..2616eed2343c
--- /dev/null
+++ b/dev-python/fudge/fudge-0.9.6.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/fudge/fudge-0.9.6.ebuild,v 1.1 2012/05/16 15:42:54 floppym Exp $
+
+EAPI="3"
+SUPPORT_PYTHON_ABIS="1"
+DISTUTILS_SRC_TEST="nosetests"
+
+inherit distutils
+
+DESCRIPTION="Replace real objects with fakes (mocks, stubs, etc) while testing."
+HOMEPAGE="http://farmdev.com/projects/fudge/ http://pypi.python.org/pypi/fudge"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc"
+
+DEPEND="doc? ( dev-python/sphinx )"
+RDEPEND=""
+
+src_prepare() {
+ distutils_src_prepare
+ find -name "._*" -print0 | xargs -0 rm -f
+}
+
+src_compile() {
+ distutils_src_compile
+
+ if use doc; then
+ einfo "Generation of documentation"
+ pushd docs > /dev/null
+ emake html || die "Generation of documentation failed"
+ popd > /dev/null
+ fi
+}
+
+src_test() {
+ testing() {
+ nosetests build-${PYTHON_ABI}/lib
+ }
+ python_execute_function testing
+}
+
+src_install() {
+ distutils_src_install
+
+ delete_tests() {
+ rm -fr "${ED}$(python_get_sitedir)/fudge/tests"
+ }
+ python_execute_function -q delete_tests
+
+ if use doc; then
+ pushd docs/_build/html > /dev/null
+ insinto /usr/share/doc/${PF}/html
+ doins -r [a-z]* _static || die "Installation of documentation failed"
+ popd > /dev/null
+ fi
+}