Ticket #47951: tmux.patch

File tmux.patch, 2.6 KB (added by larryv (Lawrence Velázquez), 9 years ago)

use github-1.0 for tmux and tmux-devel

  • dports/sysutils/tmux/Portfile

    diff --git a/dports/sysutils/tmux/Portfile b/dports/sysutils/tmux/Portfile
    index f41494b..e257f47 100644
    a b  
    22# $Id$
    33
    44PortSystem      1.0
     5PortGroup       github 1.0
    56
    6 name            tmux
     7github.setup    tmux tmux 2.0
    78conflicts       tmux-devel
    8 version         2.0
     9subport tmux-devel {
     10    github.setup    tmux tmux 00471dc78358bde092df65de5e2c375bf9be7437
     11    version         20150513-[string range ${github.version} 0 6]
     12    conflicts       tmux
     13}
    914categories      sysutils
    1015maintainers     evermeet.cx:tessarek
    1116description     terminal multiplexer
    long_description \ 
    1419    (or windows) to be accessed and controlled from a single terminal. \
    1520    tmux is intended to be a simple, modern, BSD-licensed alternative \
    1621    to programs such as GNU screen.
    17 homepage        http://tmux.sourceforge.net/
     22homepage        https://tmux.github.io
    1823platforms       darwin
    1924license         BSD
    20 master_sites    sourceforge:project/tmux/tmux/tmux-${version}/
    21 
    22 checksums       rmd160  5114e1e9d78667291375efcbd9be657b4f175806 \
    23                 sha256  795f4b4446b0ea968b9201c25e8c1ef8a6ade710ebca4657dd879c35916ad362
    2425
    2526depends_lib     port:libevent port:ncurses
    2627
     28subport tmux {
     29    github.tarball_from     releases
     30    checksums               rmd160  5114e1e9d78667291375efcbd9be657b4f175806 \
     31                            sha256  795f4b4446b0ea968b9201c25e8c1ef8a6ade710ebca4657dd879c35916ad362
     32}
     33subport tmux-devel {
     34    checksums               rmd160  14c35c5f0104b13f76d0f553bee820e3baf036ef \
     35                            sha256  e446072baaa8938e107b5267db36966b674e252105144e8b7a25653e6e0ab65f
     36    use_autoreconf          yes
     37    autoreconf.args-append  --force
     38}
     39
    2740platform darwin 8 {
    2841    # On Mac OS X 10.4 there's no libproc.h, so we use a previous version of osdep-darwin.c (c1b9948)
    2942    post-extract {
    variant screen description "behave more like screen" { 
    4760}
    4861
    4962notes "If you want integration with system pasteboard consider installing port tmux-pasteboard as well"
    50 
    51 livecheck.type  regex
    52 livecheck.url   ${homepage}
    53 livecheck.regex ${name}-(\[0-9\]+\\.\[0-9a-z\]+)${extract.suffix}
    54 
    55 subport tmux-devel {
    56     conflicts       tmux
    57 
    58     set git_sha1 00471dc78358bde092df65de5e2c375bf9be7437
    59     version         20150513-[string range $git_sha1 0 6]
    60 
    61     fetch.type      git
    62     git.url         http://git.code.sf.net/p/tmux/tmux-code.git
    63     git.branch      $git_sha1
    64 
    65     use_autoreconf          yes
    66     autoreconf.args-append  --force
    67 
    68     livecheck.type  none
    69 }