New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 82250


Ignore:
Timestamp:
08/11/11 11:16:51 (4 years ago)
Author:
snc@…
Message:

py-psycopg2:

  • unify
  • drop landonf, with permission
Location:
trunk/dports/python
Files:
3 deleted
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/dports/python/py-psycopg2/Portfile

    r69520 r82250  
    22 
    33PortSystem 1.0 
    4 PortGroup python24 1.0 
     4PortGroup python 1.0 
    55 
    66name                    py-psycopg2 
    7 version                 2.0.5.1 
    8 revision        1 
     7version                 2.4.2 
     8python.versions 24 25 26 27 
     9python.default_version  27 
    910categories              python databases 
    10 maintainers             landonf 
     11maintainers             snc openmaintainer 
    1112platforms               darwin freebsd 
    1213description             A python DBAPI-2.0 ompliant database adapter for postgresql 
     
    1718 
    1819homepage                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/ 
     20 
     21set branch          [join [lrange [split ${version} .] 0 1] -] 
     22master_sites            http://www.psycopg.org/psycopg/tarballs/PSYCOPG-${branch}/ 
    2123distname                psycopg2-${version} 
    22 checksums               md5 052e4b97dab47708fdcdc36ffb25af66 
    2324 
    24 depends_lib             port:postgresql81 \ 
    25                         port:python24 \ 
    26                         port:openssl 
     25checksums           rmd160  ec0fe7573260773b5e701f00ea365a1b7d4cc329 \ 
     26                    sha256  16c2ad8b19039888354944c75f25da40c22f91a79d230ed2aedeabf9d3b585b9 
    2727 
    28 patchfiles              patch-setup.cfg 
     28if {$subport != $name} { 
     29    depends_lib-append  port:openssl 
    2930 
    30 post-patch              { 
    31         reinplace \ 
    32                 s|@PG_CONFIG@|${prefix}/lib/postgresql81/bin/pg_config|g \ 
    33                 ${worksrcpath}/setup.cfg 
     31    patchfiles          patch-setup.cfg.diff 
     32 
     33    post-patch { 
     34 
     35        if {[variant_isset postgresql83]} { 
     36            reinplace \ 
     37                s|@PG_CONFIG@|${prefix}/lib/postgresql83/bin/pg_config|g \ 
     38                ${worksrcpath}/setup.cfg 
     39        } 
     40 
     41        if {[variant_isset postgresql84]} { 
     42            reinplace \ 
     43                s|@PG_CONFIG@|${prefix}/lib/postgresql84/bin/pg_config|g \ 
     44                ${worksrcpath}/setup.cfg 
     45        } 
     46 
     47        if {[variant_isset postgresql90]} { 
     48            reinplace \ 
     49                s|@PG_CONFIG@|${prefix}/lib/postgresql90/bin/pg_config|g \ 
     50                ${worksrcpath}/setup.cfg 
     51        } 
     52    } 
    3453} 
     54 
     55 
     56if {![variant_isset postgresql83] && ![variant_isset postgresql84] && ![variant_isset postgresql90]} { 
     57    default_variants    +postgresql90 
     58} 
     59 
     60variant postgresql83 conflicts postgresql84 postgresql90 description "Build using postgresql v8.3" { 
     61    depends_lib-append port:postgresql83 
     62} 
     63 
     64variant postgresql84 conflicts postgresql83 postgresql90 description "Build using postgresql v8.4" { 
     65    depends_lib-append port:postgresql84 
     66} 
     67 
     68variant postgresql90 conflicts postgresql83 postgresql84 description "Build using postgresql v9.0" { 
     69    depends_lib-append port:postgresql90 
     70} 
     71 
     72livecheck.url       ${master_sites} 
     73livecheck.regex     psycopg2-(\\d+(\\.\\d+)+)${extract.suffix} 
Note: See TracChangeset for help on using the changeset viewer.