# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Gontran Zepeda <gontran@gontran.net> S=${WORKDIR}/${P} DESCRIPTION="A Python interface for PostgreSQL database." # y.a. SRC_URI="ftp://ftp.druid.net/pub/distrib/${P}.tgz" HOMEPAGE="http://druid.net/pygresql/" DEPEND="virtual/python >=dev-db/postgresql-7.1-r1" src_compile() { cp setup.py setup.py.orig cat setup.py.orig | sed -e 's#/usr/include/pgsql#/usr/include/postgresql/server#' > setup.py python setup.py build || die } src_install() { python setup.py install --prefix=${D}/usr || die dodoc README README.linux tutorial/* }
Modifications per jnelson commentary on gentoo-dev. # Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Gontran Zepeda <gontran@gontran.net> S=${WORKDIR}/${P} DESCRIPTION="A Python interface for PostgreSQL database." # y.a. SRC_URI="ftp://ftp.druid.net/pub/distrib/${P}.tgz" HOMEPAGE="http://druid.net/pygresql/" DEPEND="virtual/python >=dev-db/postgresql-7.1-r1" src_compile() { cp setup.py setup.py.orig cat setup.py.orig | sed -e 's#/usr/include/pgsql#/usr/include/postgresql/server#' > setup.py python setup.py build || die } src_install() { python setup.py install --root=${D} --prefix=/usr || die dodoc README README.linux tutorial/* }
I did some research. According to my sources, postgresql 7.2 comes with pygresql as 'python-postgresql'. I have put this on the back burner until more can be learned, if that's OK. Otherwise, please explain. Thanks! (Also thanks for your other constributions!)