source: trunk/dports/sysutils/tmux/Portfile @ 127987

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

tmux: Add a comment regarding the previous commit

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 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 127987 2014-11-10 07:03:07Z jeremyhu@macports.org $
3
4PortSystem      1.0
5
6name            tmux
7version         1.9a
8revision        3
9categories      sysutils
10maintainers     evermeet.cx:tessarek
11description     terminal multiplexer
12long_description \
13    tmux is a \"terminal multiplexer\", it enables a number of terminals \
14    (or windows) to be accessed and controlled from a single terminal. \
15    tmux is intended to be a simple, modern, BSD-licensed alternative \
16    to programs such as GNU screen.
17homepage        http://tmux.sourceforge.net/
18platforms       darwin
19license         BSD
20master_sites    sourceforge:project/tmux/tmux/tmux-1.9
21
22checksums       rmd160  29ae5f12aa71ee800643fb2df23573bee83f5965 \
23                sha256  c5e3b22b901cf109b20dab54a4a651f0471abd1f79f6039d79b250d21c2733f5
24
25depends_lib     port:libevent port:ncurses
26
27# https://trac.macports.org/ticket/18357
28configure.cppflags-append -D__DARWIN_VERS_1050=0
29
30platform darwin 8 {
31    # On Mac OS X 10.4 there's no libproc.h, so we use a previous version of osdep-darwin.c (c1b9948)
32    post-extract {
33        file copy -force ${filespath}/osdep-darwin.8.c ${worksrcpath}/osdep-darwin.c
34    }
35}
36
37post-destroot {
38    xinstall -m 0755 -d ${destroot}${prefix}/share/doc/tmux
39    foreach file [glob ${worksrcpath}/examples/*.conf] {
40        xinstall -m 0644 $file ${destroot}${prefix}/share/doc/tmux
41    }
42    xinstall -m 0755 -d ${destroot}${prefix}/share/vim/vimfiles/syntax
43    xinstall -m 0644 ${worksrcpath}/examples/tmux.vim ${destroot}${prefix}/share/vim/vimfiles/syntax
44    xinstall -m 0755 -d ${destroot}${prefix}/share/vim/vimfiles/ftdetect
45    xinstall -m 0644 ${filespath}/ftdetect-tmux.vim ${destroot}${prefix}/share/vim/vimfiles/ftdetect/tmux.vim
46}
47
48variant screen description "behave more like screen" {
49    post-destroot {
50        xinstall -m 0644 ${worksrcpath}/examples/screen-keys.conf ${destroot}${prefix}/etc/tmux.conf
51    }
52}
53
54notes "If you want integration with system pasteboard consider installing port tmux-pasteboard as well"
55
56livecheck.type  regex
57livecheck.url   ${homepage}
58livecheck.regex ${name}-(\[0-9\]+\\.\[0-9a-z\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.