[101104] trunk/dports/python/py-spf/Portfile
jmr at macports.org
jmr at macports.org
Fri Jan 4 04:11:18 PST 2013
Revision: 101104
https://trac.macports.org/changeset/101104
Author: jmr at macports.org
Date: 2013-01-04 04:11:18 -0800 (Fri, 04 Jan 2013)
Log Message:
-----------
py-spf: use unified portgroup, license, noarch
Modified Paths:
--------------
trunk/dports/python/py-spf/Portfile
Modified: trunk/dports/python/py-spf/Portfile
===================================================================
--- trunk/dports/python/py-spf/Portfile 2013-01-04 12:10:01 UTC (rev 101103)
+++ trunk/dports/python/py-spf/Portfile 2013-01-04 12:11:18 UTC (rev 101104)
@@ -1,13 +1,15 @@
# $Id$
PortSystem 1.0
-PortGroup python24 1.0
+PortGroup python 1.0
name py-spf
version 1.6
revision 1
categories python mail
+license PSF
platforms darwin
+supported_archs noarch
maintainers nomaintainer
description python module for SPF (Sender Permitted From)
long_description py-spf is a python module for Sender Permitted From. \
@@ -19,19 +21,23 @@
distname pyspf-${version}
checksums md5 7ff35d8f9db41f2f7e0068f78f243a3d
-depends_lib-append port:py-dns
+python.versions 24
-patch {
- reinplace "s|test-1.9.5.txt|${worksrcpath}/test/test-1.9.5.txt|g" \
- ${worksrcpath}/test/testspf.py
-}
+if {$subport != $name} {
+ depends_lib-append port:py${python.version}-dns
-test.run yes
-test.cmd ${python.bin} test/testspf.py
-test.env PYTHONPATH=${worksrcpath}/build/lib
-test.target
+ patch {
+ reinplace "s|test-1.9.5.txt|${worksrcpath}/test/test-1.9.5.txt|g" \
+ ${worksrcpath}/test/testspf.py
+ }
-post-destroot {
- xinstall -m 644 -W ${worksrcpath} README CHANGELOG \
- ${destroot}${prefix}/share/doc/${name}
+ test.run yes
+ test.cmd ${python.bin} test/testspf.py
+ test.env PYTHONPATH=${worksrcpath}/build/lib
+ test.target
+
+ post-destroot {
+ xinstall -m 644 -W ${worksrcpath} README CHANGELOG \
+ ${destroot}${prefix}/share/doc/${subport}
+ }
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130104/a2cb2627/attachment.html>
More information about the macports-changes
mailing list