diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-11-13 00:37:36 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-11-13 00:37:36 +0000 |
commit | 3ae1a40f3b5f901a20934485126f3172891e3f50 (patch) | |
tree | ebbd344b1d1fac05bf2bf301d383df78c36117e7 /dev-python/psycopg/psycopg-2.0.13.ebuild | |
parent | Marked ppc64 stable. (diff) | |
download | gentoo-2-3ae1a40f3b5f901a20934485126f3172891e3f50.tar.gz gentoo-2-3ae1a40f3b5f901a20934485126f3172891e3f50.tar.bz2 gentoo-2-3ae1a40f3b5f901a20934485126f3172891e3f50.zip |
Version bump.
(Portage version: 14819-svn/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/psycopg/psycopg-2.0.13.ebuild')
-rw-r--r-- | dev-python/psycopg/psycopg-2.0.13.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/dev-python/psycopg/psycopg-2.0.13.ebuild b/dev-python/psycopg/psycopg-2.0.13.ebuild new file mode 100644 index 000000000000..ed78393851ca --- /dev/null +++ b/dev-python/psycopg/psycopg-2.0.13.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/psycopg/psycopg-2.0.13.ebuild,v 1.1 2009/11/13 00:37:35 arfrever Exp $ + +EAPI="2" +SUPPORT_PYTHON_ABIS="1" + +inherit distutils eutils + +MY_P=${PN}2-${PV} + +DESCRIPTION="PostgreSQL database adapter for Python." +SRC_URI="http://initd.org/pub/software/psycopg/${MY_P}.tar.gz" +HOMEPAGE="http://initd.org/projects/psycopg2" +SLOT="2" +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris" +LICENSE="GPL-2" +IUSE="debug doc examples mxdatetime" + +DEPEND=">=virtual/postgresql-base-8.1 + mxdatetime? ( dev-python/egenix-mx-base )" +RDEPEND="${DEPEND}" +RESTRICT_PYTHON_ABIS="3.*" + +S=${WORKDIR}/${MY_P} + +PYTHON_MODNAME="${PN}2" +DOCS="AUTHORS doc/HACKING doc/SUCCESS doc/TODO doc/async.txt" + +src_prepare() { + epatch "${FILESDIR}/${PN}-2.0.12-setup.py.patch" + epatch "${FILESDIR}/${PN}-2.0.9-round-solaris.patch" + + if use debug; then + sed -i 's/^\(define=\)/\1PSYCOPG_DEBUG,/' setup.cfg || die "sed failed" + fi + + if use mxdatetime; then + sed -i 's/\(use_pydatetime=\)1/\10/' setup.cfg || die "sed failed" + fi +} + +src_install() { + distutils_src_install + + insinto /usr/share/doc/${PF} + use examples && doins -r examples + + cd doc + use doc && dohtml -r . +} |