[120150] trunk/dports/python
ryandesign at macports.org
ryandesign at macports.org
Fri May 16 17:26:21 PDT 2014
Revision: 120150
https://trac.macports.org/changeset/120150
Author: ryandesign at macports.org
Date: 2014-05-16 17:26:21 -0700 (Fri, 16 May 2014)
Log Message:
-----------
py-openslide: new port, version 1.0.1 (#42381)
Added Paths:
-----------
trunk/dports/python/py-openslide/
trunk/dports/python/py-openslide/Portfile
Added: trunk/dports/python/py-openslide/Portfile
===================================================================
--- trunk/dports/python/py-openslide/Portfile (rev 0)
+++ trunk/dports/python/py-openslide/Portfile 2014-05-17 00:26:21 UTC (rev 120150)
@@ -0,0 +1,66 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+PortGroup python 1.0
+PortGroup github 1.0
+
+github.setup openslide openslide-python 1.0.1 v
+name py-openslide
+categories-append graphics
+platforms darwin
+supported_archs noarch
+license LGPL-2.1 MIT BSD
+maintainers backtick.net:bgilbert
+
+# We can support 33 as soon as py-flask does.
+python.versions 26 27
+python.default_version 27
+
+description Python binding for the OpenSlide library.
+
+long_description OpenSlide Python allows the OpenSlide library to be \
+ used from Python programs. OpenSlide provides a simple \
+ interface for reading whole-slide images, also known as \
+ virtual slides, which are high-resolution images used in \
+ digital pathology. These images can occupy tens of \
+ gigabytes when uncompressed, and so cannot be easily \
+ read using standard tools or libraries, which are \
+ designed for images that can be comfortably uncompressed \
+ into RAM. Whole-slide images are typically \
+ multi-resolution\; OpenSlide allows reading a small \
+ amount of image data at the resolution closest to a \
+ desired zoom level.
+
+homepage http://openslide.org/
+github.tarball_from releases
+use_xz yes
+
+checksums rmd160 5f2cf4698298c23dd477537f4447187c437c7775 \
+ sha256 c4e1c44c6005a1e47c2289682e8c35ddfe3f7a15dbe4a020e0004a77ba148912
+
+if {${name} ne ${subport}} {
+ depends_build port:py${python.version}-sphinx
+ # py-flask is only needed for the examples.
+ # On Python 2.x, we can use either PIL or Pillow.
+ depends_lib-append port:openslide \
+ port:py${python.version}-flask \
+ path:${frameworks_dir}/Python.framework/Versions/${python.branch}/lib/python${python.branch}/site-packages/PIL/Image.py:py${python.version}-Pillow
+
+ livecheck.type none
+
+ build.target-append build_sphinx
+
+ post-destroot {
+ set docdir ${prefix}/share/doc/${subport}
+ xinstall -m 644 -W ${worksrcpath} \
+ CHANGELOG.txt \
+ LICENSE.txt \
+ lgpl-2.1.txt \
+ ${destroot}${docdir}
+ file copy ${worksrcpath}/build/sphinx/html ${destroot}${docdir}
+ # Empty examples directory created by python portgroup
+ file delete ${destroot}${docdir}/examples
+ file copy ${worksrcpath}/examples ${destroot}${docdir}
+ }
+}
Property changes on: trunk/dports/python/py-openslide/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140516/09f4db81/attachment.html>
More information about the macports-changes
mailing list