[55910] trunk/dports/python/py26-psycopg2/Portfile

snc at macports.org snc at macports.org
Fri Aug 21 04:27:37 PDT 2009


Revision: 55910
          http://trac.macports.org/changeset/55910
Author:   snc at macports.org
Date:     2009-08-21 04:27:32 -0700 (Fri, 21 Aug 2009)
Log Message:
-----------
added postgresql84 default variant, ticket #20746

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

Modified: trunk/dports/python/py26-psycopg2/Portfile
===================================================================
--- trunk/dports/python/py26-psycopg2/Portfile	2009-08-21 07:53:23 UTC (rev 55909)
+++ trunk/dports/python/py26-psycopg2/Portfile	2009-08-21 11:27:32 UTC (rev 55910)
@@ -7,6 +7,7 @@
 name                py26-psycopg2
 version             2.0.12
 categories-append   databases
+#license             GPLv2+
 maintainers         snc openmaintainer
 description         A python DBAPI-2.0 ompliant database adapter for postgresql
 long_description    Psycopg2 is a postgresql database adapter for python. \
@@ -28,13 +29,13 @@
 patchfiles          patch-setup.cfg.diff
 
 
-if {![variant_isset postgresql82] && ![variant_isset postgresql83]} {
-    default_variants    +postgresql83
+if {![variant_isset postgresql82] && ![variant_isset postgresql83] && ![variant_isset postgresql84]} {
+    default_variants    +postgresql84
 }
 
-variant postgresql82 conflicts postgresql83 description "Build using postgresql v8.2" {
+variant postgresql82 conflicts postgresql83 postgresql84 description "Build using postgresql v8.2" {
     depends_lib-append  port:postgresql82
-    
+
     post-patch {
         reinplace \
             s|@PG_CONFIG@|${prefix}/lib/postgresql82/bin/pg_config|g \
@@ -42,9 +43,9 @@
     }
 }
 
-variant postgresql83 conflicts postgresql82 description "Build using postgresql v8.3" {
+variant postgresql83 conflicts postgresql82 postgresql84 description "Build using postgresql v8.3" {
     depends_lib-append port:postgresql83
-    
+
     post-patch {
         reinplace \
             s|@PG_CONFIG@|${prefix}/lib/postgresql83/bin/pg_config|g \
@@ -52,5 +53,15 @@
     }
 }
 
+variant postgresql84 conflicts postgresql82 postgresql83 description "Build using postgresql v8.4" {
+    depends_lib-append port:postgresql84
+
+    post-patch {
+        reinplace \
+            s|@PG_CONFIG@|${prefix}/lib/postgresql84/bin/pg_config|g \
+            ${worksrcpath}/setup.cfg
+    }
+}
+
 livecheck.url       ${master_sites}
 livecheck.regex     "psycopg2-(\\d+\\.\\d+(\\.\\d+)?)"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090821/b3f4b868/attachment.html>


More information about the macports-changes mailing list