Ticket #27149: py26-pgsql-Portfile.diff

File py26-pgsql-Portfile.diff, 1004 bytes (added by matlads@…, 14 years ago)
  • Portfile

    old new  
    3535      demo2a.py demo2b.py ${destroot}${prefix}/share/doc/${name}/examples
    3636}
    3737
     38variant postgresql90 conflicts postgresql84 postgresql83 description {Use with PostgreSQL 9.0} {
     39   global build.env destroot.env
     40   depends_lib-append   port:postgresql90
     41   build.env            PATH="${prefix}/lib/postgresql90/bin:$env(PATH)"
     42   destroot.env         ${build.env}
     43}
     44
    3845variant postgresql83 conflicts postgresql84 description {Use with PostgreSQL 8.3} {
    3946   global build.env destroot.env
    4047   depends_lib-append   port:postgresql83
     
    5057}
    5158
    5259# Default to postgresql83 since that was the built-in version previously
    53 if {![variant_isset postgresql83] && ![variant_isset postgresql84]}
    54    default_variants   +postgresql83
     60if {![variant_isset postgresql83] && ![variant_isset postgresql84] && ![variant_isset postgresql90]} {
     61   default_variants   +postgresql90
    5562}
    5663