Ticket #32453: Portfile-py-psycopg2.diff

File Portfile-py-psycopg2.diff, 1.8 KB (added by shirshegsm@…, 13 years ago)

Portfile patch

  • Portfile

    old new  
    5151                s|@PG_CONFIG@|${prefix}/lib/postgresql90/bin/pg_config|g \
    5252                ${worksrcpath}/setup.cfg
    5353        }
     54
     55        if {[variant_isset postgresql91]} {
     56            reinplace \
     57                s|@PG_CONFIG@|${prefix}/lib/postgresql91/bin/pg_config|g \
     58                ${worksrcpath}/setup.cfg
     59        }
    5460    }
    5561
    5662    livecheck.type      none
     
    6066}
    6167
    6268
    63 if {![variant_isset postgresql83] && ![variant_isset postgresql84] && ![variant_isset postgresql90]} {
    64     default_variants    +postgresql90
     69if {![variant_isset postgresql83] && ![variant_isset postgresql84] && ![variant_isset postgresql90] && ![variant_isset postgresql91]} {
     70    default_variants    +postgresql91
    6571}
    6672
    67 variant postgresql83 conflicts postgresql84 postgresql90 description "Build using postgresql v8.3" {
     73variant postgresql83 conflicts postgresql84 postgresql90 postgresql91 description "Build using postgresql v8.3" {
    6874    depends_lib-append port:postgresql83
    6975}
    7076
    71 variant postgresql84 conflicts postgresql83 postgresql90 description "Build using postgresql v8.4" {
     77variant postgresql84 conflicts postgresql83 postgresql90 postgresql91 description "Build using postgresql v8.4" {
    7278    depends_lib-append port:postgresql84
    7379}
    7480
    75 variant postgresql90 conflicts postgresql83 postgresql84 description "Build using postgresql v9.0" {
     81variant postgresql90 conflicts postgresql83 postgresql84 postgresql91 description "Build using postgresql v9.0" {
    7682    depends_lib-append port:postgresql90
    7783}
     84
     85variant postgresql91 conflicts postgresql83 postgresql84 postgresql90 description "Build using postgresql v9.1" {
     86    depends_lib-append port:postgresql91
     87}