PortSystem              1.0
PortGroup               ruby 1.0

ruby.setup              {odbc ruby-odbc} 0.99998 extconf.rb {README doc test}
maintainers             nomaintainer
description             An extension library for ODBC from ruby.
long_description        Extension library to use ODBC data sources from Ruby. \
                        Supports Ruby 1.6.x and 1.8 on Win32 OSes and UN*X
homepage                http://www.ch-werner.de/rubyodbc
master_sites            http://www.ch-werner.de/rubyodbc
categories-append       databases
license                 {Ruby GPL-2}
platforms               darwin
depends_lib-append      port:libiodbc

checksums               md5 9114b037077c76a028463a180c251be9 \
                        sha256 c6e61a32793239121dbcac84c4c11b5a5b4d8d70d7d54bfc640d053ee8f4a717

configure.pre_args-append   -Cext
build.pre_args-append       -Cext
destroot.pre_args-append    -Cext
variant utf8 {
    configure.pre_args-delete   -Cext
    build.pre_args-delete       -Cext
    destroot.pre_args-delete    -Cext
    configure.pre_args-append   -Cext/utf8
    build.pre_args-append       -Cext/utf8
    destroot.pre_args-append    -Cext/utf8
}
