Ticket #46749: mod_perl2-with-perl-variants.Portfile.diff

File mod_perl2-with-perl-variants.Portfile.diff, 1.1 KB (added by mojca (Mojca Miklavec), 10 years ago)

add variants to support multiple perl versions to mod_perl2

  • Portfile

     
    22# $Id$
    33
    44PortSystem          1.0
     5PortGroup           perl5 1.0
    56
    67name                mod_perl2
    78version             2.0.8
     
    3132checksums           rmd160  5863f229c1fe982852f05bf5c1af5d28dae28b7f \
    3233                    sha256  35dc1b7a40a90a395ce88bba2df84f22289975f34d1757de6d715560c20a20e6
    3334
    34 depends_lib         path:bin/perl:perl5 port:apache2
     35perl5.require_variant   yes
     36perl5.conflict_variants yes
     37perl5.branches          5.16 5.18 5.20
     38perl5.create_variants   ${perl5.branches}
     39
     40depends_lib         port:apache2 \
     41                    port:perl${perl5.major}
    3542worksrcdir          mod_perl-${version}
    3643
    3744if {[string match *clang* ${configure.compiler}]} {
     
    4148set APXS ${prefix}/apache2/bin/apxs
    4249
    4350configure {
    44     system -W ${worksrcpath} "${prefix}/bin/perl Makefile.PL MP_APXS=${APXS}"
     51    system -W ${worksrcpath} "${perl5.bin} Makefile.PL MP_APXS=${APXS}"
    4552}
    4653
    4754destroot.violate_mtree yes