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

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

ncurses: update to 6.0, rev bump dependents due to new ABI

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