summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirkjan Ochtman <djc@gentoo.org>2011-09-10 14:06:18 +0000
committerDirkjan Ochtman <djc@gentoo.org>2011-09-10 14:06:18 +0000
commitd25e6682bfdf1f8a4fd3754130a9e365c82ffeca (patch)
tree9d07a6ebba100b583f190befc8456e975e5a3c8a /dev-python/dbutils
parentVersion bump coverage to 3.5. (diff)
downloadgentoo-2-d25e6682bfdf1f8a4fd3754130a9e365c82ffeca.tar.gz
gentoo-2-d25e6682bfdf1f8a4fd3754130a9e365c82ffeca.tar.bz2
gentoo-2-d25e6682bfdf1f8a4fd3754130a9e365c82ffeca.zip
Version bump dbutils to 1.1.
(Portage version: 2.1.10.15/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/dbutils')
-rw-r--r--dev-python/dbutils/ChangeLog9
-rw-r--r--dev-python/dbutils/dbutils-1.1.ebuild54
2 files changed, 61 insertions, 2 deletions
diff --git a/dev-python/dbutils/ChangeLog b/dev-python/dbutils/ChangeLog
index 46840468598c..0c3738bb087e 100644
--- a/dev-python/dbutils/ChangeLog
+++ b/dev-python/dbutils/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-python/dbutils
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/dbutils/ChangeLog,v 1.4 2010/06/30 00:00:41 arfrever Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/dbutils/ChangeLog,v 1.5 2011/09/10 14:06:18 djc Exp $
+
+*dbutils-1.1 (10 Sep 2011)
+
+ 10 Sep 2011; Dirkjan Ochtman <djc@gentoo.org> +dbutils-1.1.ebuild:
+ Version bump to 1.1 (bug 381987; thanks to jbergstroem for testing).
30 Jun 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
dbutils-1.0.ebuild:
diff --git a/dev-python/dbutils/dbutils-1.1.ebuild b/dev-python/dbutils/dbutils-1.1.ebuild
new file mode 100644
index 000000000000..46598443d691
--- /dev/null
+++ b/dev-python/dbutils/dbutils-1.1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/dbutils/dbutils-1.1.ebuild,v 1.1 2011/09/10 14:06:17 djc Exp $
+
+EAPI="3"
+PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.*"
+DISTUTILS_SRC_TEST="nosetests"
+
+inherit distutils
+
+MY_PN="DBUtils"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Database connections for multi-threaded environments."
+HOMEPAGE="http://www.webwareforpython.org/DBUtils http://pypi.python.org/pypi/DBUtils"
+SRC_URI="http://www.webwareforpython.org/downloads/DBUtils/${MY_P}.tar.gz"
+
+LICENSE="OSL-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~ppc"
+IUSE="doc"
+
+DEPEND=""
+RDEPEND=""
+
+S="${WORKDIR}/${MY_P}"
+
+PYTHON_MODNAME="${MY_PN}"
+
+src_prepare() {
+ sed -i \
+ -e "s/, 'DBUtils.Tests'//" \
+ -e "s/, 'DBUtils.Examples'//" \
+ -e "/package_data=/d" \
+ setup.py || die "sed failed"
+}
+
+src_test() {
+ testing() {
+ PYTHONPATH="build-${PYTHON_ABI}/lib" nosetests -P -s "${S}/${MY_PN}"/Tests
+ }
+ python_execute_function testing
+}
+
+src_install() {
+ distutils_src_install
+ if use doc; then
+ dohtml -r "${S}/${MY_PN}"/Docs/* || die "dohtml failed"
+ insinto "/usr/share/doc/${PF}/examples"
+ doins "${S}/${MY_PN}"/Examples/*.py
+ fi
+}