[46890] trunk/dports/ruby/rb-postgres/Portfile
jmr at macports.org
jmr at macports.org
Mon Feb 16 14:30:29 PST 2009
Revision: 46890
http://trac.macports.org/changeset/46890
Author: jmr at macports.org
Date: 2009-02-16 14:30:29 -0800 (Mon, 16 Feb 2009)
Log Message:
-----------
rb-postgres: add variants to allow use of different postgres versions (#12703), remove explicit reference to distfiles mirror
Modified Paths:
--------------
trunk/dports/ruby/rb-postgres/Portfile
Modified: trunk/dports/ruby/rb-postgres/Portfile
===================================================================
--- trunk/dports/ruby/rb-postgres/Portfile 2009-02-16 21:52:29 UTC (rev 46889)
+++ trunk/dports/ruby/rb-postgres/Portfile 2009-02-16 22:30:29 UTC (rev 46890)
@@ -11,15 +11,51 @@
databases from within Ruby. It works with PostgreSQL 8.0.
categories-append databases
homepage http://ruby.scripting.ca/postgres/
-master_sites ${homepage}/archive/ \
- http://distfiles.macports.org/ruby/
+master_sites ${homepage}/archive/
checksums md5 8ef67b3f4b089248f0420baeb0e3b3c8
platforms darwin
-depends_lib-append port:postgresql81
+if {![variant_isset postgresql83] && ![variant_isset postgresql82] && \
+ ![variant_isset postgresql81] && ![variant_isset postgresql80] &&} {
+ default_variants +postgresql83
+}
-configure.args-append --with-pgsql-include-dir=${prefix}/include/postgresql81 \
- --with-pgsql-lib-dir=${prefix}/lib/postgresql81
-configure.env \
- POSTGRES_LIB="${prefix}/lib/postgresql81 -L${prefix}/lib -lssl -lcrypto" \
- POSTGRES_INCLUDE="${prefix}/include/postgresql81 -I${prefix}/include"
+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
+ configure.env \
+ 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
+ configure.env \
+ 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
+ configure.env \
+ 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
+ configure.env \
+ POSTGRES_LIB="${prefix}/lib/postgresql80 -L${prefix}/lib -lssl -lcrypto" \
+ POSTGRES_INCLUDE="${prefix}/include/postgresql80 -I${prefix}/include"
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090216/d4992c32/attachment-0001.html>
More information about the macports-changes
mailing list