a project to simplify installation of open source software
on Mac OS X and Darwin
# $Id: Portfile 22672 2007-03-10 06:09:24Z markd@macports.org $
PortSystem 1.0
PortGroup ruby 1.0
revision 1
ruby.setup {mysql mysql-ruby} 2.7.1 extconf.rb {README.html README_ja.html}
maintainers roberto@freebsd.org blair@orcaware.com
description Ruby API for the Mysql database
long_description This is the Ruby library for accessing Mysql \
databases from within Ruby. It works with Mysql 4 or 5.
categories-append databases
homepage http://www.tmtm.org/mysql/ruby/
master_sites http://tmtm.org/downloads/mysql/ruby/
checksums md5 f708ab4401bfa834514bab9528580e58
platforms darwin
patchfiles patch-mysql.c.in
depends_lib port:mysql5
configure.args --with-mysql-include=${prefix}/include/mysql5/mysql \
--with-mysql-lib=${prefix}/lib/mysql5/mysql
variant mysql4 {
depends_lib-delete port:mysql5
configure.args-delete --with-mysql-include=${prefix}/include/mysql5/mysql \
--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
}