diff options
author | Krzysztof Pawlik <nelchael@gentoo.org> | 2008-05-26 12:46:54 +0000 |
---|---|---|
committer | Krzysztof Pawlik <nelchael@gentoo.org> | 2008-05-26 12:46:54 +0000 |
commit | 01f2ba0e14a4b5977ef4b87405f6264e7dcdc293 (patch) | |
tree | 8f6fd2f3ff02036cad11a8360c430bf21076894d /dev-python/psycopg | |
parent | xinerama patch ALWAYS need to be applied (diff) | |
download | gentoo-2-01f2ba0e14a4b5977ef4b87405f6264e7dcdc293.tar.gz gentoo-2-01f2ba0e14a4b5977ef4b87405f6264e7dcdc293.tar.bz2 gentoo-2-01f2ba0e14a4b5977ef4b87405f6264e7dcdc293.zip |
Version bump.
(Portage version: 2.1.5.2)
Diffstat (limited to 'dev-python/psycopg')
-rw-r--r-- | dev-python/psycopg/ChangeLog | 8 | ||||
-rw-r--r-- | dev-python/psycopg/files/psycopg-2.0.7-fbsd.patch | 11 | ||||
-rw-r--r-- | dev-python/psycopg/psycopg-2.0.7.ebuild | 52 |
3 files changed, 70 insertions, 1 deletions
diff --git a/dev-python/psycopg/ChangeLog b/dev-python/psycopg/ChangeLog index ca7c57109b56..159158be54b3 100644 --- a/dev-python/psycopg/ChangeLog +++ b/dev-python/psycopg/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-python/psycopg # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/psycopg/ChangeLog,v 1.62 2008/05/19 19:47:13 dev-zero Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/psycopg/ChangeLog,v 1.63 2008/05/26 12:46:54 nelchael Exp $ + +*psycopg-2.0.7 (26 May 2008) + + 26 May 2008; Krzysiek Pawlik <nelchael@gentoo.org> + +files/psycopg-2.0.7-fbsd.patch, +psycopg-2.0.7.ebuild: + Version bump. 19 May 2008; Tiziano Müller <dev-zero@gentoo.org> psycopg-1.1.21.ebuild, psycopg-2.0.2.ebuild, psycopg-2.0.5.1.ebuild, psycopg-2.0.6.ebuild: diff --git a/dev-python/psycopg/files/psycopg-2.0.7-fbsd.patch b/dev-python/psycopg/files/psycopg-2.0.7-fbsd.patch new file mode 100644 index 000000000000..fef22dad4b3e --- /dev/null +++ b/dev-python/psycopg/files/psycopg-2.0.7-fbsd.patch @@ -0,0 +1,11 @@ +--- psycopg/config.h.orig 2007-08-05 14:00:20.000000000 -0500 ++++ psycopg/config.h 2007-08-05 14:00:34.000000000 -0500 +@@ -113,7 +113,7 @@ + #define inline + #endif + +-#if defined(__FreeBSD__) || (defined(_WIN32) && !defined(__GNUC__)) || defined(__sun__) ++#if (defined(_WIN32) && !defined(__GNUC__)) || defined(__sun__) + /* what's this, we have no round function either? */ + static double round(double num) + { diff --git a/dev-python/psycopg/psycopg-2.0.7.ebuild b/dev-python/psycopg/psycopg-2.0.7.ebuild new file mode 100644 index 000000000000..f1cc4b573197 --- /dev/null +++ b/dev-python/psycopg/psycopg-2.0.7.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/psycopg/psycopg-2.0.7.ebuild,v 1.1 2008/05/26 12:46:54 nelchael Exp $ + +NEED_PYTHON=2.4 + +inherit eutils distutils + +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" +LICENSE="GPL-2" +IUSE="debug doc examples mxdatetime" + +DEPEND="virtual/postgresql-base + mxdatetime? ( dev-python/egenix-mx-base )" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/${MY_P} + +PYTHON_MODNAME=${PN}2 + +src_unpack() { + unpack ${A} + cd "${S}" + + 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 + + # Fixes compilation issue in fbsd. + epatch "${FILESDIR}/${P}-fbsd.patch" +} + +src_install() { + DOCS="AUTHORS doc/HACKING doc/SUCCESS doc/TODO doc/async.txt" + distutils_src_install + + insinto /usr/share/doc/${PF} + use examples && doins -r examples + + cd doc + use doc && dohtml -r . +} |