Ticket #50284: psycopg_postgres95.diff

File psycopg_postgres95.diff, 3.7 KB (added by xeron (Ivan Larionov), 8 years ago)
  • python/py-psycopg2/Portfile

    diff --git a/python/py-psycopg2/Portfile b/python/py-psycopg2/Portfile
    index f899ec9..dbf0230 100644
    a b  
    11# -*- 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
    2 # $Id: Portfile 142218 2015-11-06 22:30:49Z snc@macports.org $
     2# $Id$
    33
    44PortSystem          1.0
    55PortGroup           python 1.0
    if {${name} ne ${subport}} { 
    7373                s|@PG_CONFIG@|${prefix}/lib/postgresql94/bin/pg_config|g \
    7474                ${worksrcpath}/setup.cfg
    7575        }
     76
     77        if {[variant_isset postgresql95]} {
     78            reinplace \
     79                s|@PG_CONFIG@|${prefix}/lib/postgresql95/bin/pg_config|g \
     80                ${worksrcpath}/setup.cfg
     81        }
    7682    }
    7783
    78     variant postgresql84 conflicts postgresql90 postgresql91 postgresql92 postgresql93 postgresql94 description "Build using postgresql v8.4" {
     84    variant postgresql84 conflicts postgresql90 postgresql91 postgresql92 postgresql93 postgresql94 postgresql95 description "Build using postgresql v8.4" {
    7985        depends_lib-append  port:postgresql84
    8086    }
    8187
    82     variant postgresql90 conflicts postgresql84 postgresql91 postgresql92 postgresql93 postgresql94 description "Build using postgresql v9.0" {
     88    variant postgresql90 conflicts postgresql84 postgresql91 postgresql92 postgresql93 postgresql94 postgresql95 description "Build using postgresql v9.0" {
    8389        depends_lib-append  port:postgresql90
    8490    }
    8591
    86     variant postgresql91 conflicts postgresql84 postgresql90 postgresql92 postgresql93 postgresql94 description "Build using postgresql v9.1" {
     92    variant postgresql91 conflicts postgresql84 postgresql90 postgresql92 postgresql93 postgresql94 postgresql95 description "Build using postgresql v9.1" {
    8793        depends_lib-append  port:postgresql91
    8894    }
    8995
    90     variant postgresql92 conflicts postgresql84 postgresql90 postgresql91 postgresql93 postgresql94 description "Build using postgresql v9.2" {
     96    variant postgresql92 conflicts postgresql84 postgresql90 postgresql91 postgresql93 postgresql94 postgresql95 description "Build using postgresql v9.2" {
    9197        depends_lib-append  port:postgresql92
    9298    }
    9399
    94     variant postgresql93 conflicts postgresql84 postgresql90 postgresql91 postgresql92 postgresql94 description "Build using postgresql v9.3" {
     100    variant postgresql93 conflicts postgresql84 postgresql90 postgresql91 postgresql92 postgresql94 postgresql95 description "Build using postgresql v9.3" {
    95101        depends_lib-append  port:postgresql93
    96102    }
    97103
    98     variant postgresql94 conflicts postgresql84 postgresql90 postgresql91 postgresql92 postgresql93 description "Build using postgresql v9.4" {
     104    variant postgresql94 conflicts postgresql84 postgresql90 postgresql91 postgresql92 postgresql93 postgresql95 description "Build using postgresql v9.4" {
    99105        depends_lib-append  port:postgresql94
    100106    }
    101107
    102     if {![variant_isset postgresql84] && ![variant_isset postgresql90] && ![variant_isset postgresql91] && ![variant_isset postgresql92] && ![variant_isset postgresql93] && ![variant_isset postgresql94]} {
    103         default_variants    +postgresql93
     108    variant postgresql95 conflicts postgresql84 postgresql90 postgresql91 postgresql92 postgresql93 postgresql94 description "Build using postgresql v9.5" {
     109        depends_lib-append  port:postgresql95
     110    }
     111
     112    if {![variant_isset postgresql84] && ![variant_isset postgresql90] && ![variant_isset postgresql91] && ![variant_isset postgresql92] && ![variant_isset postgresql93] && ![variant_isset postgresql94] && ![variant_isset postgresql95]} {
     113        default_variants    +postgresql94
    104114    }
    105115
    106116    livecheck.type      none