[100974] trunk/dports/python
jwa at macports.org
jwa at macports.org
Wed Jan 2 07:05:27 PST 2013
Revision: 100974
https://trac.macports.org/changeset/100974
Author: jwa at macports.org
Date: 2013-01-02 07:05:27 -0800 (Wed, 02 Jan 2013)
Log Message:
-----------
py-pygresql: several things, unify, add mode line, add license, drop maintainership, change master site, modernise checksums, change to postgresql92, make livecheck subport-sensitive
Modified Paths:
--------------
trunk/dports/python/py-pygresql/Portfile
Removed Paths:
-------------
trunk/dports/python/py25-pygresql/
trunk/dports/python/py26-pygresql/
trunk/dports/python/py27-pygresql/
Modified: trunk/dports/python/py-pygresql/Portfile
===================================================================
--- trunk/dports/python/py-pygresql/Portfile 2013-01-02 14:39:35 UTC (rev 100973)
+++ trunk/dports/python/py-pygresql/Portfile 2013-01-02 15:05:27 UTC (rev 100974)
@@ -1,13 +1,15 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id$
-PortSystem 1.0
-PortGroup python24 1.0
+PortSystem 1.0
+PortGroup python 1.0
name py-pygresql
-version 4.0
+version 4.1
+license Permissive
categories python databases
platforms darwin
-maintainers jwa openmaintainer
+maintainers nomaintainer
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 \
@@ -15,30 +17,40 @@
Python script.
homepage http://www.pygresql.org/
-master_sites ftp://ftp.pygresql.org/pub/distrib/ freebsd
+
+python.versions 25 26 27
+python.default_version 27
+master_sites http://pygresql.org/files/ freebsd
distname PyGreSQL-${version}
extract.suffix .tgz
-checksums md5 1aca50e59ff4cc56abe9452a9a49c5ff \
- sha1 faeb31b6c8d62bf56cad00ff8fbeb7426623422b \
- rmd160 633364ddaa01166db201754e005067d211591864
-depends_lib-append port:postgresql83
+checksums rmd160 4407964c452925f653f25498b4f94686b6bbcd64 \
+ sha256 50b3b142b8f616d5fa39bcf044ba623912c22556fe869a546e670307ad19d673
-patch {
- reinplace "s|\"pg_config|\"${prefix}/lib/postgresql83/bin/pg_config|g" \
+if {$subport != $name} {
+ depends_lib-append port:postgresql92
+
+ patch {
+ reinplace "s|\"pg_config|\"${prefix}/lib/postgresql92/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}
+ 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}
+ }
}
- foreach doc [glob ${worksrcpath}/tutorial/*] {
- xinstall -m 644 ${doc} ${destroot}${prefix}/share/doc/${name}
- }
}
-livecheck.type regex
-livecheck.url ${homepage}announce.html
-livecheck.regex PyGreSQL version (4\.\[0-9\.\]+)
+if {$subport == $name} {
+ livecheck.type regex
+ livecheck.url ${homepage}announce.html
+ livecheck.regex PyGreSQL version (4\.\[0-9\.\]+)
+} else {
+ livecheck.type none
+}
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130102/537d9f2d/attachment.html>
More information about the macports-changes
mailing list