Ticket #54013: Portfile

File Portfile, 2.7 KB (added by 1-61803, 8 years ago)
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
3PortSystem      1.0
4PortGroup       github 1.0
5
6github.setup    tmux tmux 2.4
7if {${subport} eq ${name}} {
8    revision        1
9    conflicts       tmux-devel
10}
11subport tmux-devel {
12    github.setup    tmux tmux 93062ad09952f411d48818b05dc9898bc14dcfde
13    version         20170421-[string range ${github.version} 0 6]
14    conflicts       tmux
15}
16categories      sysutils
17maintainers     {evermeet.cx:tessarek @tessus}
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
30if {${subport} eq ${name}} {
31    github.tarball_from     releases
32    checksums           rmd160  2f1f7e9a73155f7ad351c6067312e964ca514db1 \
33                        sha256  757d6b13231d0d9dd48404968fc114ac09e005d475705ad0cd4b7166f799b349
34}
35subport tmux-devel {
36    checksums           rmd160  c1ae84141646cf9137f45b0f78b1ff493e28fa1e \
37                        sha256  ce0c23547815ce3c4497d9997f85b43e42ebbbcffbece7788a1ce2548bccd9d4
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 ${worksrcpath}/example_tmux.conf ${destroot}${prefix}/share/doc/tmux
58    xinstall -m 0755 -d ${destroot}${prefix}/share/vim/vimfiles/syntax
59    xinstall -m 0644 ${filespath}/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"