[90939] trunk/dports/python/py-tiff

ryandesign at macports.org ryandesign at macports.org
Sun Mar 18 17:26:03 PDT 2012


Revision: 90939
          https://trac.macports.org/changeset/90939
Author:   ryandesign at macports.org
Date:     2012-03-18 17:26:03 -0700 (Sun, 18 Mar 2012)
Log Message:
-----------
py-tiff: update to 0.1.6 (#33680); update homepage, master_sites, livecheck; use port:-style dependencies; rename patch file; GPL-2+ license

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

Added Paths:
-----------
    trunk/dports/python/py-tiff/files/patch-setup.py.diff

Removed Paths:
-------------
    trunk/dports/python/py-tiff/files/patch-setup.py

Modified: trunk/dports/python/py-tiff/Portfile
===================================================================
--- trunk/dports/python/py-tiff/Portfile	2012-03-19 00:11:11 UTC (rev 90938)
+++ trunk/dports/python/py-tiff/Portfile	2012-03-19 00:26:03 UTC (rev 90939)
@@ -5,32 +5,41 @@
 PortGroup           python24 1.0
 
 name                py-tiff
-version             0.1.4
-revision            1
+version             0.1.6
 categories          python graphics
 platforms           darwin
 maintainers         nomaintainer
+license             GPL-2+
 
 description         pytiff provides tiff handling and advanced imaging for Python
 
 long_description    ${description}
 
-homepage            http://pubweb.northwestern.edu/~omh221/software_projects/pytiff/
+homepage            http://www.haynold.com/software_projects/2004/pytiff/
 master_sites        ${homepage}
 distname            pytiff-${version}
 
-checksums           md5     77a30a09348345a40829c9a730ffd9b8
+checksums           rmd160  5a473019cfe39e6448ca85326fb58a227ebce2d5 \
+                    sha256  fcbf4605c05cb35e861c851394541c4a41d0b8fd906f300339ab3d43e7489db5
 
-patchfiles          patch-setup.py
+depends_lib-append  port:tiff
 
-depends_lib-append  lib:libtiff: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
+        }
+    }
+}
 
-worksrcdir
+patchfiles          patch-setup.py.diff
 
-build.env           CFLAGS=-I${prefix}/include \
-                    LDFLAGS=-L${prefix}/lib
-
 post-destroot {
     xinstall -m 644 -W ${worksrcpath} CHANGES README \
         ${destroot}${prefix}/share/doc/${name}
 }
+
+livecheck.type      regex
+livecheck.regex     pytiff-(\[0-9.\]+)${extract.suffix}

Deleted: trunk/dports/python/py-tiff/files/patch-setup.py
===================================================================
--- trunk/dports/python/py-tiff/files/patch-setup.py	2012-03-19 00:11:11 UTC (rev 90938)
+++ trunk/dports/python/py-tiff/files/patch-setup.py	2012-03-19 00:26:03 UTC (rev 90939)
@@ -1,15 +0,0 @@
---- setup.py	Fri Sep  3 03:26:40 2004
-+++ ../setup.py	Thu Sep 16 18:18:38 2004
-@@ -29,11 +29,5 @@
-        license = "GNU Public License",
-        ext_modules = [ Extension( "pytiff",
-                                   sources = ["pytiff.c"],
--                                  libraries = ["tiff"]) ],
--       data_files = [ ("local/share/doc/pytiff/testimages", ["testimages/cramps.tif",
--                                                       "testimages/fax2d.tif",
--                                                       "testimages/g3test.tif",
--                                                       "testimages/horse.tif"] ),
--                      ("local/share/doc/pytiff", ["test_pytiff.py", "pytiff.html", "README", "CHANGES"] )
--                      ]
-+                                  libraries = ["tiff"]) ]
-        )

Copied: trunk/dports/python/py-tiff/files/patch-setup.py.diff (from rev 90938, trunk/dports/python/py-tiff/files/patch-setup.py)
===================================================================
--- trunk/dports/python/py-tiff/files/patch-setup.py.diff	                        (rev 0)
+++ trunk/dports/python/py-tiff/files/patch-setup.py.diff	2012-03-19 00:26:03 UTC (rev 90939)
@@ -0,0 +1,22 @@
+--- setup.py.orig	2005-06-13 01:26:23.000000000 -0500
++++ setup.py	2012-03-18 19:15:15.000000000 -0500
+@@ -30,18 +30,5 @@
+        ext_modules = [ Extension( "pytiff",
+                                   sources = ["pytiff.c"],
+                                   libraries = ["tiff"]) ],
+-       headers = ["pytiff-constants.h"],
+-       data_files = \
+-       [ ("local/share/doc/pytiff/testimages", ["testimages/cramps.tif",
+-                                                "testimages/fax2d.tif",
+-                                                "testimages/g3test.tif",
+-                                                "testimages/caspian.tif",
+-                                                "testimages/horse.tif",
+-                                                "testimages/horse-tiled.tif",
+-                                                "testimages/horse-16bit-col-bigendian.tif",
+-                                                "testimages/horse-16bit-col-littleendian.tif",
+-                                                "testimages/horse-separate-planes.tif",
+-                                                ] ),
+-         ("local/share/doc/pytiff", ["test_pytiff.py", "pytiff.html", "README", "CHANGES"])
+-         ]
++       headers = ["pytiff-constants.h"]
+        )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120318/2cbe74f7/attachment.html>


More information about the macports-changes mailing list