source: trunk/dports/ruby/rb-dbd-mysql/Portfile @ 50984

Last change on this file since 50984 was 50984, checked in by and.damore@…, 10 years ago

Maintainer email change, second batch, mail without @macports.org domain are put in domain:user form.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $
2PortSystem              1.0
3#PortGroup              ruby 1.0
4
5name                    rb-dbd-mysql
6version                 0.0.23
7#ruby.setup             {dbd-mysql ruby-dbi-all} 0.0.23 setup.rb \
8#                               {README doc/DBD_SPEC doc/html/DBD_SPEC.html} \
9#                               rubyforge:655:ruby-dbi
10revision                3
11maintainers             freebsd.org:roberto
12description             Ruby DBI driver for Mysql. OBSOLETE: please use dbd_mysql variant of rb-dbi
13long_description        ${description}
14categories-append       databases
15checksums               md5 7a713494d84bd4f5b877496970bcf13c
16platforms               darwin
17
18#worksrcdir             ${ruby.filename}
19
20#depends_lib-append             port:rb-dbi port:rb-mysql
21
22#configure.args-append  --with=dbd_mysql
23
24use_configure   no
25
26fetch {}
27checksum {}
28extract {}
29build {}
30destroot {}
31install {
32        catch "exec port echo installed" output
33        set rb_dbi_index [lsearch ${output} rb-dbi]
34        set rb_dbi_version_compound [expr ${rb_dbi_index} + 1]
35        set is_installed [lsearch $output ${name}]
36        ui_msg "######################################################################"
37        ui_msg "# The ${name} port has been made obsolete by the dbd_mysql variant of\
38                \n# the rb-dbi port.  This revision of ${name} will uninstall any current\
39                \n# installation of ${name} and advise you of what you need to do to replace\
40                \n# its functionality."
41        ui_msg "######################################################################"
42        if {${is_installed} >= 0} {
43                ui_msg "# As you currently have ${name} installed, MacPorts will now uninstall it."
44                system "port uninstall ${name}"
45                ui_msg "${name} is now uninstalled."
46                ui_msg "######################################################################"
47        }
48        if {${rb_dbi_index} >= 0} {
49                if {[string match @*+dbd_mysql* [lindex $output $rb_dbi_version_compound]]} {
50                        ui_msg "# As rb-dbi is already installed with the dbd_mysql variant,\
51                                \n# you do not need to do anything else."
52                ui_msg "######################################################################"
53                } else {
54                        ui_msg "# You will now need to manually uninstall rb-dbi and reinstall it\
55                                \n# with the +dbd_mysql variant added."
56                ui_msg "######################################################################"
57                }
58        } else {
59                ui_msg "# You will now need to manually install rb-dbi with the dbd_mysql\
60                        \n# variant added."
61                ui_msg "######################################################################"
62        }
63}
64activate {}
Note: See TracBrowser for help on using the repository browser.