# -*- 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 # $Id: Portfile 142815 2015-11-24 03:22:35Z jmr@macports.org $ PortSystem 1.0 PortGroup python 1.0 name terminator version 0.98 categories sysutils platforms darwin maintainers ryandesign openmaintainer license GPL-2 supported_archs noarch description multiple terminal emulator long_description ${name} lets you open multiple terminal emulators in \ a single window. homepage http://gnometerminator.blogspot.com/p/introduction.html master_sites http://launchpad.net/terminator/trunk/${version}/+download dist_subdir ${name} checksums rmd160 cddb24240b74fba3eb6694d9d4aaff11329a14b6 \ sha256 0a6d8c9ffe36d67e60968fbf2752c521e5d498ceda42ef171ad3e966c02f26c1 if {![variant_isset python26] && ![variant_isset python27]} { if {[file exists ${frameworks_dir}/Python.framework/Versions/2.6/lib/python2.6/site-packages/gtk-2.0/vtemodule.so]} { default_variants +python26 } else { default_variants +python27 variant_set python27 } } variant python26 conflicts python27 description {Use Python 2.6} {} if {[variant_isset python26]} { python.default_version 26 } variant python27 conflicts python26 description {Use Python 2.7} {} if {[variant_isset python27]} { python.default_version 27 } depends_build-append port:intltool depends_lib-append port:vte-gtk2-compat \ port:hicolor-icon-theme \ port:py${python.version}-keybinder \ port:py${python.version}-notify-python post-patch { reinplace -E "s|^#!/usr/bin/env python|#!${python.bin}|" ${worksrcpath}/${name} } pre-configure { if {![file exists ${python.pkgd}/gtk-2.0/vtemodule.so]} { ui_error "To install ${name} with the +python${python.version} variant, vte must be installed with the +python${python.version} variant." return -code error "incompatible vte installation" } } post-destroot { foreach manpage {man1/terminator.1 man5/terminator_config.5} { ln -s ${python.prefix}/share/man/${manpage} ${destroot}${prefix}/share/man/${manpage} } set docdir ${destroot}${prefix}/share/doc/${name} xinstall -d ${docdir} xinstall -m 644 -W ${worksrcpath} \ COPYING \ ChangeLog \ README \ ${docdir} } livecheck.type regex livecheck.url http://launchpad.net/terminator/+download livecheck.regex /${name}\[-_\](\[0-9.\]+)${extract.suffix}