Changeset 71739


Ignore:
Timestamp:
Sep 21, 2010, 7:55:17 PM (10 years ago)
Author:
narf_tm@…
Message:

p5-dbd-pg: added postgresql90 and postgresql91 variants and made postgresql90 the new default

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/perl/p5-dbd-pg/Portfile

    r66997 r71739  
    1717                      rmd160 33150577792c59e214971dbb7e751798de60498e
    1818
    19 depends_lib-append    port:postgresql84 \
    20                       port:p5-dbi \
     19depends_lib-append    port:p5-dbi \
    2120                      port:p5-version \
    2221                      port:p5-module-signature \
     
    2423                      port:p5-test-warn
    2524
    26 configure.env         PATH=${prefix}/lib/postgresql84/bin:$env(PATH) \
    27                       POSTGRES_INCLUDE="${prefix}/include/postgresql84" \
    28                       POSTGRES_LIB="${prefix}/lib/postgresql84 -lssl"
    29 
    30 variant postgresql7 conflicts postgresql80 postgresql81 postgresql82 postgresql83 description {build with postgresql7 port} {
    31     depends_lib-delete      port:postgresql84
     25variant postgresql7 conflicts postgresql80 postgresql81 postgresql82 postgresql83 postgresql84 postgresql90 postgresql91 description {build with postgresql7 port} {
    3226    depends_lib-append      port:postgresql7
    3327
    34     configure.env-delete    PATH=${prefix}/lib/postgresql84/bin:$env(PATH) \
    35                             POSTGRES_INCLUDE="${prefix}/include/postgresql84" \
    36                             POSTGRES_LIB="${prefix}/lib/postgresql84 -lssl"
    37 
    38     configure.env-append    PATH=${prefix}/lib/pgsql7/bin:$env(PATH) \
     28    configure.env           PATH=${prefix}/lib/pgsql7/bin:$env(PATH) \
    3929                            POSTGRES_INCLUDE="${prefix}/include/pgsql7" \
    4030                            POSTGRES_LIB="${prefix}/lib/pgsql7 -lssl"
    4131}
    4232
    43 variant postgresql80 conflicts postgresql7 postgresql81 postgresql82 postgresql83 description {build with postgresql80 port} {
    44     depends_lib-delete      port:postgresql84
     33variant postgresql80 conflicts postgresql7 postgresql81 postgresql82 postgresql83 postgresql84 postgresql90 postgresql91 description {build with postgresql80 port} {
    4534    depends_lib-append      port:postgresql80
    4635
    47     configure.env-delete    PATH=${prefix}/lib/postgresql84/bin:$env(PATH) \
    48                             POSTGRES_INCLUDE="${prefix}/include/postgresql84" \
    49                             POSTGRES_LIB="${prefix}/lib/postgresql84 -lssl"
    50 
    51     configure.env-append    PATH=${prefix}/lib/pgsql8/bin:$env(PATH) \
     36    configure.env           PATH=${prefix}/lib/pgsql8/bin:$env(PATH) \
    5237                            POSTGRES_INCLUDE="${prefix}/include/pgsql8" \
    5338                            POSTGRES_LIB="${prefix}/lib/pgsql8 -lssl"
    5439}
    5540
    56 variant postgresql81 conflicts postgresql7 postgresql80 postgresql82 postgresql83 description {build with postgresql81 port} {
    57     depends_lib-delete      port:postgresql84
     41variant postgresql81 conflicts postgresql7 postgresql80 postgresql82 postgresql83 postgresql84 postgresql90 postgresql91 description {build with postgresql81 port} {
    5842    depends_lib-append      port:postgresql81
    5943
    60     configure.env-delete    PATH=${prefix}/lib/postgresql84/bin:$env(PATH) \
    61                             POSTGRES_INCLUDE="${prefix}/include/postgresql84" \
    62                             POSTGRES_LIB="${prefix}/lib/postgresql84 -lssl"
    63 
    64     configure.env-append    PATH=${prefix}/lib/postgresql81/bin:$env(PATH) \
     44    configure.env           PATH=${prefix}/lib/postgresql81/bin:$env(PATH) \
    6545                            POSTGRES_INCLUDE="${prefix}/include/postgresql81" \
    6646                            POSTGRES_LIB="${prefix}/lib/postgresql81 -lssl"
    6747}
    6848
    69 variant postgresql82 conflicts postgresql7 postgresql80 postgresql81 postgresql83 description {build with postgresql82 port} {
    70     depends_lib-delete      port:postgresql84
     49variant postgresql82 conflicts postgresql7 postgresql80 postgresql81 postgresql83 postgresql84 postgresql90 postgresql91 description {build with postgresql82 port} {
    7150    depends_lib-append      port:postgresql82
    7251
    73     configure.env-delete    PATH=${prefix}/lib/postgresql84/bin:$env(PATH) \
    74                             POSTGRES_INCLUDE="${prefix}/include/postgresql84" \
    75                             POSTGRES_LIB="${prefix}/lib/postgresql84 -lssl"
    76 
    77     configure.env-append    PATH=${prefix}/lib/postgresql82/bin:$env(PATH) \
     52    configure.env           PATH=${prefix}/lib/postgresql82/bin:$env(PATH) \
    7853                            POSTGRES_INCLUDE="${prefix}/include/postgresql82" \
    7954                            POSTGRES_LIB="${prefix}/lib/postgresql82 -lssl"
    8055}
    8156
    82 variant postgresql83 conflicts postgresql7 postgresql80 postgresql81 postgresql82 description {build with postgresql83 port} {
    83     depends_lib-delete      port:postgresql84
     57variant postgresql83 conflicts postgresql7 postgresql80 postgresql81 postgresql82 postgresql84 postgresql90 postgresql91 description {build with postgresql83 port} {
    8458    depends_lib-append      port:postgresql83
    8559
    86     configure.env-delete    PATH=${prefix}/lib/postgresql84/bin:$env(PATH) \
    87                             POSTGRES_INCLUDE="${prefix}/include/postgresql84" \
    88                             POSTGRES_LIB="${prefix}/lib/postgresql84 -lssl"
    89 
    90     configure.env-append    PATH=${prefix}/lib/postgresql83/bin:$env(PATH) \
     60    configure.env           PATH=${prefix}/lib/postgresql83/bin:$env(PATH) \
    9161                            POSTGRES_INCLUDE="${prefix}/include/postgresql83" \
    9262                            POSTGRES_LIB="${prefix}/lib/postgresql83 -lssl"
    9363}
     64
     65variant postgresql84 conflicts postgresql7 postgresql80 postgresql81 postgresql82 postgresql83 postgresql90 postgresql91 description {build with postgresql84 port} {
     66    depends_lib-append      port:postgresql84
     67
     68    configure.env           PATH=${prefix}/lib/postgresql84/bin:$env(PATH) \
     69                            POSTGRES_INCLUDE="${prefix}/include/postgresql84" \
     70                            POSTGRES_LIB="${prefix}/lib/postgresql84 -lssl"
     71}
     72
     73variant postgresql90 conflicts postgresql7 postgresql80 postgresql81 postgresql82 postgresql83 postgresql84 postgresql91 description {build with postgresql90 port} {
     74    depends_lib-append      port:postgresql90
     75
     76    configure.env           PATH=${prefix}/lib/postgresql90/bin:$env(PATH) \
     77                            POSTGRES_INCLUDE="${prefix}/include/postgresql90" \
     78                            POSTGRES_LIB="${prefix}/lib/postgresql90 -lssl"
     79}
     80
     81variant postgresql91 conflicts postgresql7 postgresql80 postgresql81 postgresql82 postgresql83 postgresql84 postgresql90 description {build with postgresql91 port} {
     82    depends_lib-append      port:postgresql91
     83
     84    configure.env           PATH=${prefix}/lib/postgresql91/bin:$env(PATH) \
     85                            POSTGRES_INCLUDE="${prefix}/include/postgresql91" \
     86                            POSTGRES_LIB="${prefix}/lib/postgresql91 -lssl"
     87}
     88
     89# Default to latest release
     90if {![variant_isset postgresql7] && ![variant_isset postgresql80] && ![variant_isset postgresql81] && ![variant_isset postgresql82] && ![variant_isset postgresql83] && ![variant_isset postgresql84] && ![variant_isset postgresql91]} {
     91    default_variants        +postgresql90
     92}
Note: See TracChangeset for help on using the changeset viewer.