[58427] trunk/dports/python/py25-psycopg2/Portfile

snc at macports.org snc at macports.org
Mon Sep 28 10:08:16 PDT 2009


Revision: 58427
          http://trac.macports.org/changeset/58427
Author:   snc at macports.org
Date:     2009-09-28 10:08:12 -0700 (Mon, 28 Sep 2009)
Log Message:
-----------
updated version, added postgresql84 and default variants, ticket #21348. take openmaintainer.

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

Modified: trunk/dports/python/py25-psycopg2/Portfile
===================================================================
--- trunk/dports/python/py25-psycopg2/Portfile	2009-09-28 16:58:12 UTC (rev 58426)
+++ trunk/dports/python/py25-psycopg2/Portfile	2009-09-28 17:08:12 UTC (rev 58427)
@@ -1,3 +1,4 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
 # $Id$
 
 PortSystem 1.0
@@ -4,9 +5,9 @@
 PortGroup python25 1.0
 
 name			py25-psycopg2
-version			2.0.9
+version			2.0.12
 categories		python databases
-maintainers		nomaintainer
+maintainers		snc openmaintainer
 platforms		darwin freebsd
 description		A python DBAPI-2.0 ompliant database adapter for postgresql
 long_description	Psycopg2 is a postgresql database adapter for python. \
@@ -18,16 +19,19 @@
 master_sites		http://initd.org/pub/software/psycopg/ \
 			http://initd.org/pub/software/psycopg/PSYCOPG-2-0/
 distname		psycopg2-${version}
-checksums           md5     885e5bd372afafd14cfd914b000462e7 \
-                    sha1    d6aca4b96b69207a795934623de60e9c9ce32378 \
-                    rmd160  3194fbae1c69a3734e4db91e21db4b688de1d630
+checksums           md5     5c8080d0d0568479f041bb8534caf1f8 \
+                    sha1    a5649fced3ffc9968b21421023239f95a3a21ad3 \
+                    rmd160  eff28c1ab131ee55b42e0c129df88cebd79f38fd
 
 depends_lib-append	port:openssl
 
 patchfiles		patch-setup.cfg
 
+if {![variant_isset postgresql82] && ![variant_isset postgresql83] && ![variant_isset postgresql84]} {
+    default_variants +postgresql84
+}
 
-variant postgresql82 description "Build using postgresql v8.2" {
+variant postgresql82 conflicts postgresql83 postgresql84 description "Build using postgresql v8.2" {
         depends_lib-append      port:postgresql82
 
         post-patch              {
@@ -38,7 +42,7 @@
 
 }
 
-variant postgresql83 description "Build using postgresql v8.3" {
+variant postgresql83 conflicts postgresql82 postgresql84 description "Build using postgresql v8.3" {
 	depends_lib-append	port:postgresql83
 
 	post-patch              {
@@ -54,3 +58,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/20090928/fac01c75/attachment.html>


More information about the macports-changes mailing list