source: trunk/dports/gnome/vte-gtk2-compat/Portfile @ 128176

Last change on this file since 128176 was 127709, checked in by devans@…, 5 years ago

vte-gtk2-compat: drop +python26 variant and legacy +without_python variant, default to optional +python27 variant.

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