source: trunk/dports/sysutils/tmux/Portfile

Last change on this file was 153405, checked in by ryandesign@…, 10 months ago

tmux: update to 2.3

Also update tmux-devel to 20160929.

Resolves #52458

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 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 153405 2016-09-29 22:19:55Z ryandesign@macports.org $
3
4PortSystem      1.0
5PortGroup       github 1.0
6
7github.setup    tmux tmux 2.3
8if {${subport} eq ${name}} {
9    revision        0
10    conflicts       tmux-devel
11}
12subport tmux-devel {
13    github.setup    tmux tmux 52869ed182482c26163799a7215139f4d81b6fca
14    version         20160929-[string range ${github.version} 0 6]
15    revision        0
16    conflicts       tmux
17}
18categories      sysutils
19maintainers     evermeet.cx:tessarek
20description     terminal multiplexer
21long_description \
22    tmux is a \"terminal multiplexer\", it enables a number of terminals \
23    (or windows) to be accessed and controlled from a single terminal. \
24    tmux is intended to be a simple, modern, BSD-licensed alternative \
25    to programs such as GNU screen.
26homepage        https://tmux.github.io
27platforms       darwin
28license         BSD
29
30depends_lib     port:libevent port:ncurses
31
32if {${subport} eq ${name}} {
33    github.tarball_from     releases
34    checksums               rmd160  57c282ae32dcaf5bcbab9a9f049630c3555b787c \
35                            sha256  55313e132f0f42de7e020bf6323a1939ee02ab79c48634aa07475db41573852b
36}
37subport tmux-devel {
38    checksums               rmd160  6cb5463c9604022ee8ddf30fc2393c812293e737 \
39                            sha256  eb8f101711f47244669ef71012a81cc7fe90680f27c82a32913de303a707e361
40
41    use_autoreconf          yes
42    autoreconf.cmd          ./autogen.sh
43    autoreconf.args
44    depends_build           port:autoconf \
45                            port:automake \
46                            port:libtool \
47                            port:pkgconfig
48}
49
50platform darwin 8 {
51    # On Mac OS X 10.4 there's no libproc.h, so we use a previous version of osdep-darwin.c (c1b9948)
52    post-extract {
53        file copy -force ${filespath}/osdep-darwin.8.c ${worksrcpath}/osdep-darwin.c
54    }
55}
56
57post-destroot {
58    xinstall -m 0755 -d ${destroot}${prefix}/share/doc/tmux
59    xinstall -m 0644 ${worksrcpath}/example_tmux.conf ${destroot}${prefix}/share/doc/tmux
60    xinstall -m 0755 -d ${destroot}${prefix}/share/vim/vimfiles/syntax
61    xinstall -m 0644 ${filespath}/tmux.vim ${destroot}${prefix}/share/vim/vimfiles/syntax
62    xinstall -m 0755 -d ${destroot}${prefix}/share/vim/vimfiles/ftdetect
63    xinstall -m 0644 ${filespath}/ftdetect-tmux.vim ${destroot}${prefix}/share/vim/vimfiles/ftdetect/tmux.vim
64}
65
66variant screen description "behave more like screen" {
67    post-destroot {
68        xinstall -m 0644 ${worksrcpath}/examples/screen-keys.conf ${destroot}${prefix}/etc/tmux.conf
69    }
70}
71
72notes "If you want integration with system pasteboard consider installing port tmux-pasteboard as well"
Note: See TracBrowser for help on using the repository browser.