[100841] trunk/dports/python/py-tiff/Portfile

jmr at macports.org jmr at macports.org
Fri Dec 28 17:19:37 PST 2012


Revision: 100841
          https://trac.macports.org/changeset/100841
Author:   jmr at macports.org
Date:     2012-12-28 17:19:37 -0800 (Fri, 28 Dec 2012)
Log Message:
-----------
py-tiff: use unified portgroup

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

Modified: trunk/dports/python/py-tiff/Portfile
===================================================================
--- 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}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121228/017b1e13/attachment.html>


More information about the macports-changes mailing list