Ticket #36400: pgAdmin3-variants.diff

File pgAdmin3-variants.diff, 3.7 KB (added by ryandesign (Ryan Carsten Schmidt), 12 years ago)
  • Portfile

     
    3232    port:libxslt \
    3333    port:wxWidgets30
    3434
    35 configure.args  --with-pgsql=${prefix}/lib/postgresql92 \
     35configure.args \
    3636    --with-wx=${prefix} \
    3737    --with-wx-version=2.9 \
    3838    --with-libxml2=${prefix} \
     
    4343use_parallel_build      no
    4444build.target    all install
    4545
    46 default_variants    +with_postgresql92
    47 
    4846universal_variant no
    4947
    5048post-configure {
     
    5755    file copy ${worksrcpath}/${name}.app ${destroot}${applications_dir}/${name}.app
    5856}
    5957
    60 variant with_postgresql83 conflicts with_postgresql84 with_postgresql90 with_postgresql91 with_postgresql92 \
     58variant postgresql83 conflicts postgresql84 postgresql90 postgresql91 postgresql92 \
    6159    description {support for PostgreSQL 8.3.x} {
    62         depends_lib-delete      port:postgresql92
    63         configure.args-delete   --with-pgsql=${prefix}/lib/postgresql92
    6460        depends_lib-append      port:postgresql83
    6561        configure.args-append   --with-pgsql=${prefix}/lib/postgresql83
    6662}
    6763
    68 variant with_postgresql84 conflicts with_postgresql83 with_postgresql90 with_postgresql91 with_postgresql92 \
     64variant postgresql84 conflicts postgresql83 postgresql90 postgresql91 postgresql92 \
    6965    description {support for PostgreSQL 8.4.x} {
    70         depends_lib-delete      port:postgresql92
    71         configure.args-delete   --with-pgsql=${prefix}/lib/postgresql92
    7266        depends_lib-append      port:postgresql84
    7367        configure.args-append   --with-pgsql=${prefix}/lib/postgresql84
    7468}
    7569
    76 variant with_postgresql90 conflicts with_postgresql83 with_postgresql84 with_postgresql91 with_postgresql92 \
     70variant postgresql90 conflicts postgresql83 postgresql84 postgresql91 postgresql92 \
    7771    description {support for PostgreSQL 9.0.x} {
    78         depends_lib-delete      port:postgresql92
    79         configure.args-delete   --with-pgsql=${prefix}/lib/postgresql92
    8072        depends_lib-append      port:postgresql90
    8173        configure.args-append   --with-pgsql=${prefix}/lib/postgresql90
    8274}
    8375
    84 variant with_postgresql91 conflicts with_postgresql83 with_postgresql84 with_postgresql90 with_postgresql92 \
     76variant postgresql91 conflicts postgresql83 postgresql84 postgresql90 postgresql92 \
    8577    description {support for PostgreSQL 9.1.x} {
    86         depends_lib-delete      port:postgresql92
    87         configure.args-delete   --with-pgsql=${prefix}/lib/postgresql92
    8878        depends_lib-append      port:postgresql91
    8979        configure.args-append   --with-pgsql=${prefix}/lib/postgresql91
    9080}
    9181
    92 variant with_postgresql92 conflicts with_postgresql83 with_postgresql84 with_postgresql90 with_postgresql91 \
     82variant postgresql92 conflicts postgresql83 postgresql84 postgresql90 postgresql91 \
    9383    description {support for PostgreSQL 9.2.x} {
    9484        depends_lib-append      port:postgresql92
    9585        configure.args-append   --with-pgsql=${prefix}/lib/postgresql92
    9686}
    9787
     88if {![variant_isset postgresql83] && ![variant_isset postgresql84] && ![variant_isset postgresql90] && ![variant_isset postgresql91] && ![variant_isset postgresql92]} {
     89    default_variants        +postgresql92
     90}
     91
    9892variant debug description {provide a debug build in case of difficulties} {
    9993    configure.args-append       --enable-debug
    10094}
    10195
     96variant with_postgresql83 requires postgresql83 description {Legacy compatibility variant} {}
     97variant with_postgresql84 requires postgresql84 description {Legacy compatibility variant} {}
     98variant with_postgresql90 requires postgresql90 description {Legacy compatibility variant} {}
     99variant with_postgresql91 requires postgresql91 description {Legacy compatibility variant} {}
     100variant with_postgresql92 requires postgresql92 description {Legacy compatibility variant} {}
     101
    102102livecheck.type  regex
    103103livecheck.url   ${homepage}
    104104livecheck.regex pgAdmin v(1\\.\[0-9\]+\\.\[0-9\]+)