Ticket #24350: Portfile.2

File Portfile.2, 2.4 KB (added by jjstickel@…, 15 years ago)

py26-wxpython

Line 
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
4PortSystem          1.0
5PortGroup           python26 1.0
6
7name                py26-wxpython
8version             2.8.10.1
9categories-append   graphics
10maintainers         jameskyle
11description         Python interface to the wxWindows cross platform GUI
12long_description    wxPython is a GUI toolkit for the Python programming \
13                    language. It allows Python programmers to create \
14                    programs with a robust, highly functional graphical \
15                    user interface, simply and easily. It is implemented \
16                    as a Python extension module (native code) that wraps \
17                    the popular wxWindows cross platform GUI library, \
18                    which is written in C++.
19homepage            http://www.wxpython.org/
20
21platforms           darwin
22depends_lib         port:python26 \
23                    port:wxWidgets-python
24
25master_sites        sourceforge:wxpython
26distname            wxPython-src-${version}
27use_bzip2           yes
28
29checksums           md5     65d5ef166f23fe8b4c67f58df164f93e \
30                    sha1    6598fbafd979a91f20100171fa23a91779f6dc62 \
31                    rmd160  bb606046d140623041b988e64ab268ced9aa958f
32
33worksrcdir          ${distname}/wxPython
34
35extract.post_args   "| tar -xf - ${worksrcdir} ${distname}/docs"
36
37patchfiles         wxpython28101_gdiwrap.diff
38patch.pre_args  -p1
39
40use_configure       no
41
42variant carbon conflicts gtk description {use carbon} {
43    build.args   "UNICODE=1 WXPORT=mac"
44    destroot.args "UNICODE=1 WXPORT=mac"
45}
46variant gtk conflicts carbon description {use gtk} {
47    build.args    "UNICODE=1 WXPORT=gtk2"
48    destroot.args "UNICODE=1 WXPORT=gtk2"
49}
50if {![variant_isset gtk]} {
51    default_variants-append +carbon
52}
53
54build.cmd           ${python.bin} setup.py
55build.target        build
56
57destroot.cmd        ${build.cmd}
58destroot.destdir    --prefix=${python.prefix} --root=${destroot}
59
60post-destroot {
61    xinstall -d -m 755 ${destroot}${prefix}/share/doc/
62    file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}
63    file copy ${worksrcpath}/samples \
64    ${destroot}${prefix}/share/doc/${name}/examples
65}
66
67livecheck.type     regex
68livecheck.url      ${homepage}
69livecheck.regex    wxPython (2\.\[0-9\]+\.\[0-9\]+\.\[0-9\]+)