diff options
author | Martin Jackson <mjolnir@gentoo.org> | 2007-08-05 21:10:36 +0000 |
---|---|---|
committer | Martin Jackson <mjolnir@gentoo.org> | 2007-08-05 21:10:36 +0000 |
commit | 7fa6c44674159f74375d2209a9093f1eb4fe215b (patch) | |
tree | 44264d95b7b3d8ae0f90569e1f3f8b765bee9d32 /dev-python/psycopg | |
parent | old (diff) | |
download | gentoo-2-7fa6c44674159f74375d2209a9093f1eb4fe215b.tar.gz gentoo-2-7fa6c44674159f74375d2209a9093f1eb4fe215b.tar.bz2 gentoo-2-7fa6c44674159f74375d2209a9093f1eb4fe215b.zip |
Add knob for MxDateTime for 121065 and bump to 2.0.6 for 186186
(Portage version: 2.1.2.11)
Diffstat (limited to 'dev-python/psycopg')
-rw-r--r-- | dev-python/psycopg/ChangeLog | 8 | ||||
-rw-r--r-- | dev-python/psycopg/files/digest-psycopg-2.0.6 | 3 | ||||
-rw-r--r-- | dev-python/psycopg/files/psycopg-2.0.6-fbsd.patch | 11 | ||||
-rw-r--r-- | dev-python/psycopg/psycopg-2.0.6.ebuild | 52 |
4 files changed, 73 insertions, 1 deletions
diff --git a/dev-python/psycopg/ChangeLog b/dev-python/psycopg/ChangeLog index 9c52f4550cbd..bf8991a276f2 100644 --- a/dev-python/psycopg/ChangeLog +++ b/dev-python/psycopg/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-python/psycopg # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/psycopg/ChangeLog,v 1.59 2007/07/25 14:52:51 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/psycopg/ChangeLog,v 1.60 2007/08/05 21:10:36 mjolnir Exp $ + +*psycopg-2.0.6 (05 Aug 2007) + + 05 Aug 2007; Martin Jackson <mjolnir@gentoo.org> + +files/psycopg-2.0.6-fbsd.patch, +psycopg-2.0.6.ebuild: + Add knob for MxDateTime for 121065 and bump to 2.0.6 for 186186 25 Jul 2007; Raúl Porcel <armin76@gentoo.org> psycopg-1.1.21.ebuild: alpha stable diff --git a/dev-python/psycopg/files/digest-psycopg-2.0.6 b/dev-python/psycopg/files/digest-psycopg-2.0.6 new file mode 100644 index 000000000000..21ff4eb1b574 --- /dev/null +++ b/dev-python/psycopg/files/digest-psycopg-2.0.6 @@ -0,0 +1,3 @@ +MD5 e22a478b8eac5af5111ce8c697abaaa8 psycopg2-2.0.6.tar.gz 228129 +RMD160 4b5ebd8b1f797a4c814c971df569a6fca081d47c psycopg2-2.0.6.tar.gz 228129 +SHA256 0810ea79a5013c8620dfe5af7092963b636ae63dc72b458a13c6d7bc5e1e5694 psycopg2-2.0.6.tar.gz 228129 diff --git a/dev-python/psycopg/files/psycopg-2.0.6-fbsd.patch b/dev-python/psycopg/files/psycopg-2.0.6-fbsd.patch new file mode 100644 index 000000000000..fef22dad4b3e --- /dev/null +++ b/dev-python/psycopg/files/psycopg-2.0.6-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.6.ebuild b/dev-python/psycopg/psycopg-2.0.6.ebuild new file mode 100644 index 000000000000..1e20fadf9ae9 --- /dev/null +++ b/dev-python/psycopg/psycopg-2.0.6.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/psycopg/psycopg-2.0.6.ebuild,v 1.1 2007/08/05 21:10:36 mjolnir 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="dev-db/libpq + 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 . +} |