[45222] trunk/dports/python

jwa at macports.org jwa at macports.org
Sun Jan 11 04:08:20 PST 2009


Revision: 45222
          http://trac.macports.org/changeset/45222
Author:   jwa at macports.org
Date:     2009-01-11 04:08:20 -0800 (Sun, 11 Jan 2009)
Log Message:
-----------
PyGreSQL for 2.6

Added Paths:
-----------
    trunk/dports/python/py26-pygresql/
    trunk/dports/python/py26-pygresql/Portfile

Added: trunk/dports/python/py26-pygresql/Portfile
===================================================================
--- trunk/dports/python/py26-pygresql/Portfile	                        (rev 0)
+++ trunk/dports/python/py26-pygresql/Portfile	2009-01-11 12:08:20 UTC (rev 45222)
@@ -0,0 +1,44 @@
+# $Id: Portfile 30207 2007-10-22 21:08:10Z jmpp at macports.org $
+
+PortSystem 1.0
+PortGroup python26 1.0
+
+name			py-pygresql
+version			4.0
+categories		python databases
+platforms		darwin
+maintainers		jwa openmaintainer
+description		Python module that interfaces to a PostgreSQL database
+long_description	PyGreSQL is an open-source Python module that \
+    interfaces to a PostgreSQL database. It embeds the PostgreSQL query \
+    library to allow easy use of the powerful PostgreSQL features from a \
+    Python script.
+
+homepage		http://www.pygresql.org/
+master_sites		ftp://ftp.pygresql.org/pub/distrib/ freebsd
+distname		PyGreSQL-${version}
+extract.suffix		.tgz
+checksums           md5     1aca50e59ff4cc56abe9452a9a49c5ff \
+                    sha1    faeb31b6c8d62bf56cad00ff8fbeb7426623422b \
+                    rmd160  633364ddaa01166db201754e005067d211591864
+
+depends_lib-append	port:postgresql83
+
+patch {
+    reinplace "s|\"pg_config|\"${prefix}/lib/postgresql83/bin/pg_config|g" \
+	${worksrcpath}/setup.py
+}
+
+post-destroot	{
+    xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
+    foreach doc [glob ${worksrcpath}/docs/*] {
+	xinstall -m 644 ${doc} ${destroot}${prefix}/share/doc/${name}
+    }
+    foreach doc [glob ${worksrcpath}/tutorial/*] {
+	xinstall -m 644 ${doc} ${destroot}${prefix}/share/doc/${name}
+    }
+}
+
+livecheck.check	regex
+livecheck.url	${homepage}announce.html
+livecheck.regex	PyGreSQL version (4\.\[0-9\.\]+)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090111/575fd07f/attachment.html>


More information about the macports-changes mailing list