You've already forked macports-ports
mirror of
https://github.com/encounter/macports-ports.git
synced 2026-03-30 11:29:27 -07:00
73f85fb64b
MacPorts has been setting DEFAULT_LIBRARY_FALLBACK on Python 3.x for quite a while now.
72 lines
2.8 KiB
Tcl
72 lines
2.8 KiB
Tcl
# -*- 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
|
|
|
|
PortSystem 1.0
|
|
PortGroup python 1.0
|
|
PortGroup github 1.0
|
|
|
|
github.setup openslide openslide-python 1.1.2 v
|
|
name py-openslide
|
|
revision 1
|
|
categories-append graphics
|
|
platforms darwin
|
|
license LGPL-2.1 MIT BSD
|
|
maintainers {bgilbert @bgilbert}
|
|
|
|
python.versions 27 35 36 37 38 39
|
|
python.default_version 38
|
|
|
|
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 31fc77b7afcd9ebade4b773046298a62f11e6bee \
|
|
sha256 0b8bfd13116144a9b048d414f73a08ce4adc839b1ae19070588ee78dde6ec1be \
|
|
size 263688
|
|
|
|
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
|
|
test.run yes
|
|
|
|
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}
|
|
}
|
|
}
|
|
|
|
subport py34-${python.rootname} {
|
|
replaced_by py35-${python.rootname}
|
|
PortGroup obsolete 1.0
|
|
}
|