summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2011-02-19 16:59:44 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2011-02-19 16:59:44 +0000
commit00543c74f30d528a91d61a4fd284a32bafef1661 (patch)
treefc08fa90f5ba832c08a8b55020de4048804272d8 /dev-python
parentFixed "directory seems to be empty" (bug #350114) (diff)
downloadhistorical-00543c74f30d528a91d61a4fd284a32bafef1661.tar.gz
historical-00543c74f30d528a91d61a4fd284a32bafef1661.tar.bz2
historical-00543c74f30d528a91d61a4fd284a32bafef1661.zip
Initial addition.
Package-Manager: portage-2.2.0_alpha24_p11/cvs/Linux x86_64
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/fudge/ChangeLog10
-rw-r--r--dev-python/fudge/Manifest4
-rw-r--r--dev-python/fudge/fudge-1.0.0.ebuild60
-rw-r--r--dev-python/fudge/metadata.xml5
4 files changed, 79 insertions, 0 deletions
diff --git a/dev-python/fudge/ChangeLog b/dev-python/fudge/ChangeLog
new file mode 100644
index 000000000000..43c4ec4d50de
--- /dev/null
+++ b/dev-python/fudge/ChangeLog
@@ -0,0 +1,10 @@
+# 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.1 2011/02/19 16:59:44 arfrever Exp $
+
+*fudge-1.0.0 (19 Feb 2011)
+
+ 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/Manifest b/dev-python/fudge/Manifest
new file mode 100644
index 000000000000..564149389958
--- /dev/null
+++ b/dev-python/fudge/Manifest
@@ -0,0 +1,4 @@
+DIST fudge-1.0.0.tar.gz 83808 RMD160 0738142e8380e6c7338daadec60a07a7c3171e1c SHA1 8bb00dba96d5cd85f1a71acf1b7f4adc03ea0402 SHA256 5a4ab4e1756164d3f07675d878f66a278e606eeb74757a6795ce8979fb19a68f
+EBUILD fudge-1.0.0.ebuild 1320 RMD160 50e052d97b03bd0615559f5a2b1c5c8bf806985c SHA1 0b844e0ff7d9b2a5fba5d670ebcad083473f1196 SHA256 7bab0c530485d3fd5f0fe4513037a2e39ca037c3cd1d92297e6dbc6b93fb9544
+MISC ChangeLog 389 RMD160 a693b5d29de84b54dc25ef0d1989223f3af0b70a SHA1 0436949dcf2945a580d0e90c2239d1cc576b757e SHA256 08744f61ee21015370170554554e56119cc134892c954856d9cd239628cad1a9
+MISC metadata.xml 160 RMD160 e730f96ab97c5be577a6d6d05f04990374a0dffb SHA1 2aa5e6be9c265c0e7bceb78ee9fd20df5f818e36 SHA256 6cd954a9de2307c57d32b25fa3599dee2908a4ddc6a98594f593d53577307a3a
diff --git a/dev-python/fudge/fudge-1.0.0.ebuild b/dev-python/fudge/fudge-1.0.0.ebuild
new file mode 100644
index 000000000000..271b477f44ab
--- /dev/null
+++ b/dev-python/fudge/fudge-1.0.0.ebuild
@@ -0,0 +1,60 @@
+# 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.0.ebuild,v 1.1 2011/02/19 16:59:44 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://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/metadata.xml b/dev-python/fudge/metadata.xml
new file mode 100644
index 000000000000..301d2207cc29
--- /dev/null
+++ b/dev-python/fudge/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>python</herd>
+</pkgmetadata>