Ticket #12703: Portfile

File Portfile, 2.4 KB (added by jmroot (Joshua Root), 16 years ago)

new portfile with +postgresql8* variants

Line 
1# $Id: Portfile 28620 2007-09-05 09:07:23Z ryandesign@macports.org $
2
3PortSystem 1.0
4PortGroup ruby 1.0
5
6ruby.setup              {postgres ruby-postgres} 0.7.1 extconf.rb {README doc sample}
7revision                5
8maintainers             nomaintainer
9description             Ruby API for the PostgreSQL database
10long_description        This is the Ruby library for accessing PostgreSQL \
11                                        databases from within Ruby.  It works with PostgreSQL 8.0.
12categories-append       databases
13homepage                http://ruby.scripting.ca/postgres/
14master_sites    ${homepage}/archive/
15checksums               md5 8ef67b3f4b089248f0420baeb0e3b3c8
16platforms               darwin
17
18default_variants        +postgresql83
19
20variant 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
30variant 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
40variant 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
50variant 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}