source: trunk/dports/net/mosh/Portfile

Last change on this file was 154382, checked in by mojca@…, 6 weeks ago

mosh: remove perl5_22 (#52081) and revbump

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 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 154382 2016-10-28 21:23:18Z ryandesign@macports.org $
3
4PortSystem              1.0
5PortGroup               perl5 1.0
6
7name                    mosh
8version                 1.2.6
9revision                2
10categories              net
11license                 {GPL-3+ OpenSSLException}
12platforms               darwin
13maintainers             mit.edu:quentin
14description             Mobile Shell
15long_description        Mosh is a replacement for ssh that better handles \
16                        high-latency, high-packet-loss, dynamically-addressed \
17                        network links
18homepage                http://mosh.org/
19master_sites            ${homepage}
20
21checksums               rmd160  4e06957083f9fcdd4c85b8f3b3b3407f734eed0d \
22                        sha256  7e82b7fbfcc698c70f5843bb960dadb8e7bd7ac1d4d2151c9d979372ea850e85
23
24perl5.require_variant   yes
25perl5.conflict_variants yes
26perl5.branches          5.24
27perl5.default_branch    5.24
28perl5.create_variants   ${perl5.branches}
29
30depends_build           port:pkgconfig
31
32depends_lib             path:lib/libssl.dylib:openssl \
33                        port:ncurses \
34                        port:p${perl5.major}-getopt-long \
35                        port:p${perl5.major}-io-socket-ip \
36                        port:protobuf-cpp \
37                        port:zlib
38
39post-patch {
40    reinplace "s|#!/usr/bin/env perl|#!${prefix}/bin/perl${perl5.major}|" \
41        ${worksrcpath}/scripts/mosh.pl
42}
43
44configure.args          --with-crypto-library=openssl
45
46post-destroot {
47    xinstall -d ${destroot}${prefix}/etc/bash_completion.d
48    copy ${worksrcpath}/conf/bash-completion/completions/mosh \
49         ${destroot}${prefix}/etc/bash_completion.d/mosh
50}
51
52livecheck.type          regex
53livecheck.url           ${homepage}
54livecheck.regex         "[quotemeta ${name}]-(\[0-9a-z.\]+)[quotemeta ${extract.suffix}]"
Note: See TracBrowser for help on using the repository browser.