Gentoo Archives: gentoo-commits

From: "Arfrever Frehtes Taifersar Arahesis (arfrever)" <arfrever@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/psycopg: ChangeLog psycopg-2.4.ebuild
Date: Sun, 27 Feb 2011 23:53:58
Message-Id: 20110227235348.4C76420054@flycatcher.gentoo.org
1 arfrever 11/02/27 23:53:48
2
3 Modified: ChangeLog
4 Added: psycopg-2.4.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha25_p9/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.119 dev-python/psycopg/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/psycopg/ChangeLog?rev=1.119&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/psycopg/ChangeLog?rev=1.119&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/psycopg/ChangeLog?r1=1.118&r2=1.119
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/psycopg/ChangeLog,v
20 retrieving revision 1.118
21 retrieving revision 1.119
22 diff -u -r1.118 -r1.119
23 --- ChangeLog 8 Feb 2011 22:51:12 -0000 1.118
24 +++ ChangeLog 27 Feb 2011 23:53:48 -0000 1.119
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-python/psycopg
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/psycopg/ChangeLog,v 1.118 2011/02/08 22:51:12 arfrever Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/psycopg/ChangeLog,v 1.119 2011/02/27 23:53:48 arfrever Exp $
30 +
31 +*psycopg-2.4 (27 Feb 2011)
32 +
33 + 27 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
34 + +psycopg-2.4.ebuild:
35 + Version bump.
36
37 08 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
38 -psycopg-2.0.14.ebuild, -psycopg-2.2.2.ebuild, -psycopg-2.3.1.ebuild:
39
40
41
42 1.1 dev-python/psycopg/psycopg-2.4.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/psycopg/psycopg-2.4.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/psycopg/psycopg-2.4.ebuild?rev=1.1&content-type=text/plain
46
47 Index: psycopg-2.4.ebuild
48 ===================================================================
49 # Copyright 1999-2011 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-python/psycopg/psycopg-2.4.ebuild,v 1.1 2011/02/27 23:53:48 arfrever Exp $
52
53 EAPI="3"
54 SUPPORT_PYTHON_ABIS="1"
55 RESTRICT_PYTHON_ABIS="*-jython"
56
57 inherit distutils eutils
58
59 MY_PN="${PN}2"
60 MY_P="${MY_PN}-${PV}"
61
62 DESCRIPTION="PostgreSQL database adapter for Python"
63 HOMEPAGE="http://initd.org/psycopg/ http://pypi.python.org/pypi/psycopg2"
64 SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
65
66 LICENSE="GPL-2"
67 SLOT="2"
68 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
69 IUSE="debug doc examples mxdatetime"
70
71 DEPEND=">=dev-db/postgresql-base-8.1
72 mxdatetime? ( dev-python/egenix-mx-base )"
73 RDEPEND="${DEPEND}"
74 RESTRICT="test"
75
76 S="${WORKDIR}/${MY_P}"
77
78 PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
79
80 DOCS="AUTHORS doc/HACKING doc/psycopg2.txt doc/SUCCESS"
81 PYTHON_MODNAME="${PN}2"
82
83 src_prepare() {
84 epatch "${FILESDIR}/${PN}-2.0.12-setup.py.patch"
85 epatch "${FILESDIR}/${PN}-2.0.9-round-solaris.patch"
86
87 if use debug; then
88 sed -i 's/^\(define=\)/\1PSYCOPG_DEBUG,/' setup.cfg || die "sed failed"
89 fi
90
91 if use mxdatetime; then
92 sed -i 's/\(use_pydatetime=\)1/\10/' setup.cfg || die "sed failed"
93 fi
94 }
95
96 src_install() {
97 distutils_src_install
98
99 if use doc; then
100 pushd doc/html > /dev/null
101 insinto /usr/share/doc/${PF}/html
102 doins -r [a-z]* _static || die "Installation of documentation failed"
103 popd > /dev/null
104 fi
105
106 if use examples; then
107 insinto /usr/share/doc/${PF}/examples
108 doins -r examples/* || die "Installation of examples failed"
109 fi
110 }