source: trunk/dports/sysutils/terminator/Portfile @ 122238

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

terminator: depend on vte-gtk2-compat instead of vte, increment revision to rebuild.

  • 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 122238 2014-07-18 06:49:19Z devans@macports.org $
3
4PortSystem              1.0
5PortGroup               python 1.0
6
7name                    terminator
8version                 0.97
9revision                1
10categories              sysutils
11platforms               darwin
12maintainers             ryandesign openmaintainer
13license                 GPL-2
14supported_archs         noarch
15
16description             multiple terminal emulator
17
18long_description        ${name} lets you open multiple terminal emulators in \
19                        a single window.
20
21homepage                http://gnometerminator.blogspot.com/p/introduction.html
22master_sites            http://launchpad.net/terminator/trunk/${version}/+download
23dist_subdir             ${name}
24
25checksums               rmd160  5b95e5705b0fe2bda6c70b39825f0e2381a62050 \
26                        sha256  9131847023fa22f11cf812f6ceff51b5d66d140b6518ad41d7fa8b0742bfd3f7
27
28if {![variant_isset python26] && ![variant_isset python27]} {
29    if {[file exists ${frameworks_dir}/Python.framework/Versions/2.6/lib/python2.6/site-packages/gtk-2.0/vtemodule.so]} {
30        default_variants +python26
31    } else {
32        default_variants +python27
33        variant_set python27
34    }
35}
36
37variant python26 conflicts python27 description {Use Python 2.6} {}
38if {[variant_isset python26]} {
39    python.default_version 26
40}
41
42variant python27 conflicts python26 description {Use Python 2.7} {}
43if {[variant_isset python27]} {
44    python.default_version 27
45}
46
47depends_build-append    port:intltool
48
49depends_lib-append      port:vte-gtk2-compat \
50                        port:hicolor-icon-theme \
51                        port:py${python.version}-keybinder \
52                        port:py${python.version}-notify-python
53
54post-patch {
55    reinplace -E "s|^#!/usr/bin/env python|#!${python.bin}|" ${worksrcpath}/${name}
56}
57
58pre-configure {
59    if {![file exists ${python.pkgd}/gtk-2.0/vtemodule.so]} {
60        ui_error "To install ${name} with the +python${python.version} variant, vte must be installed with the +python${python.version} variant."
61        return -code error "incompatible vte installation"
62    }
63}
64
65# no suffix since there are not multiple versions of this port
66python.link_binaries_suffix
67
68post-destroot {
69    foreach manpage {man1/terminator.1 man5/terminator_config.5} {
70        ln -s ${python.prefix}/share/man/${manpage} ${destroot}${prefix}/share/man/${manpage}
71    }
72   
73    set docdir ${destroot}${prefix}/share/doc/${name}
74    xinstall -d ${docdir}
75    xinstall -m 644 -W ${worksrcpath} \
76        COPYING \
77        ChangeLog \
78        README \
79        ${docdir}
80}
81
82livecheck.type          regex
83livecheck.url           http://launchpad.net/terminator/+download
84livecheck.regex         /${name}\[-_\](\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.