Ticket #20746: Portfile-py26-psycopg2.diff

File Portfile-py26-psycopg2.diff, 1.6 KB (added by lperry (Perry Lee), 15 years ago)
  • Portfile

     
    2828patchfiles          patch-setup.cfg.diff
    2929
    3030
    31 if {![variant_isset postgresql82] && ![variant_isset postgresql83]} {
    32     default_variants    +postgresql83
     31if {![variant_isset postgresql82] && ![variant_isset postgresql83] && ![variant_isset postgresql84]} {
     32    default_variants    +postgresql84
    3333}
    3434
    35 variant postgresql82 conflicts postgresql83 description "Build using postgresql v8.2" {
     35variant postgresql82 conflicts postgresql83 postgresql84 description "Build using postgresql v8.2" {
    3636    depends_lib-append  port:postgresql82
    37    
     37
    3838    post-patch {
    3939        reinplace \
    4040            s|@PG_CONFIG@|${prefix}/lib/postgresql82/bin/pg_config|g \
     
    4242    }
    4343}
    4444
    45 variant postgresql83 conflicts postgresql82 description "Build using postgresql v8.3" {
     45variant postgresql83 conflicts postgresql82 postgresql84 description "Build using postgresql v8.3" {
    4646    depends_lib-append port:postgresql83
    47    
     47
    4848    post-patch {
    4949        reinplace \
    5050            s|@PG_CONFIG@|${prefix}/lib/postgresql83/bin/pg_config|g \
     
    5252    }
    5353}
    5454
     55variant postgresql84 conflicts postgresql82 postgresql83 description "Build using postgresql v8.4" {
     56    depends_lib-append port:postgresql84
     57
     58    post-patch {
     59        reinplace \
     60            s|@PG_CONFIG@|${prefix}/lib/postgresql84/bin/pg_config|g \
     61            ${worksrcpath}/setup.cfg
     62    }
     63}
     64
    5565livecheck.url       ${master_sites}
    5666livecheck.regex     "psycopg2-(\\d+\\.\\d+(\\.\\d+)?)"