source: trunk/dports/gnome/py27-gtkhtml2/Portfile @ 82323

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

py27-gtkhtml2: add pkgconfig dep

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 82323 2011-08-12 19:44:50Z jmr@macports.org $
3
4PortSystem          1.0
5
6name                py27-gtkhtml2
7version             2.25.3
8
9categories          gnome python
10platforms           darwin
11maintainers         nomaintainer
12
13description         "Extra" Python modules for some GNOME Desktop libraries.
14long_description    ${description}
15
16homepage            http://www.pygtk.org/
17
18set myname          gnome-python-extras
19set branch          [join [lrange [split ${version} .] 0 1] .]
20
21master_sites        gnome:sources/${myname}/${branch}
22distname            ${myname}-${version}
23dist_subdir         ${myname}
24
25checksums           md5     9f3b7ec5c57130b96061cb486b79c076 \
26                    sha1    e69e5288466c960ed6f985bb10c9969b21ed85a4 \
27                    rmd160  e09bc0152512e2caa61626a7dc788d7336f24e46
28
29use_bzip2           yes
30
31depends_build       port:pkgconfig
32depends_lib         port:py27-gtk\
33                                        port:libgtkhtml
34
35patchfiles          patch-configure.diff
36
37configure.args-append   --disable-allbindings --enable-gtkhtml2
38
39set python.branch   2.7
40set python.prefix   ${frameworks_dir}/Python.framework/Versions/${python.branch}
41set python.bin      ${python.prefix}/bin/python${python.branch}
42
43configure.args-append       --prefix=${python.prefix}
44configure.pkg_config_path   ${python.prefix}/lib/pkgconfig
45
46configure.python        ${python.bin}
47configure.env-append    PYGTK_CODEGEN=${python.prefix}/bin/pygobject-codegen-2.0
48
49post-destroot {
50        file delete "${destroot}/${python.prefix}/lib/pkgconfig/gnome-python-extras-2.0.pc"
51}
52
53platform darwin 9 {
54    post-patch {
55        reinplace "s|-export-symbols-regex.*||g" \
56            ${worksrcpath}/gtkhtml2/Makefile.in \
57    }
58}
59
60livecheck.type      regex
61livecheck.url       http://ftp.gnome.org/pub/gnome/sources/${myname}/${branch}/
62livecheck.regex     {LATEST-IS-(\d+(?:\.\d+)*)}
Note: See TracBrowser for help on using the repository browser.