source: trunk/dports/gnome/keybinder/Portfile

Last change on this file was 154011, checked in by devans@…, 9 months ago

keybinder: update to version 0.3.1 using github, correct python configuration, mark py26-keybinder obsolete, replaced by py27-keybinder (#52545).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
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: Portfile 154011 2016-10-18 02:56:21Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6PortGroup           gobject_introspection 1.0
7
8github.setup        engla keybinder 0.3.1 v
9categories          gnome devel
10platforms           darwin
11maintainers         ryandesign openmaintainer
12license             GPL-2+
13
14description         library for global keyboard shortcuts in GTK applications
15
16long_description    ${name} is a library for registering global keyboard \
17                    shortcuts in GTK2-based applications using the X Window \
18                    System.
19
20checksums           rmd160  5540b349f193c49413e5e443c40dec2291a715c9 \
21                    sha256  3c4636965a228902ef70fb8df34e3cc11036b82c2c3be45819d0780f34345b7b
22
23depends_build       port:pkgconfig \
24                    port:autoconf \
25                    port:automake \
26                    port:libtool \
27                    port:gnome-common \
28                    port:gtk-doc
29
30depends_lib         port:gtk2
31
32patchfiles          patch-configure.ac.diff \
33                    patch_python-keybinder_Makefile.am.diff
34
35configure.cmd       ./autogen.sh
36
37configure.args      --disable-silent-rules \
38                    --enable-gtk-doc \
39                    --disable-lua
40
41if {${name} eq ${subport}} {
42    configure.args-append       --disable-python
43    gobject_introspection yes
44}
45
46set python.versions {27}
47 
48foreach v ${python.versions} {
49    set python.version  ${v}
50    set python.branch   [string range ${python.version} 0 end-1].[string index ${python.version} end]
51    set python.bin      ${prefix}/bin/python${python.branch}
52    set python.prefix   ${frameworks_dir}/Python.framework/Versions/${python.branch}
53
54    subport py${python.version}-keybinder {
55        depends_lib-append      port:${name} \
56                                port:python${python.version} \
57                                port:py${python.version}-gobject \
58                                port:py${python.version}-pygtk
59
60        configure.args-append   --enable-python \
61                                PYGOBJECT_CODEGEN=${python.prefix}/bin/pygtk-codegen-2.0
62
63        configure.python        ${python.bin}
64        configure.pkg_config_path   ${python.prefix}/lib/pkgconfig
65
66        build.dir               ${worksrcpath}/python-keybinder
67    }
68}
Note: See TracBrowser for help on using the repository browser.