[89780] trunk/dports/python/py-psycopg2/Portfile

stromnov at macports.org stromnov at macports.org
Fri Feb 10 03:39:32 PST 2012


Revision: 89780
          http://trac.macports.org/changeset/89780
Author:   stromnov at macports.org
Date:     2012-02-10 03:39:30 -0800 (Fri, 10 Feb 2012)
Log Message:
-----------
py-psycopg2: add postgresql91 variant

Modified Paths:
--------------
    trunk/dports/python/py-psycopg2/Portfile

Modified: trunk/dports/python/py-psycopg2/Portfile
===================================================================
--- trunk/dports/python/py-psycopg2/Portfile	2012-02-10 11:05:43 UTC (rev 89779)
+++ trunk/dports/python/py-psycopg2/Portfile	2012-02-10 11:39:30 UTC (rev 89780)
@@ -54,6 +54,12 @@
                 s|@PG_CONFIG@|${prefix}/lib/postgresql90/bin/pg_config|g \
                 ${worksrcpath}/setup.cfg
         }
+
+        if {[variant_isset postgresql91]} {
+            reinplace \
+                s|@PG_CONFIG@|${prefix}/lib/postgresql91/bin/pg_config|g \
+                ${worksrcpath}/setup.cfg
+        }
     }
 
     livecheck.type      none
@@ -63,18 +69,22 @@
 }
 
 
-if {![variant_isset postgresql83] && ![variant_isset postgresql84] && ![variant_isset postgresql90]} {
+if {![variant_isset postgresql83] && ![variant_isset postgresql84] && ![variant_isset postgresql90] && ![variant_isset postgresql91]} {
     default_variants    +postgresql90
 }
 
-variant postgresql83 conflicts postgresql84 postgresql90 description "Build using postgresql v8.3" {
-    depends_lib-append port:postgresql83
+variant postgresql83 conflicts postgresql84 postgresql90 postgresql91 description "Build using postgresql v8.3" {
+    depends_lib-append  port:postgresql83
 }
 
-variant postgresql84 conflicts postgresql83 postgresql90 description "Build using postgresql v8.4" {
-    depends_lib-append port:postgresql84
+variant postgresql84 conflicts postgresql83 postgresql90 postgresql91 description "Build using postgresql v8.4" {
+    depends_lib-append  port:postgresql84
 }
 
-variant postgresql90 conflicts postgresql83 postgresql84 description "Build using postgresql v9.0" {
-    depends_lib-append port:postgresql90
+variant postgresql90 conflicts postgresql83 postgresql84 postgresql91 description "Build using postgresql v9.0" {
+    depends_lib-append  port:postgresql90
 }
+
+variant postgresql91 conflicts postgresql83 postgresql84 postgresql90 description "Build using postgresql v9.1" {
+    depends_lib-append  port:postgresql91
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120210/6f056667/attachment.html>


More information about the macports-changes mailing list