Any reason not to combine rb-mysql & rb-mysql5?

Mark Duling mark.duling at biola.edu
Sat Sep 9 16:38:54 PDT 2006


Is there any reason not to have rb-mysql default to using MySQL5 and use a
MySQL4 variant (as shown below) and then nuke the rb-mysql5 port?

Mark

# $Id: Portfile,v 1.4 2005/01/25 22:00:36 rshaw Exp $
PortSystem              1.0
PortGroup               ruby 1.0

ruby.setup              {mysql mysql-ruby} 2.7.1 extconf.rb {README.html
README_ja.html}
maintainers             blair at orcaware.com roberto at freebsd.org
description             Ruby API for the Mysql4 database
long_description        This is the Ruby library for accessing Mysql \
                                        databases from within Ruby.  It
works with Mysql \
                                        4\; probably works with 3.23 or \
                                        earlier with slight modification,
but not tested at all.
categories-append       databases
homepage                http://www.tmtm.org/mysql/ruby/
master_sites            http://tmtm.org/downloads/mysql/ruby/
checksums               md5 f708ab4401bfa834514bab9528580e58
platforms               darwin

depends_lib             port:mysql5
configure.args          --with-mysql-include=${prefix}/include/mysql5 \
                        --with-mysql-lib=${prefix}/lib/mysql5/mysql

variant mysql4 {
depends_lib-delete      port:mysql5
configure.args-delete   --with-mysql-include=${prefix}/include/mysql5 \
                        --with-mysql-lib=${prefix}/lib/mysql5/mysql

depends_lib-append      port:mysql4
configure.args-append   --with-mysql-include=${prefix}/include/mysql \
                                               
--with-mysql-lib=${prefix}/lib/mysql
}




More information about the macports-dev mailing list