From b8eb70beb6898d0cf7a441eeacd569d937c5d5ff Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 28 Nov 2011 16:13:20 -0500 Subject: [PATCH] mox: migrate to upstream ebuild from local pymox Upstream Gentoo has added dev-python/mox which is the same thing as our local dev-python/pymox. So import the upstream Gentoo ebuild so we can drop our local ebuild. BUG=None TEST=`emerge mox` works TEST=cros_portage_upgrade_unittest passes TEST=build_packages+build_image for x86-alex boots TEST=buildbot's run_tests passes TEST=`cbuildbot arm-generic-full` works TEST=`cbuildbot x86-generic-full` works Change-Id: I8efbb6a7e62e1ff0ffdecbc7da6f17dbd723e2ae Reviewed-on: https://gerrit.chromium.org/gerrit/12145 Reviewed-by: David James Commit-Ready: Mike Frysinger Tested-by: Mike Frysinger --- .../dev-python/mox/mox-0.5.3.ebuild | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 sdk_container/src/third_party/portage-stable/dev-python/mox/mox-0.5.3.ebuild diff --git a/sdk_container/src/third_party/portage-stable/dev-python/mox/mox-0.5.3.ebuild b/sdk_container/src/third_party/portage-stable/dev-python/mox/mox-0.5.3.ebuild new file mode 100644 index 0000000000..d59cd683aa --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-python/mox/mox-0.5.3.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/mox/mox-0.5.3.ebuild,v 1.4 2010/10/05 19:49:02 maekke Exp $ + +EAPI=3 + +PYTHON_DEPEND="2" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="3.*" + +inherit distutils + +DESCRIPTION="A mock object framework for Python, loosely based on EasyMock for Java" +HOMEPAGE="http://code.google.com/p/pymox/" +SRC_URI="http://pymox.googlecode.com/files/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64 ppc ~sparc x86" +IUSE="" + +PYTHON_MODNAME="mox.py stubout.py" + +src_test() { + testing() { + $(PYTHON) mox_test.py || die + } + + python_execute_function testing +}