ruby.setup {postgres ruby-postgres} 0.7.1 extconf.rb {README doc sample}
description Ruby API for the PostgreSQL database
long_description This is the Ruby library for accessing PostgreSQL \
databases from within Ruby. It works with PostgreSQL 8.0.
categories-append databases
homepage http://ruby.scripting.ca/postgres/
master_sites ${homepage}/archive/
checksums md5 8ef67b3f4b089248f0420baeb0e3b3c8
if {![variant_isset postgresql83] && ![variant_isset postgresql82] &&
![variant_isset postgresql81] && ![variant_isset postgresql80]} {
default_variants +postgresql83
variant postgresql83 conflicts postgresql80 postgresql81 postgresql82 \
description {Use PostgreSQL version 8.3} {
depends_lib-append port:postgresql83
configure.args-append --with-pgsql-include-dir=${prefix}/include/postgresql83 \
--with-pgsql-lib-dir=${prefix}/lib/postgresql83
"POSTGRES_LIB=${prefix}/lib/postgresql83 -L${prefix}/lib -lssl -lcrypto" \
"POSTGRES_INCLUDE=${prefix}/include/postgresql83 -I${prefix}/include"
variant postgresql82 conflicts postgresql80 postgresql81 postgresql83 \
description {Use PostgreSQL version 8.2} {
depends_lib-append port:postgresql82
configure.args-append --with-pgsql-include-dir=${prefix}/include/postgresql82 \
--with-pgsql-lib-dir=${prefix}/lib/postgresql82
"POSTGRES_LIB=${prefix}/lib/postgresql82 -L${prefix}/lib -lssl -lcrypto" \
"POSTGRES_INCLUDE=${prefix}/include/postgresql82 -I${prefix}/include"
variant postgresql81 conflicts postgresql80 postgresql82 postgresql83 \
description {Use PostgreSQL version 8.1} {
depends_lib-append port:postgresql81
configure.args-append --with-pgsql-include-dir=${prefix}/include/postgresql81 \
--with-pgsql-lib-dir=${prefix}/lib/postgresql81
"POSTGRES_LIB=${prefix}/lib/postgresql81 -L${prefix}/lib -lssl -lcrypto" \
"POSTGRES_INCLUDE=${prefix}/include/postgresql81 -I${prefix}/include"
variant postgresql80 conflicts postgresql81 postgresql82 postgresql83 \
description {Use PostgreSQL version 8.0} {
depends_lib-append port:postgresql80
configure.args-append --with-pgsql-include-dir=${prefix}/include/postgresql80 \
--with-pgsql-lib-dir=${prefix}/lib/postgresql80
"POSTGRES_LIB=${prefix}/lib/postgresql80 -L${prefix}/lib -lssl -lcrypto" \
"POSTGRES_INCLUDE=${prefix}/include/postgresql80 -I${prefix}/include"