[112160] trunk/dports/gis/gdal/Portfile
stromnov at macports.org
stromnov at macports.org
Mon Oct 14 04:11:15 PDT 2013
Revision: 112160
https://trac.macports.org/changeset/112160
Author: stromnov at macports.org
Date: 2013-10-14 04:11:15 -0700 (Mon, 14 Oct 2013)
Log Message:
-----------
gdal: add conflicts to postgresqlXX variants
Modified Paths:
--------------
trunk/dports/gis/gdal/Portfile
Modified: trunk/dports/gis/gdal/Portfile
===================================================================
--- trunk/dports/gis/gdal/Portfile 2013-10-14 04:55:04 UTC (rev 112159)
+++ trunk/dports/gis/gdal/Portfile 2013-10-14 11:11:15 UTC (rev 112160)
@@ -233,54 +233,27 @@
}
# Database variants
-variant postgresql81 description {Enable PostgreSQL 8.1 support} {
- depends_lib-append port:postgresql81
- configure.args-delete --without-pg
- configure.args-append --with-pg=${prefix}/lib/postgresql81/bin/pg_config
-}
+set postgresql_suffixes {81 82 83 84 90 91 92 93}
-variant postgresql82 description {Enable PostgreSQL 8.2 support} {
- depends_lib-append port:postgresql82
- configure.args-delete --without-pg
- configure.args-append --with-pg=${prefix}/lib/postgresql82/bin/pg_config
+set portsgresql_variants {}
+foreach s ${postgresql_suffixes} {
+ lappend portsgresql_variants postgresql${s}
}
-variant postgresql83 description {Enable PostgreSQL 8.3 support} {
- depends_lib-append port:postgresql83
- configure.args-delete --without-pg
- configure.args-append --with-pg=${prefix}/lib/postgresql83/bin/pg_config
+foreach s ${postgresql_suffixes} {
+ set p postgresql${s}
+ set v [string index ${s} 0].[string index ${s} 1]
+ set i [lsearch -exact ${portsgresql_variants} ${p}]
+ set c [lreplace ${portsgresql_variants} ${i} ${i}]
+ eval [subst {
+ variant ${p} description "Enable PostgreSQL ${v} support" conflicts ${c} {
+ depends_lib-append port:${p}
+ configure.args-delete --without-pg
+ configure.args-append --with-pg=${prefix}/lib/postgresql${s}/bin/pg_config
+ }
+ }]
}
-variant postgresql84 description {Enable PostgreSQL 8.4 support} {
- depends_lib-append port:postgresql84
- configure.args-delete --without-pg
- configure.args-append --with-pg=${prefix}/lib/postgresql84/bin/pg_config
-}
-
-variant postgresql90 description {Enable PostgreSQL 9.0 support} {
- depends_lib-append port:postgresql90
- configure.args-delete --without-pg
- configure.args-append --with-pg=${prefix}/lib/postgresql90/bin/pg_config
-}
-
-variant postgresql91 description {Enable PostgreSQL 9.1 support} {
- depends_lib-append port:postgresql91
- configure.args-delete --without-pg
- configure.args-append --with-pg=${prefix}/lib/postgresql91/bin/pg_config
-}
-
-variant postgresql92 description {Enable PostgreSQL 9.2 support} {
- depends_lib-append port:postgresql92
- configure.args-delete --without-pg
- configure.args-append --with-pg=${prefix}/lib/postgresql92/bin/pg_config
-}
-
-variant postgresql93 description {Enable PostgreSQL 9.3 support} {
- depends_lib-append port:postgresql93
- configure.args-delete --without-pg
- configure.args-append --with-pg=${prefix}/lib/postgresql93/bin/pg_config
-}
-
variant mysql5 description {Enable MySQL 5 support} {
depends_lib-append path:bin/mysql_config5:mysql5
configure.args-delete --without-mysql
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131014/509084d6/attachment.html>
More information about the macports-changes
mailing list