Ticket #21993: py25-psycopg2-2.0.13.diff

File py25-psycopg2-2.0.13.diff, 3.2 KB (added by Themanwithoutaplan, 15 years ago)

Patch for Python 2.5

  • Users/charlieclark/temp/MacPorts/py25-psycopg2/Portfile

     
    1 # -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
     1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
    22# $Id$
    33
    44PortSystem          1.0
    55PortGroup           python25 1.0
    66
    77name                py25-psycopg2
    8 version             2.0.12
     8version             2.0.13
    99categories          python databases
    10 maintainers         snc openmaintainer
     10maintainers         openmaintainer
    1111platforms           darwin freebsd
    1212description         A python DBAPI-2.0 ompliant database adapter for postgresql
    1313long_description    Psycopg2 is a postgresql database adapter for python. \
     
    1515                    designed for heavily multi-threaded applications \
    1616                    featuring connection pooling.
    1717
    18 homepage            http://www.initd.org/software/initd/psycopg/
    19 master_sites        http://initd.org/pub/software/psycopg/ \
    20                     http://initd.org/pub/software/psycopg/PSYCOPG-2-0/
     18homepage            http://initd.org/
     19master_sites        http://initd.org/pub/software/psycopg/
     20distname        psycopg2-${version}
     21checksums       md5     f520260595f4fcf035d26cfd57a75f19 \
     22                sha1    859725d0c830dc3590cb5666c8465bd29ab167cc \
     23                rmd160  6099f593ea1f05b78b6f2c3c4106b86cbcab7386
    2124
    22 distname            psycopg2-${version}
    23 checksums           md5     5c8080d0d0568479f041bb8534caf1f8 \
    24                     sha1    a5649fced3ffc9968b21421023239f95a3a21ad3 \
    25                     rmd160  eff28c1ab131ee55b42e0c129df88cebd79f38fd
    26 
    2725depends_lib-append  port:openssl
    2826
    29 patchfiles          patch-setup.cfg
    30 
    3127if {![variant_isset postgresql82] && ![variant_isset postgresql83] && ![variant_isset postgresql84]} {
    3228    default_variants    +postgresql84
    3329}
     
    3632    depends_lib-append  port:postgresql82
    3733
    3834    post-patch {
     35        reinplace \
     36            s|@PG_CONFIG@|${prefix}/lib/postgresql82/bin/pg_config|g \
     37            ${worksrcpath}/setup.cfg
     38    }
     39    post-patch {
    3940    reinplace \
    4041        s|@PG_CONFIG@|${prefix}/lib/postgresql82/bin/pg_config|g \
    4142        ${worksrcpath}/setup.cfg
     
    4344}
    4445
    4546variant postgresql83 conflicts postgresql82 postgresql84 description "Build using postgresql v8.3" {
    46     depends_lib-append  port:postgresql83
     47    depends_lib-append port:postgresql83
    4748
    4849    post-patch {
    4950        reinplace \
     
    5354}
    5455
    5556variant postgresql84 conflicts postgresql82 postgresql83 description "Build using postgresql v8.4" {
    56     depends_lib-append  port:postgresql84
     57    depends_lib-append port:postgresql84
    5758
    5859    post-patch {
    5960        reinplace \
     
    6263    }
    6364}
    6465
    65 livecheck.url   ${master_sites}
    66 livecheck.regex psycopg2-(\\d+\\.\\d+(\\.\\d+)?)\\.tar\\.gz
     66livecheck.url       ${master_sites}
     67livecheck.regex     "psycopg2-(\\d+\\.\\d+(\\.\\d+)?)"
     68 No newline at end of file