summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Delaney <idella4@gentoo.org>2013-06-07 15:17:52 +0000
committerIan Delaney <idella4@gentoo.org>2013-06-07 15:17:52 +0000
commitdcb5d0bc33f0b70f106efb2c3ddbc3ae55375327 (patch)
treef224d9fa08970febe72816d73a8377575cd9d8d0 /dev-python/fudge
parentRemove old. (diff)
downloadgentoo-2-dcb5d0bc33f0b70f106efb2c3ddbc3ae55375327.tar.gz
gentoo-2-dcb5d0bc33f0b70f106efb2c3ddbc3ae55375327.tar.bz2
gentoo-2-dcb5d0bc33f0b70f106efb2c3ddbc3ae55375327.zip
revbump; migrate -> distutils-r1, remove old
(Portage version: 2.1.11.63/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)
Diffstat (limited to 'dev-python/fudge')
-rw-r--r--dev-python/fudge/ChangeLog11
-rw-r--r--dev-python/fudge/fudge-0.9.6.ebuild60
-rw-r--r--dev-python/fudge/fudge-1.0.3-r1.ebuild52
-rw-r--r--dev-python/fudge/fudge-1.0.3.ebuild60
4 files changed, 60 insertions, 123 deletions
diff --git a/dev-python/fudge/ChangeLog b/dev-python/fudge/ChangeLog
index 6064af90b2ca..38de73789193 100644
--- a/dev-python/fudge/ChangeLog
+++ b/dev-python/fudge/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-python/fudge
-# 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 $
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/fudge/ChangeLog,v 1.6 2013/06/07 15:17:52 idella4 Exp $
+
+*fudge-1.0.3-r1 (07 Jun 2013)
+
+ 07 Jun 2013; Ian Delaney <idella4@gentoo.org> +fudge-1.0.3-r1.ebuild,
+ -fudge-0.9.6.ebuild, -fudge-1.0.3.ebuild:
+ revbump; migrate -> distutils-r1, remove old
*fudge-0.9.6 (16 May 2012)
@@ -30,4 +36,3 @@
19 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+fudge-1.0.0.ebuild, +metadata.xml:
Initial addition. Ebuild written by me.
-
diff --git a/dev-python/fudge/fudge-0.9.6.ebuild b/dev-python/fudge/fudge-0.9.6.ebuild
deleted file mode 100644
index 2616eed2343c..000000000000
--- a/dev-python/fudge/fudge-0.9.6.ebuild
+++ /dev/null
@@ -1,60 +0,0 @@
-# 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
-}
diff --git a/dev-python/fudge/fudge-1.0.3-r1.ebuild b/dev-python/fudge/fudge-1.0.3-r1.ebuild
new file mode 100644
index 000000000000..7f637724e4fc
--- /dev/null
+++ b/dev-python/fudge/fudge-1.0.3-r1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/fudge/fudge-1.0.3-r1.ebuild,v 1.1 2013/06/07 15:17:52 idella4 Exp $
+
+EAPI=5
+PYTHON_COMPAT=( python{2_5,2_6,2_7,3_1,3_2,3_3} pypy2_0)
+
+inherit distutils-r1
+
+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 test"
+
+DEPEND="doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
+RDEPEND=""
+DISTUTILS_IN_SOURCE_BUILD=1
+
+python_prepare_all() {
+ find -name "._*" -print0 | xargs -0 rm -f
+ distutils-r1_python_prepare_all
+}
+
+python_compile_all() {
+ use doc && emake -C docs html
+}
+
+python_compile() {
+ if ! use test; then
+ pushd $"{BUILD_DIR}"/lib > /dev/null
+ rm -rf ${PN}/tests/ || die
+ fi
+ distutils-r1_python_compile
+}
+
+python_test() {
+ if [[ "${EPYTHON}" == python3* ]]; then
+ pushd $"{BUILD_DIR}"../ > /dev/null
+ 2to3 --no-diffs build/lib/${PN}/tests
+ fi
+ nosetests -w build/lib/${PN}/tests || die
+ rm -rf build/lib/${PN}/tests/ || die
+}
+
+python_install_all() {
+ use doc && local HTML_DOCS=( docs/_build/html/. )
+ distutils-r1_python_install_all
+}
diff --git a/dev-python/fudge/fudge-1.0.3.ebuild b/dev-python/fudge/fudge-1.0.3.ebuild
deleted file mode 100644
index 614943fa6672..000000000000
--- a/dev-python/fudge/fudge-1.0.3.ebuild
+++ /dev/null
@@ -1,60 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/fudge/fudge-1.0.3.ebuild,v 1.1 2011/03/22 22:33:49 arfrever 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
-}