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-1.1.21.ebuild
Date: Fri, 02 Jul 2010 02:16:17
Message-Id: 20100702021610.9A0162CE15@corvid.gentoo.org
1 arfrever 10/07/02 02:16:10
2
3 Modified: ChangeLog psycopg-1.1.21.ebuild
4 Log:
5 Set SUPPORT_PYTHON_ABIS. Respect CFLAGS and LDFLAGS.
6 (Portage version: HEAD/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.103 dev-python/psycopg/ChangeLog
10
11 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/psycopg/ChangeLog?rev=1.103&view=markup
12 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/psycopg/ChangeLog?rev=1.103&content-type=text/plain
13 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/psycopg/ChangeLog?r1=1.102&r2=1.103
14
15 Index: ChangeLog
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/dev-python/psycopg/ChangeLog,v
18 retrieving revision 1.102
19 retrieving revision 1.103
20 diff -u -r1.102 -r1.103
21 --- ChangeLog 20 Jun 2010 18:23:16 -0000 1.102
22 +++ ChangeLog 2 Jul 2010 02:16:10 -0000 1.103
23 @@ -1,6 +1,10 @@
24 # ChangeLog for dev-python/psycopg
25 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
26 -# $Header: /var/cvsroot/gentoo-x86/dev-python/psycopg/ChangeLog,v 1.102 2010/06/20 18:23:16 armin76 Exp $
27 +# $Header: /var/cvsroot/gentoo-x86/dev-python/psycopg/ChangeLog,v 1.103 2010/07/02 02:16:10 arfrever Exp $
28 +
29 + 02 Jul 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
30 + psycopg-1.1.21.ebuild:
31 + Set SUPPORT_PYTHON_ABIS. Respect CFLAGS and LDFLAGS.
32
33 20 Jun 2010; Raúl Porcel <armin76@g.o> psycopg-2.0.14.ebuild:
34 alpha/ia64/sparc stable wrt #320033
35
36
37
38 1.17 dev-python/psycopg/psycopg-1.1.21.ebuild
39
40 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/psycopg/psycopg-1.1.21.ebuild?rev=1.17&view=markup
41 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/psycopg/psycopg-1.1.21.ebuild?rev=1.17&content-type=text/plain
42 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/psycopg/psycopg-1.1.21.ebuild?r1=1.16&r2=1.17
43
44 Index: psycopg-1.1.21.ebuild
45 ===================================================================
46 RCS file: /var/cvsroot/gentoo-x86/dev-python/psycopg/psycopg-1.1.21.ebuild,v
47 retrieving revision 1.16
48 retrieving revision 1.17
49 diff -u -r1.16 -r1.17
50 --- psycopg-1.1.21.ebuild 17 Jun 2010 18:31:16 -0000 1.16
51 +++ psycopg-1.1.21.ebuild 2 Jul 2010 02:16:10 -0000 1.17
52 @@ -1,18 +1,21 @@
53 # Copyright 1999-2010 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 -# $Header: /var/cvsroot/gentoo-x86/dev-python/psycopg/psycopg-1.1.21.ebuild,v 1.16 2010/06/17 18:31:16 patrick Exp $
56 +# $Header: /var/cvsroot/gentoo-x86/dev-python/psycopg/psycopg-1.1.21.ebuild,v 1.17 2010/07/02 02:16:10 arfrever Exp $
57
58 -EAPI="2"
59 +EAPI="3"
60 +PYTHON_DEPEND="2"
61 +SUPPORT_PYTHON_ABIS="1"
62 +RESTRICT_PYTHON_ABIS="3.*"
63
64 inherit python
65
66 -DESCRIPTION="PostgreSQL database adapter for Python" # best one
67 -SRC_URI="http://initd.org/pub/software/${PN}/${P}.tar.gz"
68 +DESCRIPTION="PostgreSQL database adapter for Python"
69 HOMEPAGE="http://www.initd.org/software/psycopg"
70 +SRC_URI="http://initd.org/pub/software/${PN}/${P}.tar.gz"
71
72 +LICENSE="GPL-2"
73 SLOT="0"
74 KEYWORDS="alpha ~amd64 ia64 ppc ppc64 sparc x86"
75 -LICENSE="GPL-2"
76 IUSE=""
77
78 DEPEND=">=dev-python/egenix-mx-base-2.0.3
79 @@ -22,23 +25,32 @@
80 src_prepare() {
81 # fix for bug #134873
82 sed -e '1245s/static //' -i cursor.c
83 +
84 + sed -e 's:$(PY_MOD_DIR):$(D)&/$$mod:' -i Makefile.pre.in
85 +
86 + python_copy_sources
87 }
88
89 src_configure() {
90 - econf \
91 - --with-mxdatetime-includes="$(python_get_includedir)/mx" \
92 - --with-postgres-includes="/usr/include/postgresql/server"
93 + configuration() {
94 + econf \
95 + --with-mxdatetime-includes="$(python_get_includedir)/mx" \
96 + --with-postgres-includes="/usr/include/postgresql/server" || return 1
97 + sed -e 's:$(BLDSHARED):& $(LDFLAGS):' -i Makefile
98 + }
99 + python_execute_function -s configuration
100 +}
101 +
102 +src_compile() {
103 + python_src_compile OPT="${CFLAGS}" LDFLAGS="${LDFLAGS}"
104 }
105
106 src_install () {
107 - sed -e 's:\(echo " install -m 555 $$mod \)\($(PY_MOD_DIR)\)\("; \\\):\1${D}\2/$$mod\3:' \
108 - -e 's:\($(INSTALL) -m 555 $$mod \)\($(PY_MOD_DIR)\)\(; \\\):\1${D}\2/$$mod\3:' \
109 - -i Makefile
110 - emake install || die "emake install failed"
111 + python_src_install
112
113 dodoc AUTHORS ChangeLog CREDITS README NEWS RELEASE-1.0 SUCCESS TODO
114 docinto doc
115 - dodoc doc/*
116 + dodoc doc/*
117 insinto /usr/share/doc/${PF}/examples
118 - doins doc/examples/*
119 + doins doc/examples/*
120 }