Ticket #18561: Portfile.2

File Portfile.2, 2.0 KB (added by nerdling (Jeremy Lavergne), 16 years ago)

fixed categories (PortGroup already defines python)

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.9.1
9categories-append   graphics
10maintainers         jameskyle@ucla.edu
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
24
25master_sites        sourceforge:wxpython
26distname            wxPython-src-${version}
27use_bzip2           yes
28
29checksums           md5 4ad9a64e05529097618c7e48fbb10a84 \
30                    sha1 7359af790d58082330c867f5c10f51b6382d9a35 \
31                    rmd160 2b193c867a028985f8ead4084a9c1f024a1d37c6
32
33
34worksrcdir          ${distname}/wxPython
35
36extract.post_args   "| tar -xf - ${worksrcdir} ${distname}/docs"
37
38build.env           CC="gcc-mp-4.3" UNICODE="1" WXPORT="mac" PATH="${python.prefix}/lib/wx/config:$env(PATH)"
39
40destroot.env        UNICODE="1" WXPORT="mac" PATH="${python.prefix}/lib/wx/config:$env(PATH)"
41
42post-destroot {
43    xinstall -d -m 755 ${destroot}${prefix}/share/doc/
44    file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}
45    file copy ${worksrcpath}/samples \
46    ${destroot}${prefix}/share/doc/${name}/examples
47}
48
49livecheck.check    regex
50livecheck.url    ${homepage}
51livecheck.regex    wxPython (2\.\[0-9\]+\.\[0-9\]+\.\[0-9\]+)