Revision
100841
Author
jmr@macports.org
Date
2012-12-28 17:19:37 -0800 (Fri, 28 Dec 2012)

Log Message

py-tiff: use unified portgroup

Modified Paths

Diff

Modified: trunk/dports/python/py-tiff/Portfile (100840 => 100841)


--- trunk/dports/python/py-tiff/Portfile	2012-12-28 22:58:47 UTC (rev 100840)
+++ trunk/dports/python/py-tiff/Portfile	2012-12-29 01:19:37 UTC (rev 100841)
@@ -2,7 +2,7 @@
 # $Id$
 
 PortSystem          1.0
-PortGroup           python24 1.0
+PortGroup           python 1.0
 
 name                py-tiff
 version             0.1.6
@@ -22,24 +22,29 @@
 checksums           rmd160  5a473019cfe39e6448ca85326fb58a227ebce2d5 \
                     sha256  fcbf4605c05cb35e861c851394541c4a41d0b8fd906f300339ab3d43e7489db5
 
-depends_lib-append  port:tiff
+python.versions     24
 
-post-extract {
-    fs-traverse item ${worksrcpath} {
-        if {[file isdirectory ${item}]} {
-            file attributes ${item} -permissions a+rx
-        } elseif {[file isfile ${item}]} {
-            file attributes ${item} -permissions a+r
+if {$subport != $name} {
+    depends_lib-append  port:tiff
+
+    post-extract {
+        fs-traverse item ${worksrcpath} {
+            if {[file isdirectory ${item}]} {
+                file attributes ${item} -permissions a+rx
+            } elseif {[file isfile ${item}]} {
+                file attributes ${item} -permissions a+r
+            }
         }
     }
-}
 
-patchfiles          patch-setup.py.diff
+    patchfiles          patch-setup.py.diff
 
-post-destroot {
-    xinstall -m 644 -W ${worksrcpath} CHANGES README \
-        ${destroot}${prefix}/share/doc/${name}
+    post-destroot {
+        xinstall -m 644 -W ${worksrcpath} CHANGES README \
+            ${destroot}${prefix}/share/doc/${subport}
+    }
+    livecheck.type      none
+} else {
+    livecheck.type      regex
+    livecheck.regex     pytiff-(\[0-9.\]+)${extract.suffix}
 }
-
-livecheck.type      regex
-livecheck.regex     pytiff-(\[0-9.\]+)${extract.suffix}