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

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

tmux: update to 2.2; -devel to 20160410; maintainer #51143

  • 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 147761 2016-04-15 02:37:46Z khindenburg@macports.org $
3
4PortSystem      1.0
5PortGroup       github 1.0
6
7github.setup    tmux tmux 2.2
8if {${subport} eq ${name}} {
9    revision        0
10    conflicts       tmux-devel
11}
12subport tmux-devel {
13    github.setup    tmux tmux 9a4b45dc0fdefead3fe9d471e144da78163860d0
14    version         20160410-[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  5d636bb7a4c5d80e2dba4179ddd65bc49f471e37 \
35                            sha256  bc28541b64f99929fe8e3ae7a02291263f3c97730781201824c0f05d7c8e19e4
36}
37subport tmux-devel {
38    checksums               rmd160  941bb491c7e40ab1ff44306fbb1144bdde30de9b \
39                            sha256  6f45b5bcd1aabf6c4b036a0529ab913b6c5e4dcfc53c21542ea0669fe1eb2f45
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.