New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Changeset 25233

Show
Ignore:
Timestamp:
05/15/07 23:48:05 (2 years ago)
Author:
boeyms@…
Message:

ruby/rb-dbi:

  • Add mysql, postgresql and odbc variants so that simultaneous support for multiple databases is possible (it is not with the current separate rb-dbd-mysql and rb-dbd-pg ports; these should now be obsoleted and eventually deleted, but I will need to think about how to get them to find out if both ports are installed so that the upgrade can occur automatically).
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/dports/ruby/rb-dbi/Portfile

    r20392 r25233  
    1717worksrcdir              ${ruby.filename} 
    1818 
    19 configure.args-append   --with=dbi 
     19# The conjuring with the dbi_conf_args variable to set configure.args is to cope 
     20# with the fact that setup.rb accepts a single "--with=<feature>,<feature>,..." 
     21# argument, with the last one overriding the rest.  We must therefore append to 
     22# the end of the string to get the desired variants, and for niceness we might 
     23# as well delete the obsoleted "--with" argument. 
    2024 
     25set dbi_conf_args               --with=dbi 
     26configure.args-append   ${dbi_conf_args} 
     27 
     28variant dbd_mysql { 
     29        depends_lib-append      port:rb-mysql 
     30        configure.args-delete   ${dbi_conf_args} 
     31        append dbi_conf_args    ,dbd_mysql 
     32        configure.args-append   ${dbi_conf_args} 
     33} 
     34 
     35variant dbd_odbc { 
     36        depends_lib-append      port:rb-odbc 
     37        configure.args-delete   ${dbi_conf_args} 
     38        append dbi_conf_args    ,dbd_odbc 
     39        configure.args-append   ${dbi_conf_args} 
     40} 
     41 
     42variant dbd_pg { 
     43        depends_lib-append      port:rb-postgres 
     44        configure.args-delete   ${dbi_conf_args} 
     45        append dbi_conf_args    ,dbd_pg 
     46        configure.args-append   ${dbi_conf_args} 
     47}