[101223] trunk/dports/python/py-rt/Portfile

jmr at macports.org jmr at macports.org
Sun Jan 6 06:04:20 PST 2013


Revision: 101223
          https://trac.macports.org/changeset/101223
Author:   jmr at macports.org
Date:     2013-01-06 06:04:20 -0800 (Sun, 06 Jan 2013)
Log Message:
-----------
py-rt: use unified portgroup, license, noarch

Modified Paths:
--------------
    trunk/dports/python/py-rt/Portfile

Modified: trunk/dports/python/py-rt/Portfile
===================================================================
--- trunk/dports/python/py-rt/Portfile	2013-01-06 13:49:52 UTC (rev 101222)
+++ trunk/dports/python/py-rt/Portfile	2013-01-06 14:04:20 UTC (rev 101223)
@@ -1,35 +1,42 @@
 # $Id$
 
 PortSystem 1.0
-PortGroup python24 1.0
+PortGroup python 1.0
 
 name			py-rt
 version			2.5
 categories		python net
+license			GPL-2+
 platforms		darwin
+supported_archs	noarch
 maintainers		nomaintainer
 description		Python Routeing Toolkit
 long_description	The Python Routeing Toolkit enables routeing information \
 				in a network to be collected.
 
-homepage		http://ipmon.sprintlabs.com/pyrt/
-master_sites	${homepage}/results/
+homepage		https://ipmon.sprintlabs.com/pyrt/
+master_sites	${homepage}results/
+fetch.ignore_sslcert yes
 distname		pyrt-${version}
 checksums		md5 ea7322d0e942f819fb55939f64f92b1c
 
-pre-extract {
-	file mkdir ${worksrcpath}/rt
-	file copy ${filespath}/setup.py ${worksrcpath}
-	system "touch ${worksrcpath}/rt/__init__.py"
-}
-extract.dir		${worksrcpath}/rt
+python.versions	24
 
-patch {
-	reinplace "s|__VERSION__|${version}|g" ${worksrcpath}/setup.py
-	reinplace "s| /usr/bin/env python2|${python.bin}|g" ${worksrcpath}/rt/bgp.py ${worksrcpath}/rt/isis.py
-}
+if {$subport != $name} {
+    pre-extract {
+        file mkdir ${worksrcpath}/rt
+        file copy ${filespath}/setup.py ${worksrcpath}
+        system "touch ${worksrcpath}/rt/__init__.py"
+    }
+    extract.dir		${worksrcpath}/rt
 
-post-destroot {
-	xinstall -m 644 -W ${worksrcpath}/rt COPYING ChangeLog README README.mrtd \
-		README.rv VERSION ${destroot}${prefix}/share/doc/${name}
+    patch {
+        reinplace "s|__VERSION__|${version}|g" ${worksrcpath}/setup.py
+        reinplace "s| /usr/bin/env python2|${python.bin}|g" ${worksrcpath}/rt/bgp.py ${worksrcpath}/rt/isis.py
+    }
+
+    post-destroot {
+        xinstall -m 644 -W ${worksrcpath}/rt COPYING ChangeLog README README.mrtd \
+            README.rv VERSION ${destroot}${prefix}/share/doc/${subport}
+    }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130106/863bd769/attachment.html>


More information about the macports-changes mailing list