Ticket #52095: mosh-patch.txt

File mosh-patch.txt, 1.6 KB (added by blair (Blair Zajac), 8 years ago)
Line 
1Index: Portfile
2===================================================================
3--- Portfile    (revision 151946)
4+++ Portfile    (working copy)
5@@ -2,10 +2,11 @@
6 # $Id$
7 
8 PortSystem              1.0
9+PortGroup               perl5 1.0
10 
11 name                    mosh
12 version                 1.2.5
13-revision                2
14+revision                3
15 categories              net
16 license                 {GPL-3+ OpenSSLException}
17 platforms               darwin
18@@ -18,8 +19,14 @@
19 master_sites            ${homepage}
20 
21 checksums               rmd160  3abb76e2adeb6a9e7d69b35621dfa7e172b1ce99 \
22-                        sha256  1af809e5d747c333a852fbf7acdbf4d354dc4bbc2839e3afe5cf798190074be3
23+    sha256  1af809e5d747c333a852fbf7acdbf4d354dc4bbc2839e3afe5cf798190074be3
24 
25+perl5.require_variant   yes
26+perl5.conflict_variants yes
27+perl5.branches          5.22 5.24
28+perl5.create_variants   ${perl5.branches}
29+perl5.default_branch    5.24
30+
31 depends_build           port:pkgconfig
32 
33 depends_lib             port:ncurses \
34@@ -26,11 +33,11 @@
35                         port:protobuf-cpp \
36                         port:zlib \
37                         path:lib/libssl.dylib:openssl \
38-                        port:p5.22-getopt-long \
39-                        port:p5.22-io-socket-ip
40+                        port:p${perl5.major}-getopt-long \
41+                        port:p${perl5.major}-io-socket-ip
42 
43 post-patch {
44-    reinplace "s|#!/usr/bin/env perl|#!${prefix}/bin/perl5.22|" ${worksrcpath}/scripts/mosh.pl
45+    reinplace "s|#!/usr/bin/env perl|#!${prefix}/bin/perl${perl5.major}|" ${worksrcpath}/scripts/mosh.pl
46 }
47 
48 post-destroot {