Index: Portfile =================================================================== --- Portfile (revision 151946) +++ Portfile (working copy) @@ -2,10 +2,11 @@ # $Id$ PortSystem 1.0 +PortGroup perl5 1.0 name mosh version 1.2.5 -revision 2 +revision 3 categories net license {GPL-3+ OpenSSLException} platforms darwin @@ -18,8 +19,14 @@ master_sites ${homepage} checksums rmd160 3abb76e2adeb6a9e7d69b35621dfa7e172b1ce99 \ - sha256 1af809e5d747c333a852fbf7acdbf4d354dc4bbc2839e3afe5cf798190074be3 + sha256 1af809e5d747c333a852fbf7acdbf4d354dc4bbc2839e3afe5cf798190074be3 +perl5.require_variant yes +perl5.conflict_variants yes +perl5.branches 5.22 5.24 +perl5.create_variants ${perl5.branches} +perl5.default_branch 5.24 + depends_build port:pkgconfig depends_lib port:ncurses \ @@ -26,11 +33,11 @@ port:protobuf-cpp \ port:zlib \ path:lib/libssl.dylib:openssl \ - port:p5.22-getopt-long \ - port:p5.22-io-socket-ip + port:p${perl5.major}-getopt-long \ + port:p${perl5.major}-io-socket-ip post-patch { - reinplace "s|#!/usr/bin/env perl|#!${prefix}/bin/perl5.22|" ${worksrcpath}/scripts/mosh.pl + reinplace "s|#!/usr/bin/env perl|#!${prefix}/bin/perl${perl5.major}|" ${worksrcpath}/scripts/mosh.pl } post-destroot {