Revision
100774
Author
jmr@macports.org
Date
2012-12-23 20:52:16 -0800 (Sun, 23 Dec 2012)

Log Message

py-umlgraph: use unified portgroup, license, noarch

Modified Paths

Diff

Modified: trunk/dports/python/py-umlgraph/Portfile (100773 => 100774)


--- trunk/dports/python/py-umlgraph/Portfile	2012-12-24 04:24:50 UTC (rev 100773)
+++ trunk/dports/python/py-umlgraph/Portfile	2012-12-24 04:52:16 UTC (rev 100774)
@@ -1,13 +1,15 @@
 # $Id$
 
 PortSystem 1.0
-PortGroup python24 1.0
+PortGroup python 1.0
 
 name			py-umlgraph
 version			0.1.10
 revision		1
 categories		python devel
+license			GPL-2
 platforms		darwin
+supported_archs	noarch
 maintainers		nomaintainer
 description		debugger that produces UML by inspecting running python programs
 long_description	PyUMLGraph is a Python debugger that produces UML \
@@ -20,16 +22,20 @@
 				types, as well as class attributes and types.
 
 homepage		http://adamfeuer.com/~adamf/software/PyUMLGraph/
-master_sites	${homepage}
+master_sites	${homepage} fink:md5/38c10170d92e77f84186f5b7d8fdbf4e
 distname		PyUMLGraph-${version}
 checksums		md5 38c10170d92e77f84186f5b7d8fdbf4e
 use_bzip2		yes
 
-post-destroot	{
-	xinstall -m 644 -W ${worksrcpath}/docs PyUMLGraph.css TODO index.html \
-		example1.png example1.py simple.dot simple.png \
-		${destroot}${prefix}/share/doc/${name}
-	xinstall -m 644 -W ${worksrcpath}/examples example1.py simple.py \
-		make_example_diagrams \
-		${destroot}${prefix}/share/doc/${name}/examples
+python.versions	24
+
+if {$subport != $name} {
+    post-destroot	{
+        xinstall -m 644 -W ${worksrcpath}/docs PyUMLGraph.css TODO index.html \
+            example1.png example1.py simple.dot simple.png \
+            ${destroot}${prefix}/share/doc/${subport}
+        xinstall -m 644 -W ${worksrcpath}/examples example1.py simple.py \
+            make_example_diagrams \
+            ${destroot}${prefix}/share/doc/${subport}/examples
+    }
 }