Ticket #3114: Portfile

File Portfile, 1.1 KB (added by yves@…, 19 years ago)

Portfile

Line 
1# $Id: Portfile,v 1.13 2005/03/08 08:26:40 blb Exp $
2
3PortSystem                      1.0
4name                            py-gtk2
5version                         2.6.2
6revision                        0
7categories                      python x11
8maintainers                     darwinports@opendarwin.org
9description                     PyGTK2 is the Python binding to GTK+ 2.x
10long_description        \
11        PyGTK contains modules that allow you to use gtk in Python programs. \
12        At present, it is a fairly complete set of bindings.
13
14homepage                        http://www.pygtk.org/
15master_sites            gnome:sources/pygtk/2.6
16distname                        pygtk-${version}
17use_bzip2                       yes
18checksums                       md5 0d4dca0564fc867a976808d18443f059
19
20depends_lib                     path:${prefix}/bin/python:python24 lib:libgtk.2:gtk2
21
22post-destroot {
23        xinstall -m 755 -d ${destroot}/${prefix}/share/doc/${name} \
24                ${destroot}/${prefix}/share/${name}
25        xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog INSTALL \
26                MAPPING NEWS PKG-INFO README THREADS TODO \
27                        ${destroot}/${prefix}/share/doc/${name}
28        file copy ${worksrcpath}/examples ${destroot}/${prefix}/share/pygtk/2.0
29        eval file delete \
30                [glob ${destroot}/${prefix}/share/pygtk/2.0/examples/Makefile*]
31
32}
33
34variant glade {
35        depends_lib-append      lib:libglade-2:libglade2
36}
37