1 | # $Id: Portfile 28620 2007-09-05 09:07:23Z ryandesign@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup ruby 1.0 |
---|
5 | |
---|
6 | ruby.setup {postgres ruby-postgres} 0.7.1 extconf.rb {README doc sample} |
---|
7 | revision 5 |
---|
8 | maintainers nomaintainer |
---|
9 | description Ruby API for the PostgreSQL database |
---|
10 | long_description This is the Ruby library for accessing PostgreSQL \ |
---|
11 | databases from within Ruby. It works with PostgreSQL 8.0. |
---|
12 | categories-append databases |
---|
13 | homepage http://ruby.scripting.ca/postgres/ |
---|
14 | master_sites ${homepage}/archive/ |
---|
15 | checksums md5 8ef67b3f4b089248f0420baeb0e3b3c8 |
---|
16 | platforms darwin |
---|
17 | |
---|
18 | default_variants +postgresql83 |
---|
19 | |
---|
20 | variant postgresql83 conflicts postgresql80 postgresql81 postgresql82 \ |
---|
21 | description {Use PostgreSQL version 8.3} { |
---|
22 | depends_lib-append port:postgresql83 |
---|
23 | configure.args-append --with-pgsql-include-dir=${prefix}/include/postgresql83 \ |
---|
24 | --with-pgsql-lib-dir=${prefix}/lib/postgresql83 |
---|
25 | configure.env \ |
---|
26 | POSTGRES_LIB="${prefix}/lib/postgresql83 -L${prefix}/lib -lssl -lcrypto" \ |
---|
27 | POSTGRES_INCLUDE="${prefix}/include/postgresql83 -I${prefix}/include" |
---|
28 | } |
---|
29 | |
---|
30 | variant postgresql82 conflicts postgresql80 postgresql81 postgresql83 \ |
---|
31 | description {Use PostgreSQL version 8.2} { |
---|
32 | depends_lib-append port:postgresql82 |
---|
33 | configure.args-append --with-pgsql-include-dir=${prefix}/include/postgresql82 \ |
---|
34 | --with-pgsql-lib-dir=${prefix}/lib/postgresql82 |
---|
35 | configure.env \ |
---|
36 | POSTGRES_LIB="${prefix}/lib/postgresql82 -L${prefix}/lib -lssl -lcrypto" \ |
---|
37 | POSTGRES_INCLUDE="${prefix}/include/postgresql82 -I${prefix}/include" |
---|
38 | } |
---|
39 | |
---|
40 | variant postgresql81 conflicts postgresql80 postgresql82 postgresql83 \ |
---|
41 | description {Use PostgreSQL version 8.1} { |
---|
42 | depends_lib-append port:postgresql81 |
---|
43 | configure.args-append --with-pgsql-include-dir=${prefix}/include/postgresql81 \ |
---|
44 | --with-pgsql-lib-dir=${prefix}/lib/postgresql81 |
---|
45 | configure.env \ |
---|
46 | POSTGRES_LIB="${prefix}/lib/postgresql81 -L${prefix}/lib -lssl -lcrypto" \ |
---|
47 | POSTGRES_INCLUDE="${prefix}/include/postgresql81 -I${prefix}/include" |
---|
48 | } |
---|
49 | |
---|
50 | variant postgresql80 conflicts postgresql81 postgresql82 postgresql83 \ |
---|
51 | description {Use PostgreSQL version 8.0} { |
---|
52 | depends_lib-append port:postgresql80 |
---|
53 | configure.args-append --with-pgsql-include-dir=${prefix}/include/postgresql80 \ |
---|
54 | --with-pgsql-lib-dir=${prefix}/lib/postgresql80 |
---|
55 | configure.env \ |
---|
56 | POSTGRES_LIB="${prefix}/lib/postgresql80 -L${prefix}/lib -lssl -lcrypto" \ |
---|
57 | POSTGRES_INCLUDE="${prefix}/include/postgresql80 -I${prefix}/include" |
---|
58 | } |
---|