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

snc at macports.org snc at macports.org
Tue Oct 9 10:10:08 PDT 2012


Revision: 98601
          http://trac.macports.org//changeset/98601
Author:   snc at macports.org
Date:     2012-10-09 10:10:08 -0700 (Tue, 09 Oct 2012)
Log Message:
-----------
py-psycopg2: add and default +postgresql92

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

Modified: trunk/dports/python/py-psycopg2/Portfile
===================================================================
--- trunk/dports/python/py-psycopg2/Portfile	2012-10-09 17:07:24 UTC (rev 98600)
+++ trunk/dports/python/py-psycopg2/Portfile	2012-10-09 17:10:08 UTC (rev 98601)
@@ -59,6 +59,12 @@
                 s|@PG_CONFIG@|${prefix}/lib/postgresql91/bin/pg_config|g \
                 ${worksrcpath}/setup.cfg
         }
+
+        if {[variant_isset postgresql92]} {
+            reinplace \
+                s|@PG_CONFIG@|${prefix}/lib/postgresql92/bin/pg_config|g \
+                ${worksrcpath}/setup.cfg
+        }
     }
 
     livecheck.type      none
@@ -68,22 +74,26 @@
 }
 
 
-if {![variant_isset postgresql83] && ![variant_isset postgresql84] && ![variant_isset postgresql90] && ![variant_isset postgresql91]} {
-    default_variants    +postgresql90
+if {![variant_isset postgresql83] && ![variant_isset postgresql84] && ![variant_isset postgresql90] && ![variant_isset postgresql91] && ![variant_isset postgresql92]} {
+    default_variants    +postgresql92
 }
 
-variant postgresql83 conflicts postgresql84 postgresql90 postgresql91 description "Build using postgresql v8.3" {
+variant postgresql83 conflicts postgresql84 postgresql90 postgresql91 postgresql92 description "Build using postgresql v8.3" {
     depends_lib-append  port:postgresql83
 }
 
-variant postgresql84 conflicts postgresql83 postgresql90 postgresql91 description "Build using postgresql v8.4" {
+variant postgresql84 conflicts postgresql83 postgresql90 postgresql91 postgresql92 description "Build using postgresql v8.4" {
     depends_lib-append  port:postgresql84
 }
 
-variant postgresql90 conflicts postgresql83 postgresql84 postgresql91 description "Build using postgresql v9.0" {
+variant postgresql90 conflicts postgresql83 postgresql84 postgresql91 postgresql92 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
 }
+
+variant postgresql92 conflicts postgresql83 postgresql84 postgresql90 postgresql91 description "Build using postgresql v9.2" {
+    depends_lib-append  port:postgresql92
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121009/c8f95619/attachment.html>


More information about the macports-changes mailing list