# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $ PortSystem 1.0 #PortGroup ruby 1.0 name rb-dbd-mysql version 0.0.23 #ruby.setup {dbd-mysql ruby-dbi-all} 0.0.23 setup.rb \ # {README doc/DBD_SPEC doc/html/DBD_SPEC.html} \ # rubyforge:655:ruby-dbi revision 3 maintainers freebsd.org:roberto description Ruby DBI driver for Mysql. OBSOLETE: please use dbd_mysql variant of rb-dbi long_description ${description} categories-append databases checksums md5 7a713494d84bd4f5b877496970bcf13c platforms darwin #worksrcdir ${ruby.filename} #depends_lib-append port:rb-dbi port:rb-mysql #configure.args-append --with=dbd_mysql use_configure no fetch {} checksum {} extract {} build {} destroot {} install { catch "exec port echo installed" output set rb_dbi_index [lsearch ${output} rb-dbi] set rb_dbi_version_compound [expr ${rb_dbi_index} + 1] set is_installed [lsearch $output ${name}] ui_msg "######################################################################" ui_msg "# The ${name} port has been made obsolete by the dbd_mysql variant of\ \n# the rb-dbi port. This revision of ${name} will uninstall any current\ \n# installation of ${name} and advise you of what you need to do to replace\ \n# its functionality." ui_msg "######################################################################" if {${is_installed} >= 0} { ui_msg "# As you currently have ${name} installed, MacPorts will now uninstall it." system "port uninstall ${name}" ui_msg "${name} is now uninstalled." ui_msg "######################################################################" } if {${rb_dbi_index} >= 0} { if {[string match @*+dbd_mysql* [lindex $output $rb_dbi_version_compound]]} { ui_msg "# As rb-dbi is already installed with the dbd_mysql variant,\ \n# you do not need to do anything else." ui_msg "######################################################################" } else { ui_msg "# You will now need to manually uninstall rb-dbi and reinstall it\ \n# with the +dbd_mysql variant added." ui_msg "######################################################################" } } else { ui_msg "# You will now need to manually install rb-dbi with the dbd_mysql\ \n# variant added." ui_msg "######################################################################" } } activate {}