[57814] trunk/dports/python/py26-pgsql/Portfile

blb at macports.org blb at macports.org
Wed Sep 16 21:08:32 PDT 2009


Revision: 57814
          http://trac.macports.org/changeset/57814
Author:   blb at macports.org
Date:     2009-09-16 21:08:22 -0700 (Wed, 16 Sep 2009)
Log Message:
-----------
python/py26-pgsql - select postgresql version with a variant

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

Modified: trunk/dports/python/py26-pgsql/Portfile
===================================================================
--- trunk/dports/python/py26-pgsql/Portfile	2009-09-17 03:47:40 UTC (rev 57813)
+++ trunk/dports/python/py26-pgsql/Portfile	2009-09-17 04:08:22 UTC (rev 57814)
@@ -6,7 +6,7 @@
 version             2.5.1
 categories-append   databases
 maintainers         blb openmaintainer
-description         python DB-API 2.0 compliant interface to postgresql (8.3)
+description         python DB-API 2.0 compliant interface to postgresql
 long_description \
    pyPgSQL is a package of two modules that provide a Python DB-API 2.0 \
    compliant interface to PostgreSQL databases. The first module, libpq, \
@@ -26,12 +26,8 @@
                     sha1    ae286d2b0b0e6896223430887dd244e9eeef705b \
                     rmd160  c41bc3d56e09cedc2022a6a80a620ca27dde8ca3
 
-depends_lib-append  port:postgresql83 port:py26-mx-base
+depends_lib-append  port:py26-mx-base
 
-build.env           PATH="${prefix}/lib/postgresql83/bin:$env(PATH)"
-
-destroot.env        ${build.env}
-
 post-destroot {
    xinstall -m 644 -W ${worksrcpath} Announce ChangeLog README README.html \
       ${destroot}${prefix}/share/doc/${name}
@@ -39,3 +35,22 @@
       demo2a.py demo2b.py ${destroot}${prefix}/share/doc/${name}/examples
 }
 
+variant postgresql83 conflicts postgresql84 description {Use with PostgreSQL 8.3} {
+   global build.env destroot.env
+   depends_lib-append   port:postgresql83
+   build.env            PATH="${prefix}/lib/postgresql83/bin:$env(PATH)"
+   destroot.env         ${build.env}
+}
+
+variant postgresql84 conflicts postgresql83 description {Use with PostgreSQL 8.4} {
+   global build.env destroot.env
+   depends_lib-append   port:postgresql84
+   build.env            PATH="${prefix}/lib/postgresql84/bin:$env(PATH)"
+   destroot.env         ${build.env}
+}
+
+# Default to postgresql83 since that was the built-in version previously
+if {![variant_isset postgresql83] && ![variant_isset postgresql84]} {
+   default_variants   +postgresql83
+}
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090916/707a0c74/attachment.html>


More information about the macports-changes mailing list