source: trunk/dports/gnome/py-gtkspell/Portfile

Last change on this file was 142391, checked in by petr@…, 21 months ago

py-gtkspell: retire py26 subport, replaced by py27

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 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 142391 2015-11-10 21:11:23Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                py-gtkspell
7version             2.25.3
8revision            3
9
10categories          gnome python
11license             GPL-2
12platforms           darwin
13maintainers         nomaintainer
14
15description         "Extra" Python modules for some GNOME Desktop libraries.
16long_description    ${description}
17
18homepage            http://www.pygtk.org/
19
20set myname          gnome-python-extras
21set branch          [join [lrange [split ${version} .] 0 1] .]
22
23master_sites        gnome:sources/${myname}/${branch}
24distname            ${myname}-${version}
25dist_subdir         ${myname}
26
27checksums           md5     9f3b7ec5c57130b96061cb486b79c076 \
28                    sha1    e69e5288466c960ed6f985bb10c9969b21ed85a4 \
29                    rmd160  e09bc0152512e2caa61626a7dc788d7336f24e46
30
31use_bzip2           yes
32
33depends_build       port:pkgconfig
34depends_lib         port:gtkspell2
35
36patchfiles          patch-configure.diff
37
38configure.args-append   --disable-allbindings --enable-gtkspell
39
40subport py27-gtkspell {
41    depends_lib-append port:py27-pygtk
42}
43
44if {$subport == "py27-gtkspell"} {
45    set python.branch   2.7
46} else {
47    set python.branch dummy
48}
49
50
51set python.prefix   ${frameworks_dir}/Python.framework/Versions/${python.branch}
52set python.bin      ${python.prefix}/bin/python${python.branch}
53
54configure.args-append       --prefix=${python.prefix}
55configure.pkg_config_path   ${python.prefix}/lib/pkgconfig
56
57configure.python        ${python.bin}
58configure.env-append    PYGTK_CODEGEN=${python.prefix}/bin/pygobject-codegen-2.0
59
60post-destroot {
61        file delete "${destroot}/${python.prefix}/lib/pkgconfig/gnome-python-extras-2.0.pc"
62}
63
64platform darwin 9 {
65    post-patch {
66        reinplace "s|-export-symbols-regex.*||g" \
67            ${worksrcpath}/gtkspell/Makefile.in
68    }
69}
70
71livecheck.type      gnome-with-unstable
72livecheck.name      ${myname}
Note: See TracBrowser for help on using the repository browser.