source: trunk/dports/python/py26-gtk/Portfile @ 92497

Last change on this file since 92497 was 92497, checked in by jmr@…, 5 years ago

py26-gtk: add pkgconfig dep

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id: Portfile 92497 2012-04-30 08:46:09Z jmr@macports.org $
3
4PortSystem      1.0
5
6name            py26-gtk
7set my_name     pygtk
8version         2.22.0
9revision        1
10set branch      [join [lrange [split ${version} .] 0 1] .]
11categories      python x11
12platforms       darwin
13license         LGPL-2.1+
14maintainers     mcalhoun openmaintainer
15description     PyGTK is the Python binding to GTK+ 2.x
16
17long_description \
18    PyGTK contains modules that allow you to use gtk in Python programs. \
19    At present, it is a fairly complete set of bindings.
20
21homepage        http://www.pygtk.org/
22master_sites    gnome:sources/${my_name}/${branch}/
23distname        ${my_name}-${version}
24use_bzip2       yes
25
26checksums       md5     e9bba9cd4cdaccb22a7991cc2f7c8373 \
27                sha1    6a180d0c9ed19179662f51decb150b2c98cc9362 \
28                rmd160  98fb89d32f36c97cc51bf4eb1aa38699bf010c8e
29
30depends_build   port:pkgconfig
31depends_lib     port:python26 \
32                port:atk \
33                port:gtk2 \
34                port:libglade2 \
35                port:py26-cairo \
36                port:py26-gobject
37
38set python_prefix ${frameworks_dir}/Python.framework/Versions/2.6
39
40configure.pre_args-delete  --prefix=${prefix}
41configure.pre_args-append  --prefix=${python_prefix}
42configure.args-append      --includedir=${python_prefix}/include/python2.6
43configure.pkg_config_path  ${python_prefix}/lib/pkgconfig
44
45configure.python    ${prefix}/bin/python2.6
46
47platform darwin 9 {
48    post-patch {
49        reinplace "s| -export-symbols-regex.*||g" \
50            ${worksrcpath}/Makefile.in \
51            ${worksrcpath}/gtk/Makefile.in
52    }
53}
54
55post-destroot {
56    set docdir ${prefix}/share/doc/${name}
57    xinstall -d ${destroot}${docdir}
58    xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README \
59        ${destroot}${docdir}
60    xinstall -d ${destroot}${prefix}/share/gtk-doc/html
61    system "ln -s ${python_prefix}/share/${my_name} ${destroot}${prefix}/share/${my_name}26"
62# devhelp requires gtk-doc directory name  and .devhelp file name (less the .devhelp) to match
63    file rename ${destroot}${python_prefix}/share/gtk-doc/html/${my_name}/${my_name}.devhelp \
64                ${destroot}${python_prefix}/share/gtk-doc/html/${my_name}/${my_name}26.devhelp
65    system "ln -s ${python_prefix}/share/gtk-doc/html/${my_name} ${destroot}${prefix}/share/gtk-doc/html/${my_name}26"
66}
67
68livecheck.type  regex
69livecheck.url   http://ftp.gnome.org/pub/gnome/sources/${my_name}/${branch}/
70livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}
Note: See TracBrowser for help on using the repository browser.