1 | # -*- 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 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup python 1.0 |
---|
6 | PortGroup github 1.0 |
---|
7 | |
---|
8 | github.setup openslide openslide-python 1.0.1 v |
---|
9 | name py-openslide |
---|
10 | categories-append graphics |
---|
11 | platforms darwin |
---|
12 | supported_archs noarch |
---|
13 | license LGPL-2.1 MIT BSD |
---|
14 | maintainers backtick.net:bgilbert |
---|
15 | |
---|
16 | # We can support 33 as soon as py-flask does. |
---|
17 | python.versions 26 27 |
---|
18 | python.default_version 27 |
---|
19 | |
---|
20 | description Python binding for the OpenSlide library. |
---|
21 | |
---|
22 | long_description OpenSlide Python allows the OpenSlide library to be \ |
---|
23 | used from Python programs. OpenSlide provides a simple \ |
---|
24 | interface for reading whole-slide images, also known as \ |
---|
25 | virtual slides, which are high-resolution images used in \ |
---|
26 | digital pathology. These images can occupy tens of \ |
---|
27 | gigabytes when uncompressed, and so cannot be easily \ |
---|
28 | read using standard tools or libraries, which are \ |
---|
29 | designed for images that can be comfortably uncompressed \ |
---|
30 | into RAM. Whole-slide images are typically \ |
---|
31 | multi-resolution\; OpenSlide allows reading a small \ |
---|
32 | amount of image data at the resolution closest to a \ |
---|
33 | desired zoom level. |
---|
34 | |
---|
35 | homepage http://openslide.org/ |
---|
36 | master_sites https://github.com/${github.author}/${github.project}/releases/download/${git.branch} |
---|
37 | use_xz yes |
---|
38 | |
---|
39 | checksums rmd160 5f2cf4698298c23dd477537f4447187c437c7775 \ |
---|
40 | sha256 c4e1c44c6005a1e47c2289682e8c35ddfe3f7a15dbe4a020e0004a77ba148912 |
---|
41 | |
---|
42 | if {${name} ne ${subport}} { |
---|
43 | depends_build port:py${python.version}-sphinx |
---|
44 | # py-flask is only needed for the examples. |
---|
45 | # On Python 2.x, we can use either PIL or Pillow. |
---|
46 | depends_lib-append port:openslide \ |
---|
47 | port:py${python.version}-flask \ |
---|
48 | path:${frameworks_dir}/Python.framework/Versions/${python.branch}/lib/python${python.branch}/site-packages/PIL/Image.py:py${python.version}-Pillow |
---|
49 | |
---|
50 | livecheck.type none |
---|
51 | |
---|
52 | build.target-append build_sphinx |
---|
53 | |
---|
54 | post-destroot { |
---|
55 | set docdir ${prefix}/share/doc/${subport} |
---|
56 | xinstall -m 644 -W ${worksrcpath} \ |
---|
57 | CHANGELOG.txt \ |
---|
58 | LICENSE.txt \ |
---|
59 | lgpl-2.1.txt \ |
---|
60 | ${destroot}${docdir} |
---|
61 | file copy ${worksrcpath}/build/sphinx/html ${destroot}${docdir} |
---|
62 | # Empty examples directory created by python portgroup |
---|
63 | file delete ${destroot}${docdir}/examples |
---|
64 | file copy ${worksrcpath}/examples ${destroot}${docdir} |
---|
65 | } |
---|
66 | } |
---|