summaryrefslogtreecommitdiffstats
path: root/packaging/macosx/ports/python/py25-Pillow/Portfile
blob: aa74a06adc127a5501061e599e76f82fe88fb07c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# -*- 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: Portfile 104088 2013-03-15 14:39:56Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py25-Pillow
set real_name       py-Pillow
version             1.7.8
revision            100
categories-append   devel
platforms           darwin
license             BSD

python.versions     25
python.version      25

maintainers         stromnov openmaintainer

description         Python Imaging Library (fork)

long_description    ${description}

homepage            http://github.com/python-imaging/Pillow
master_sites        http://pypi.python.org/packages/source/P/Pillow/

distname            Pillow-${version}
use_zip             yes

checksums           rmd160  e52cec02d943951a80d30b32b1764cb3ae87b283 \
                    sha256  907f5342b1df1d277dcc10df2aeabc61099e5a07e0676b9fcd1bb7379890c0ee

if {$subport == $name} {
    conflicts       py${python.version}-pil

    depends_build       port:py${python.version}-setuptools
    depends_lib-append \
                        port:zlib \
                        port:jpeg \
                        port:tiff \
                        port:lcms \
                        port:webp \
                        port:freetype

    patchfiles          patch-setup.py-v1.7.8.diff \
                        patch-_imagingft.c.diff

    post-patch {
        reinplace "s|@prefix@|${prefix}|g" ${worksrcpath}/setup.py
    }

    livecheck.type      none
#} else {
#    livecheck.type      regex
#    livecheck.url       ${master_sites}
#    livecheck.regex     "Pillow-(\\d+(?:\\.\\d+)*)${extract.suffix}"
}

variant quartz conflicts x11 tkinter {
    # tkinter doesn't build
}

variant x11 conflicts quartz {
    # tkinter does build
}

variant tkinter description {with tkinter support} {
    if {$subport == $name} {
        depends_lib-append  port:py${python.version}-tkinter
    }
}

#if { ![variant_isset quartz] } {
#    default_variants-append +tkinter
#}

default_variants    -tkinter