source: trunk/dports/ruby/rb-postgres/Portfile

Last change on this file was 105119, checked in by jmr@…, 4 years ago

rb-postgres: license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1# $Id: Portfile 105119 2013-04-11 03:15:29Z 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
13license                 {Ruby GPL-2}
14homepage                http://ruby.scripting.ca/postgres/
15master_sites    ${homepage}/archive/
16checksums               md5 8ef67b3f4b089248f0420baeb0e3b3c8
17platforms               darwin
18
19if {![variant_isset postgresql83] && ![variant_isset postgresql82] &&
20    ![variant_isset postgresql81] && ![variant_isset postgresql80]} {
21    default_variants    +postgresql83
22}
23
24variant postgresql83 conflicts postgresql80 postgresql81 postgresql82 \
25                        description {Use PostgreSQL version 8.3} {
26        depends_lib-append      port:postgresql83
27        configure.args-append   --with-pgsql-include-dir=${prefix}/include/postgresql83 \
28                                --with-pgsql-lib-dir=${prefix}/lib/postgresql83
29        configure.env \
30                POSTGRES_LIB="${prefix}/lib/postgresql83 -L${prefix}/lib -lssl -lcrypto" \
31                POSTGRES_INCLUDE="${prefix}/include/postgresql83 -I${prefix}/include"
32}
33
34variant postgresql82 conflicts postgresql80 postgresql81 postgresql83 \
35                        description {Use PostgreSQL version 8.2} {
36        depends_lib-append      port:postgresql82
37        configure.args-append   --with-pgsql-include-dir=${prefix}/include/postgresql82 \
38                                --with-pgsql-lib-dir=${prefix}/lib/postgresql82
39        configure.env \
40                POSTGRES_LIB="${prefix}/lib/postgresql82 -L${prefix}/lib -lssl -lcrypto" \
41                POSTGRES_INCLUDE="${prefix}/include/postgresql82 -I${prefix}/include"
42}
43
44variant postgresql81 conflicts postgresql80 postgresql82 postgresql83 \
45                        description {Use PostgreSQL version 8.1} {
46        depends_lib-append      port:postgresql81
47        configure.args-append   --with-pgsql-include-dir=${prefix}/include/postgresql81 \
48                                --with-pgsql-lib-dir=${prefix}/lib/postgresql81
49        configure.env \
50                POSTGRES_LIB="${prefix}/lib/postgresql81 -L${prefix}/lib -lssl -lcrypto" \
51                POSTGRES_INCLUDE="${prefix}/include/postgresql81 -I${prefix}/include"
52}
53
54variant postgresql80 conflicts postgresql81 postgresql82 postgresql83 \
55                        description {Use PostgreSQL version 8.0} {
56        depends_lib-append      port:postgresql80
57        configure.args-append   --with-pgsql-include-dir=${prefix}/include/postgresql80 \
58                                --with-pgsql-lib-dir=${prefix}/lib/postgresql80
59        configure.env \
60                POSTGRES_LIB="${prefix}/lib/postgresql80 -L${prefix}/lib -lssl -lcrypto" \
61                POSTGRES_INCLUDE="${prefix}/include/postgresql80 -I${prefix}/include"
62}
Note: See TracBrowser for help on using the repository browser.