source: users/devans/dports/gnome/vte-gtk2-compat/Portfile @ 122199

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

devans/dports: vte-gtk2-compat: rename installed binary gnome-pty-helper to avoid a conflict with port vte.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 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 122199 2014-07-17 18:09:03Z devans@macports.org $
3
4PortSystem      1.0
5
6name            vte-gtk2-compat
7set gname       vte
8version         0.28.2
9set branch      [join [lrange [split $version .] 0 1] .]
10maintainers     devans openmaintainer
11categories      gnome
12license         LGPL
13platforms       darwin
14description     Terminal widget with improved accessibility and I18N support.
15
16long_description \
17    Terminal widget with improved font, internationalisation and \
18    accessibility support for the GNOME 2 desktop.  Designed to \
19    replace libzvt.
20
21homepage        http://www.gnome.org/
22master_sites    gnome:sources/$gname/$branch/
23use_xz          yes
24
25distname        ${gname}-${version}
26
27checksums       rmd160  8f3396d4e98023b74898e938331917b181964158 \
28                sha256  86cf0b81aa023fa93ed415653d51c96767f20b2d7334c893caba71e42654b0ae
29
30depends_build   port:intltool \
31                port:pkgconfig
32depends_lib     port:gtk2
33
34patchfiles      patch-configure.diff
35
36configure.args  --with-gtk=2.0 \
37                --disable-introspection \
38                --disable-Bsymbolic \
39                --disable-python
40
41configure.cflags-append -fstrict-aliasing
42
43# default to python27 bindings
44if {![variant_isset python27] && ![variant_isset python26] && ![variant_isset without_python]} {
45    default_variants +python27
46}
47
48variant python27 conflicts python26 \
49description {Build Bindings for Python 2.7} {
50    configure.args-delete --disable-python
51    set python_prefix ${frameworks_dir}/Python.framework/Versions/2.7
52    depends_lib-append port:py27-pygtk
53    configure.python ${prefix}/bin/python2.7
54    configure.pkg_config_path   ${python_prefix}/lib/pkgconfig
55    configure.env               PATH=${python_prefix}/bin:$env(PATH)
56}
57
58variant python26 conflicts python27 \
59description {Build Bindings for Python 2.6} {
60    configure.args-delete --disable-python
61    set python_prefix ${frameworks_dir}/Python.framework/Versions/2.6
62    depends_lib-append port:py26-pygtk
63    configure.python ${prefix}/bin/python2.6
64    configure.pkg_config_path   ${python_prefix}/lib/pkgconfig
65    configure.env               PATH=${python_prefix}/bin:$env(PATH)
66}
67
68variant without_python description {Disable Python support (deprecated, use -pythonXX instead)} {
69    default_variants -python27 -python26
70}
71
72# rename gnome-pty-helper to avoid a conflict with port vte
73
74post-destroot {
75    move ${destroot}${prefix}/libexec/gnome-pty-helper ${destroot}${prefix}/libexec/gnome-pty-helper-0.0
76}
77
78platform darwin 9 {
79    post-patch {
80        reinplace "s| -export-symbols-regex.*||g" \
81            ${worksrcpath}/python/Makefile.in
82        reinplace "s|-export-symbols-regex.*| \\\\|g" \
83            ${worksrcpath}/src/Makefile.in
84    }
85}
86
87livecheck.type  none
Note: See TracBrowser for help on using the repository browser.