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

Last change on this file since 145953 was 145953, checked in by cal@…, 4 years ago

tmux-devel: update to current dev version, #50691

Patch from maintainer, moves the patch from r145951 and r145936 to tmux only
and drops it from tmux-devel.

  • 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 145953 2016-02-22 19:33:34Z cal@macports.org $
3
4PortSystem      1.0
5PortGroup       github 1.0
6
7github.setup    tmux tmux 2.1
8if {${subport} eq ${name}} {
9    revision        3
10    conflicts       tmux-devel
11}
12subport tmux-devel {
13    github.setup    tmux tmux e9d369a09e48ea8f940958025c8444988d31e840
14    version         20160219-[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  db078b7149e009aecb200c4cbb39be72190a14dc \
35                            sha256  31564e7bf4bcef2defb3cb34b9e596bd43a3937cad9e5438701a81a5a9af6176
36    patchfiles              fix-reattach-with-session-list.patch
37}
38subport tmux-devel {
39    checksums               rmd160  c38a7cc9800025436a419690940c26a370828cc9 \
40                            sha256  2a48ff122f22de57855f80cec9acc74ec886a8fcf4a0236d8421cd048771a3ad
41
42    use_autoreconf          yes
43    autoreconf.cmd          ./autogen.sh
44    autoreconf.args
45    depends_build           port:autoconf \
46                            port:automake \
47                            port:libtool \
48                            port:pkgconfig
49}
50
51platform darwin 8 {
52    # On Mac OS X 10.4 there's no libproc.h, so we use a previous version of osdep-darwin.c (c1b9948)
53    post-extract {
54        file copy -force ${filespath}/osdep-darwin.8.c ${worksrcpath}/osdep-darwin.c
55    }
56}
57
58post-destroot {
59    xinstall -m 0755 -d ${destroot}${prefix}/share/doc/tmux
60    xinstall -m 0644 {*}[glob ${worksrcpath}/examples/*.conf] ${destroot}${prefix}/share/doc/tmux
61    xinstall -m 0755 -d ${destroot}${prefix}/share/vim/vimfiles/syntax
62    xinstall -m 0644 ${worksrcpath}/examples/tmux.vim ${destroot}${prefix}/share/vim/vimfiles/syntax
63    xinstall -m 0755 -d ${destroot}${prefix}/share/vim/vimfiles/ftdetect
64    xinstall -m 0644 ${filespath}/ftdetect-tmux.vim ${destroot}${prefix}/share/vim/vimfiles/ftdetect/tmux.vim
65}
66
67variant screen description "behave more like screen" {
68    post-destroot {
69        xinstall -m 0644 ${worksrcpath}/examples/screen-keys.conf ${destroot}${prefix}/etc/tmux.conf
70    }
71}
72
73notes "If you want integration with system pasteboard consider installing port tmux-pasteboard as well"
Note: See TracBrowser for help on using the repository browser.