# -*- 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
github.setup openslide openslide-python 1.1.1 v
categories-append graphics
maintainers {bgilbert @bgilbert}
python.versions 27 35 36 37
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 \
homepage http://openslide.org/
github.tarball_from releases
checksums rmd160 badc962f1e057f1c2df8bcbfada4a110c083589e \
sha256 e3c1f27e4704221327d3c74b0960742079b18fea2d1896eda71a3efdd3f9d3f7
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
build.target-append build_sphinx
patchfiles patch-disable-find_library-fallback.diff
reinplace "s|@@PREFIX@@|${prefix}|g" \
${worksrcpath}/openslide/lowlevel.py
set docdir ${prefix}/share/doc/${subport}
xinstall -m 644 -W ${worksrcpath} \