[89300] trunk/dports/python/py-simplejson/Portfile

ryandesign at macports.org ryandesign at macports.org
Mon Jan 23 17:41:49 PST 2012


Revision: 89300
          http://trac.macports.org/changeset/89300
Author:   ryandesign at macports.org
Date:     2012-01-23 17:41:48 -0800 (Mon, 23 Jan 2012)
Log Message:
-----------
py-simplejson: move the post-destroot documentation installation into the existing "if $name != $subport" block instead of making a second one

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

Modified: trunk/dports/python/py-simplejson/Portfile
===================================================================
--- trunk/dports/python/py-simplejson/Portfile	2012-01-24 01:30:05 UTC (rev 89299)
+++ trunk/dports/python/py-simplejson/Portfile	2012-01-24 01:41:48 UTC (rev 89300)
@@ -36,20 +36,10 @@
 
 if {$name != $subport} {
     depends_lib-append         port:py${python.version}-distribute
-}
-
-subport py24-simplejson {
-    # simplejson dropped support for Python 2.4 at version 2.1.0
-    version         2.1.0
-    distname        ${real_name}-2.1.0
-    checksums       rmd160  41997ae2e309dc538deda50e056119b01afbf23d \
-                    sha256  11bb12aacb646dcccc0d5a3d0e44e5662caf0e71d2f58c7ace8d2ec03cda903b
-}
-
-post-destroot {
-    set docdir ${destroot}${prefix}/share/doc/${subport}
-    xinstall -d ${docdir}
-    if {$name != $subport} {
+    
+    post-destroot {
+        set docdir ${destroot}${prefix}/share/doc/${subport}
+        xinstall -d ${docdir}
         if {${python.version} == 24} {
             foreach f [glob -directory ${worksrcpath}/docs *] {
                 copy $f ${docdir}
@@ -62,6 +52,14 @@
     }
 }
 
+subport py24-simplejson {
+    # simplejson dropped support for Python 2.4 at version 2.1.0
+    version         2.1.0
+    distname        ${real_name}-2.1.0
+    checksums       rmd160  41997ae2e309dc538deda50e056119b01afbf23d \
+                    sha256  11bb12aacb646dcccc0d5a3d0e44e5662caf0e71d2f58c7ace8d2ec03cda903b
+}
+
 livecheck.type      regex
 livecheck.url       ${master_sites}
 livecheck.regex     ${real_name}-(\[0-9.\]+)\\.tar\\.gz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120123/8c23682a/attachment.html>


More information about the macports-changes mailing list