Ticket #46570: git-perl-variants.diff
File git-perl-variants.diff, 2.9 KB (added by mojca (Mojca Miklavec), 10 years ago) |
---|
-
Portfile
2 2 # $Id$ 3 3 4 4 PortSystem 1.0 5 PortGroup perl5 1.0 5 6 6 7 name git 7 8 version 2.2.2 … … 25 26 rmd160 fa2b2923a052c39bea1be91e47ed05d984199740 \ 26 27 sha256 c9340fad1f521f3782abca4839d66bfee237f3e931856413561cf1b55fc9d550 \ 27 28 29 perl5.require_variant yes 30 perl5.conflict_variants yes 31 perl5.branches 5.16 5.18 5.20 32 perl5.create_variants ${perl5.branches} 33 28 34 depends_run port:rsync 29 35 30 36 depends_lib port:curl \ 31 port:zlib \ 37 port:expat \ 38 port:libiconv \ 32 39 port:openssl \ 33 port: expat\34 port: libiconv40 port:perl${perl5.major} \ 41 port:zlib 35 42 36 if {[variant_isset perl5_12]} { 37 set perl_version 5.12 38 } elseif {[variant_isset perl5_14]} { 39 set perl_version 5.14 40 } else { 41 set perl_version 5.16 42 default_variants +perl5_16 43 } 43 depends_run-append port:p${perl5.major}-authen-sasl \ 44 port:p${perl5.major}-error \ 45 port:p${perl5.major}-net-smtp-ssl \ 46 port:p${perl5.major}-term-readkey 44 47 45 46 depends_run-append port:p${perl_version}-authen-sasl \47 port:p${perl_version}-error \48 port:p${perl_version}-net-smtp-ssl \49 port:p${perl_version}-term-readkey50 51 depends_lib-append port:perl${perl_version}52 53 48 patchfiles patch-Makefile.diff git-subtree.1.diff 54 49 patch.pre_args -p1 55 50 … … 70 65 CURLDIR=${prefix} \ 71 66 OPENSSLDIR=${prefix} \ 72 67 ICONVDIR=${prefix} \ 73 PERL_PATH="${prefix}/bin/perl${perl _version}" \68 PERL_PATH="${prefix}/bin/perl${perl5.major}" \ 74 69 NO_FINK=1 \ 75 70 NO_DARWIN_PORTS=1 \ 76 71 NO_R_TO_GCC_LINKER=1 \ … … 147 142 depends_lib-append port:python27 148 143 } 149 144 150 variant perl5_16 conflicts perl5_14 perl5_12 description {use perl 5.16} {}151 variant perl5_14 conflicts perl5_16 perl5_12 description {use perl 5.14} {}152 variant perl5_12 conflicts perl5_16 perl5_14 description {use perl 5.12} {}153 154 145 variant pcre { 155 146 build.args-append LIBPCREDIR=${prefix} USE_LIBPCRE=1 156 147 depends_lib-append port:pcre … … 206 197 207 198 variant svn description {Bi-directional subversion repository support} { 208 199 depends_run-append port:subversion \ 209 port:p${perl _version}-libwww-perl \210 port:p${perl _version}-svn-simple200 port:p${perl5.major}-libwww-perl \ 201 port:p${perl5.major}-svn-simple 211 202 } 212 203 213 204 variant bash_completion {