summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-07-02 02:16:10 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-07-02 02:16:10 +0000
commit9f527e61d007c08a8b90ec79139427496de782cc (patch)
tree2534102cb9308af08ad696a9fd6b0b33c4b704ef /dev-python/psycopg
parentThe GTK+ interface needs libpng-1.4, not any libpng. (diff)
downloadgentoo-2-9f527e61d007c08a8b90ec79139427496de782cc.tar.gz
gentoo-2-9f527e61d007c08a8b90ec79139427496de782cc.tar.bz2
gentoo-2-9f527e61d007c08a8b90ec79139427496de782cc.zip
Set SUPPORT_PYTHON_ABIS. Respect CFLAGS and LDFLAGS.
(Portage version: HEAD/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/psycopg')
-rw-r--r--dev-python/psycopg/ChangeLog6
-rw-r--r--dev-python/psycopg/psycopg-1.1.21.ebuild40
2 files changed, 31 insertions, 15 deletions
diff --git a/dev-python/psycopg/ChangeLog b/dev-python/psycopg/ChangeLog
index de03a4ccb79b..62d515869625 100644
--- a/dev-python/psycopg/ChangeLog
+++ b/dev-python/psycopg/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-python/psycopg
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/psycopg/ChangeLog,v 1.102 2010/06/20 18:23:16 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/psycopg/ChangeLog,v 1.103 2010/07/02 02:16:10 arfrever Exp $
+
+ 02 Jul 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ psycopg-1.1.21.ebuild:
+ Set SUPPORT_PYTHON_ABIS. Respect CFLAGS and LDFLAGS.
20 Jun 2010; Raúl Porcel <armin76@gentoo.org> psycopg-2.0.14.ebuild:
alpha/ia64/sparc stable wrt #320033
diff --git a/dev-python/psycopg/psycopg-1.1.21.ebuild b/dev-python/psycopg/psycopg-1.1.21.ebuild
index 7c62d0df0d1b..0fc371e63b57 100644
--- a/dev-python/psycopg/psycopg-1.1.21.ebuild
+++ b/dev-python/psycopg/psycopg-1.1.21.ebuild
@@ -1,18 +1,21 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/psycopg/psycopg-1.1.21.ebuild,v 1.16 2010/06/17 18:31:16 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/psycopg/psycopg-1.1.21.ebuild,v 1.17 2010/07/02 02:16:10 arfrever Exp $
-EAPI="2"
+EAPI="3"
+PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.*"
inherit python
-DESCRIPTION="PostgreSQL database adapter for Python" # best one
-SRC_URI="http://initd.org/pub/software/${PN}/${P}.tar.gz"
+DESCRIPTION="PostgreSQL database adapter for Python"
HOMEPAGE="http://www.initd.org/software/psycopg"
+SRC_URI="http://initd.org/pub/software/${PN}/${P}.tar.gz"
+LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha ~amd64 ia64 ppc ppc64 sparc x86"
-LICENSE="GPL-2"
IUSE=""
DEPEND=">=dev-python/egenix-mx-base-2.0.3
@@ -22,23 +25,32 @@ RDEPEND="${DEPEND}"
src_prepare() {
# fix for bug #134873
sed -e '1245s/static //' -i cursor.c
+
+ sed -e 's:$(PY_MOD_DIR):$(D)&/$$mod:' -i Makefile.pre.in
+
+ python_copy_sources
}
src_configure() {
- econf \
- --with-mxdatetime-includes="$(python_get_includedir)/mx" \
- --with-postgres-includes="/usr/include/postgresql/server"
+ configuration() {
+ econf \
+ --with-mxdatetime-includes="$(python_get_includedir)/mx" \
+ --with-postgres-includes="/usr/include/postgresql/server" || return 1
+ sed -e 's:$(BLDSHARED):& $(LDFLAGS):' -i Makefile
+ }
+ python_execute_function -s configuration
+}
+
+src_compile() {
+ python_src_compile OPT="${CFLAGS}" LDFLAGS="${LDFLAGS}"
}
src_install () {
- sed -e 's:\(echo " install -m 555 $$mod \)\($(PY_MOD_DIR)\)\("; \\\):\1${D}\2/$$mod\3:' \
- -e 's:\($(INSTALL) -m 555 $$mod \)\($(PY_MOD_DIR)\)\(; \\\):\1${D}\2/$$mod\3:' \
- -i Makefile
- emake install || die "emake install failed"
+ python_src_install
dodoc AUTHORS ChangeLog CREDITS README NEWS RELEASE-1.0 SUCCESS TODO
docinto doc
- dodoc doc/*
+ dodoc doc/*
insinto /usr/share/doc/${PF}/examples
- doins doc/examples/*
+ doins doc/examples/*
}