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