Index: Portfile
===================================================================
--- Portfile	(revision 88867)
+++ Portfile	(working copy)
@@ -6,8 +6,6 @@
 name			py-pyx
 version			0.11.1
 python.versions         24 25 26 27
-python.default_version  27
-revision		0
 categories		python
 platforms		darwin
 maintainers		phw openmaintainer
@@ -26,23 +24,22 @@
 distname	PyX-${version}
 checksums       sha1    c1849e140d326d528fa5f21068693889392f4ecb
 
-depends_lib-append	bin:tex:texlive
-
-if {${subport} == ${name}} {
-    set name py${python.default_version}-pyx
-}
-
-post-destroot {
-    xinstall -d ${destroot}${prefix}/share/doc/${name}
-    xinstall -m 644 -W ${worksrcpath} INSTALL CHANGES README AUTHORS LICENSE \
-        ${destroot}${prefix}/share/doc/py${python.version}-pyx
-
-    file delete -force ${destroot}/etc
+if {${name} != ${subport}} {
+    depends_lib-append  bin:tex:texlive
     
-    # siteconfig.py is missing from newer versions 
-    #
-    # fix the paths that were calculated
-    #reinplace "s|${destroot}||g" ${destroot}${python.pkgd}/pyx/siteconfig.py
-    #reinplace "s|/etc|${prefix}/etc|g" ${destroot}${python.pkgd}/pyx/siteconfig.py
+    post-destroot {
+        xinstall -d ${destroot}${prefix}/share/doc/${subport}
+        xinstall -m 644 -W ${worksrcpath} INSTALL CHANGES README AUTHORS LICENSE \
+            ${destroot}${prefix}/share/doc/${subport}
+        
+        file delete -force ${destroot}/etc
+        
+        # siteconfig.py is missing from newer versions
+        #
+        # fix the paths that were calculated
+        #reinplace "s|${destroot}||g" ${destroot}${python.pkgd}/pyx/siteconfig.py
+        #reinplace "s|/etc|${prefix}/etc|g" ${destroot}${python.pkgd}/pyx/siteconfig.py
+    }
+    
+    livecheck.type      none
 }
-
