Ticket #46570: xraylib-perl-variants.2.diff

File xraylib-perl-variants.2.diff, 2.9 KB (added by mojca (Mojca Miklavec), 9 years ago)
  • Portfile

     
    33
    44PortSystem          1.0
    55PortGroup           github 1.0
     6PortGroup           perl5 1.0
    67
    78name                xraylib
    89version             3.1.0
     
    4344use_parallel_build  no
    4445configure.ccache    no
    4546
     47perl5.conflict_variants yes
     48perl5.branches 5.16 5.18 5.20 5.22
     49perl5.create_variants ${perl5.branches}
    4650
    47 variant perl5_10 description {Perl 5.10 bindings} conflicts perl5_12 perl5_14 perl5_16 perl5_18 perl5_20 {
    48     configure.args-append --enable-perl --enable-perl-integration PERL=${prefix}/bin/perl5.10
     51if {[variant_isset perl5_16] || [variant_isset perl5_18] || [variant_isset perl5_20] || [variant_isset perl5_22]} {
     52    configure.args-append --enable-perl --enable-perl-integration PERL=${prefix}/bin/perl${perl5.major}
    4953    configure.args-delete --disable-perl
    5054    depends_build-append port:swig-perl
    51     depends_lib-append port:perl5.10
    5255}
    5356
    54 variant perl5_12 description {Perl 5.12 bindings} conflicts perl5_10 perl5_14 perl5_16 perl5_18 perl5_20 {
    55     configure.args-append --enable-perl --enable-perl-integration PERL=${prefix}/bin/perl5.12
    56     configure.args-delete --disable-perl
    57     depends_build-append port:swig-perl
    58     depends_lib-append port:perl5.12
    59 }
    60 
    61 variant perl5_14 description {Perl 5.14 bindings} conflicts perl5_10 perl5_12 perl5_16 perl5_18 perl5_20 {
    62     configure.args-append --enable-perl --enable-perl-integration PERL=${prefix}/bin/perl5.14
    63     configure.args-delete --disable-perl
    64     depends_build-append port:swig-perl
    65     depends_lib-append port:perl5.14
    66 }
    67 
    68 variant perl5_16 description {Perl 5.16 bindings} conflicts perl5_10 perl5_12 perl5_14 perl5_18 perl5_20 {
    69     configure.args-append --enable-perl --enable-perl-integration PERL=${prefix}/bin/perl5.16
    70     configure.args-delete --disable-perl
    71     depends_build-append port:swig-perl
    72     depends_lib-append port:perl5.16
    73 }
    74 
    75 variant perl5_18 description {Perl 5.18 bindings} conflicts perl5_10 perl5_12 perl5_14 perl5_16 perl5_20 {
    76     configure.args-append --enable-perl --enable-perl-integration PERL=${prefix}/bin/perl5.18
    77     configure.args-delete --disable-perl
    78     depends_build-append port:swig-perl
    79     depends_lib-append port:perl5.18
    80 }
    81 
    82 variant perl5_20 description {Perl 5.20 bindings} conflicts perl5_10 perl5_12 perl5_14 perl5_16 perl5_18 {
    83     configure.args-append --enable-perl --enable-perl-integration PERL=${prefix}/bin/perl5.20
    84     configure.args-delete --disable-perl
    85     depends_build-append port:swig-perl
    86     depends_lib-append port:perl5.20
    87 }
    88 
    8957variant python26 description {Python 2.6 bindings} conflicts python27 python33 python34 {
    9058    configure.args-append --enable-python --enable-python-integration --enable-python-numpy PYTHON=${prefix}/bin/python2.6
    9159    configure.args-delete --disable-python --disable-python-numpy