Ticket #33671: libpqxx-4.0.diff

File libpqxx-4.0.diff, 2.3 KB (added by ryandesign (Ryan Carsten Schmidt), 13 years ago)

proposed patch

  • Portfile

     
    44PortSystem 1.0
    55
    66name        libpqxx
    7 version     3.0.2
     7version     4.0
    88
    99categories  databases devel
    1010
     
    2929
    3030homepage        http://pqxx.org/development/libpqxx/
    3131master_sites    http://pqxx.org/download/software/libpqxx/
    32 #http://pqxx.org/download/software/libpqxx/libpqxx-3.0.1.tar.gz
    3332
    34 distname        libpqxx-${version}
     33checksums       rmd160  517683e7f936126a9d133056740802518f62d18a \
     34                sha256  b160043289cfbf2a186d3b12f9976b6914e76d918d3d4469ff408bd199bbb8ed
    3535
    36 checksums           md5     3baa257e851b773fa1d693bbe185a418 \
    37                     sha1    6af866e06668e9c8b7af4161dddb1ab5f4bf094c \
    38                     rmd160  0162ea135d56c203f45f9d5d328a29d2db72b102
    39 
    40 variant pq83 description {use postgresql83} {
     36if {![variant_isset postgresql83] && ![variant_isset postgresql84] && ![variant_isset postgresql90] && ![variant_isset postgresql91]} {
     37    default_variants +postgresql91
    4138}
    4239
    43 if {[variant_isset pq83]} {
    44     set server      postgresql83
    45 } else {
    46     set server      postgresql84
     40variant pq83 requires postgresql83 description {Legacy compatibility variant} {}
     41
     42variant postgresql83 conflicts postgresql84 postgresql90 postgresql91 description {Use postgresql83} {}
     43variant postgresql84 conflicts postgresql83 postgresql90 postgresql91 description {Use postgresql84} {}
     44variant postgresql90 conflicts postgresql83 postgresql84 postgresql91 description {Use postgresql90} {}
     45variant postgresql91 conflicts postgresql83 postgresql84 postgresql90 description {Use postgresql91} {}
     46
     47if {[variant_isset postgresql83]} {
     48    set server postgresql83
     49} elseif {[variant_isset postgresql84]} {
     50    set server postgresql84
     51} elseif {[variant_isset postgresql90]} {
     52    set server postgresql90
     53} elseif {[variant_isset postgresql91]} {
     54    set server postgresql91
    4755}
    4856
    4957platforms       darwin
    5058depends_build   path:bin/pkg-config:pkgconfig
    5159depends_lib     port:${server}
    5260
     61patchfiles      patch-tools-maketemporary.diff \
     62                patch-tools-splitconfig.diff
     63
     64platform darwin {
     65    patchfiles-append patch-configure.diff
     66}
     67
    5368configure.env-append \
    5469    PG_CONFIG=${prefix}/lib/${server}/bin/pg_config
    5570