Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 2164 - PyGreSQL-3.2.ebuild (New Ebuild)
Summary: PyGreSQL-3.2.ebuild (New Ebuild)
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement
Assignee: Jon Nelson (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-27 16:27 UTC by Gontran Zepeda
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gontran Zepeda 2002-04-27 16:27:23 UTC
# 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/*
}
Comment 1 Gontran Zepeda 2002-04-28 12:12:54 UTC
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/*
}
Comment 2 Jon Nelson (RETIRED) 2002-05-14 22:58:36 UTC
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!)