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

Last change on this file since 91513 was 91513, checked in by ryandesign@…, 8 years ago

terminator: add intltool build dependency

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