source: users/devans/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
RevLine 
[35489]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
[20306]2# $Id: Portfile 122200 2014-07-17 18:41:58Z devans@macports.org $
[32989]3
4PortSystem      1.0
5
[122198]6name            vte-gtk2-compat
7set gname       vte
[84400]8version         0.28.2
[41997]9set branch      [join [lrange [split $version .] 0 1] .]
[122198]10maintainers     devans openmaintainer
[32989]11categories      gnome
[84924]12license         LGPL
[35489]13platforms       darwin
[32989]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/
[122198]22master_sites    gnome:sources/$gname/$branch/
[84400]23use_xz          yes
[29296]24
[122198]25distname        ${gname}-${version}
26
[84400]27checksums       rmd160  8f3396d4e98023b74898e938331917b181964158 \
28                sha256  86cf0b81aa023fa93ed415653d51c96767f20b2d7334c893caba71e42654b0ae
[29296]29
[71466]30depends_build   port:intltool \
[32989]31                port:pkgconfig
[79685]32depends_lib     port:gtk2
[32989]33
[122200]34patchfiles      patch-configure.in.diff
[53294]35
[122200]36# autoreconf to reconfigure with our intltool.m4
37
38use_autoreconf  yes
39autoreconf.args -fvi
40
[122198]41configure.args  --with-gtk=2.0 \
42                --disable-introspection \
43                --disable-Bsymbolic \
[79685]44                --disable-python
[29296]45
[43557]46configure.cflags-append -fstrict-aliasing
[6851]47
[77564]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} {
[79685]55    configure.args-delete --disable-python
[77564]56    set python_prefix ${frameworks_dir}/Python.framework/Versions/2.7
[100337]57    depends_lib-append port:py27-pygtk
[77564]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} {
[79685]65    configure.args-delete --disable-python
[77564]66    set python_prefix ${frameworks_dir}/Python.framework/Versions/2.6
[100337]67    depends_lib-append port:py26-pygtk
[77564]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
[79687]73variant without_python description {Disable Python support (deprecated, use -pythonXX instead)} {
[105778]74    default_variants -python27 -python26
[79687]75}
[29296]76
[122199]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
[35489]83platform darwin 9 {
84    post-patch {
[33742]85        reinplace "s| -export-symbols-regex.*||g" \
86            ${worksrcpath}/python/Makefile.in
87        reinplace "s|-export-symbols-regex.*| \\\\|g" \
88            ${worksrcpath}/src/Makefile.in
[35489]89    }
[33742]90}
[41997]91
[122198]92livecheck.type  none
Note: See TracBrowser for help on using the repository browser.