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

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

devans/dports: vte-gtk2-compat, autoreconf to reconfigure with our intltool.m4, apply appropriate python configuration patch to configure.in instead of configure.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.9 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 122200 2014-07-17 18:41:58Z 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.in.diff
35
36# autoreconf to reconfigure with our intltool.m4
37
38use_autoreconf  yes
39autoreconf.args -fvi
40
41configure.args  --with-gtk=2.0 \
42                --disable-introspection \
43                --disable-Bsymbolic \
44                --disable-python
45
46configure.cflags-append -fstrict-aliasing
47
48# default to python27 bindings
49if {![variant_isset python27] && ![variant_isset python26] && ![variant_isset without_python]} {
50    default_variants +python27
51}
52
53variant python27 conflicts python26 \
54description {Build Bindings for Python 2.7} {
55    configure.args-delete --disable-python
56    set python_prefix ${frameworks_dir}/Python.framework/Versions/2.7
57    depends_lib-append port:py27-pygtk
58    configure.python ${prefix}/bin/python2.7
59    configure.pkg_config_path   ${python_prefix}/lib/pkgconfig
60    configure.env               PATH=${python_prefix}/bin:$env(PATH)
61}
62
63variant python26 conflicts python27 \
64description {Build Bindings for Python 2.6} {
65    configure.args-delete --disable-python
66    set python_prefix ${frameworks_dir}/Python.framework/Versions/2.6
67    depends_lib-append port:py26-pygtk
68    configure.python ${prefix}/bin/python2.6
69    configure.pkg_config_path   ${python_prefix}/lib/pkgconfig
70    configure.env               PATH=${python_prefix}/bin:$env(PATH)
71}
72
73variant without_python description {Disable Python support (deprecated, use -pythonXX instead)} {
74    default_variants -python27 -python26
75}
76
77# rename gnome-pty-helper to avoid a conflict with port vte
78
79post-destroot {
80    move ${destroot}${prefix}/libexec/gnome-pty-helper ${destroot}${prefix}/libexec/gnome-pty-helper-0.0
81}
82
83platform darwin 9 {
84    post-patch {
85        reinplace "s| -export-symbols-regex.*||g" \
86            ${worksrcpath}/python/Makefile.in
87        reinplace "s|-export-symbols-regex.*| \\\\|g" \
88            ${worksrcpath}/src/Makefile.in
89    }
90}
91
92livecheck.type  none
Note: See TracBrowser for help on using the repository browser.