Modified: trunk/dports/python/py-toc/Portfile (100816 => 100817)
--- trunk/dports/python/py-toc/Portfile 2012-12-27 09:39:40 UTC (rev 100816)
+++ trunk/dports/python/py-toc/Portfile 2012-12-27 12:02:22 UTC (rev 100817)
@@ -1,13 +1,14 @@
# $Id$
PortSystem 1.0
-PortGroup python24 1.0
+PortGroup python 1.0
name py-toc
version 2.4
revision 1
categories python net
platforms darwin
+supported_archs noarch
maintainers nomaintainer
description python module for accessing the AIM network
long_description Py-TOC is a Python module that allows you to design \
@@ -19,16 +20,20 @@
Messenger and its free equivalents.
homepage http://jamwt.com/Py-TOC/
-master_sites ${homepage}/2.4/
-distfiles toc.py
+master_sites ${homepage}2.4/
checksums md5 3aaaed9d31029673e5b609cde2796488
-extract {
- file mkdir ${worksrcpath}
- file copy ${distpath}/toc.py ${worksrcpath}
- file copy ${filespath}/setup.py ${worksrcpath}
-}
+python.versions 24
-patch {
- reinplace "s|VERSION|${version}|g" ${worksrcpath}/setup.py
+if {$subport != $name} {
+ distfiles toc.py
+ extract {
+ file mkdir ${worksrcpath}
+ file copy ${distpath}/toc.py ${worksrcpath}
+ file copy ${filespath}/setup.py ${worksrcpath}
+ }
+
+ patch {
+ reinplace "s|VERSION|${version}|g" ${worksrcpath}/setup.py
+ }
}