Ticket #27715: Portfile

File Portfile, 1.7 KB (added by chicagotripp (Altoine Barker), 14 years ago)

revised py27-wxpython Portfile

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$
3PortSystem 1.0
4PortGroup       python27 1.0
5
6name            py27-wxpython
7version         2.8.11.0
8revision        1
9categories      python graphics
10platforms       darwin
11maintainers     jwa
12description     Python interface to the wxWindows cross platform GUI
13long_description        wxPython is a GUI toolkit for the Python programming \
14    language. It allows Python programmers to create \
15    programs with a robust, highly functional graphical \
16    user interface, simply and easily. It is implemented \
17    as a Python extension module (native code) that wraps \
18    the popular wxWindows cross platform GUI library, \
19    which is written in C++.
20
21homepage        http://www.wxpython.org/
22master_sites    sourceforge:wxpython
23distname        wxPython-src-${version}
24use_bzip2       yes
25checksums           md5     63f73aae49e530852db56a31b57529fa \
26                    sha1    18982edc236a1d87e4eef018928358c925aa5b17 \
27                    rmd160  9e93b0acaf85ba1a4be9c324a872037c44a7694a
28
29depends_lib     port:wxWidgets
30
31worksrcdir      ${distname}/wxPython
32
33extract.post_args       "| tar -xf - ${worksrcdir} ${distname}/docs"
34
35universal_variant       no
36supported_archs i386 ppc
37
38build.env       UNICODE="1" WXPORT="mac" PATH="${prefix}/lib/wx/config:$env(PATH)"
39
40destroot.env    UNICODE="1" WXPORT="mac" PATH="${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.type  regex
50livecheck.url   ${homepage}
51livecheck.regex wxPython (2\\.\[0-9\]+\\.\[0-9\]+\\.\[0-9\]+)