[137770] trunk/dports/python/py-pygresql/Portfile
ryandesign at macports.org
ryandesign at macports.org
Fri Jun 19 03:15:14 PDT 2015
Revision: 137770
https://trac.macports.org/changeset/137770
Author: ryandesign at macports.org
Date: 2015-06-19 03:15:14 -0700 (Fri, 19 Jun 2015)
Log Message:
-----------
py-pygresql: update to 4.1.1, fixing checksum mismatch seen with 4.1 (#48092); rewrite master_sites to avoid redirects; simplify documentation installation by using expand operator instead of foreach; install documentation to subport-specific directory so the subports don't conflict with one another
Modified Paths:
--------------
trunk/dports/python/py-pygresql/Portfile
Modified: trunk/dports/python/py-pygresql/Portfile
===================================================================
--- trunk/dports/python/py-pygresql/Portfile 2015-06-19 10:08:14 UTC (rev 137769)
+++ trunk/dports/python/py-pygresql/Portfile 2015-06-19 10:15:14 UTC (rev 137770)
@@ -5,7 +5,7 @@
PortGroup python 1.0
name py-pygresql
-version 4.1
+version 4.1.1
license Permissive
categories-append databases
platforms darwin
@@ -19,12 +19,12 @@
powerful PostgreSQL features from a Python script.
homepage http://www.pygresql.org/
-master_sites http://pygresql.org/files/ freebsd
+master_sites ${homepage}files/ freebsd
distname PyGreSQL-${version}
extract.suffix .tgz
-checksums rmd160 4407964c452925f653f25498b4f94686b6bbcd64 \
- sha256 50b3b142b8f616d5fa39bcf044ba623912c22556fe869a546e670307ad19d673
+checksums rmd160 5cd30aceb7cb82acb2e3a36045be30b21112dd3f \
+ sha256 bb14092f97c66ed13b8faf71471b8c156c6b46d915858447f3a63e9abe48eef7
python.versions 26 27
python.default_version 27
@@ -32,19 +32,15 @@
if {${name} ne ${subport}} {
depends_lib-append port:postgresql92
- patch {
+ post-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}
- }
- foreach doc [glob ${worksrcpath}/tutorial/*] {
- xinstall -m 644 ${doc} ${destroot}${prefix}/share/doc/${name}
- }
+ set docdir ${prefix}/share/doc/${subport}
+ xinstall -d -m 755 ${destroot}${docdir}
+ xinstall -m 644 {*}[glob ${worksrcpath}/docs/*] {*}[glob ${worksrcpath}/tutorial/*] ${destroot}${docdir}
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150619/4122662d/attachment.html>
More information about the macports-changes
mailing list