Opened 17 years ago

Closed 17 years ago

#11059 closed enhancement (fixed)

UPDATE: py-pgsql-2.4 -> 2.51

Reported by: pyrios@… Owned by: mww@…
Priority: Low Milestone:
Component: ports Version:
Keywords: Cc:
Port:

Description

From http://pypgsql.sourceforge.net/

2006-06-07: pyPgSQL 2.5.1 released (includes security fix for PostgreSQL vulnerability)!

I changed the dependency from postgresql8 to postgres81 although it should work with either.

Patch File


--- Portfile    2006-11-22 18:57:37.000000000 -0500
+++ Portfile.new        2006-11-22 18:58:35.000000000 -0500
@@ -1,11 +1,11 @@
-# $Id: Portfile 20384 2006-11-02 23:27:36Z blair@macports.org $
+# $Id: $
 
 PortSystem 1.0
 PortGroup python24 1.0
 
 name                   py-pgsql
-version                        2.4
-revision               2
+version                        2.5.1
+revision               3
 categories             python databases
 platforms              darwin
 maintainers            mww@opendarwin.org
@@ -23,20 +23,17 @@
 homepage               http://pypgsql.sourceforge.net/
 master_sites   sourceforge:pypgsql
 distname               pyPgSQL-${version}
-checksums              md5 56d4003e5192de9a09de468a7641bd11
-patchfiles             patch-setup.py.diff
+checksums pyPgSQL-2.5.1.tar.gz md5 82670f6f1652aa4766fdaec2cb43debd\
+       pyPgSQL-2.5.1.tar.gz sha1 ae286d2b0b0e6896223430887dd244e9eeef705b\
+       pyPgSQL-2.5.1.tar.gz rmd160 c41bc3d56e09cedc2022a6a80a620ca27dde8ca3
 
-depends_lib-append     port:postgresql8
+depends_lib-append     port:postgresql81
 
-worksrcdir             pypgsql
-
-post-patch {
-       reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/setup.py
-}
+build.env {PATH=/opt/local/lib/postgresql81/bin:$PATH}
 
 post-destroot {
        xinstall -m 644 -W ${worksrcpath} Announce ChangeLog README \
-               README.html TODO ${destroot}${prefix}/share/doc/${name}
+               README.html PKG-INFO ${destroot}${prefix}/share/doc/${name}
        xinstall -m 644 -W ${worksrcpath}/examples basic.py demo1a.py \
                demo1b.py demo2a.py demo2b.py \
                ${destroot}${prefix}/share/doc/${name}/examples

Attachments (1)

py-pgsql.patch (1.4 KB) - added by pyrios@… 17 years ago.
python/py-pgsql/Portfile update patch

Download all attachments as: .zip

Change History (2)

Changed 17 years ago by pyrios@…

Attachment: py-pgsql.patch added

python/py-pgsql/Portfile update patch

comment:1 Changed 17 years ago by markd@…

Resolution: fixed
Status: newclosed

This was updated independently by the maintainer.

Note: See TracTickets for help on using tickets.