On Feb 5, 2015, at 5:30 PM, [email protected] wrote:
>
> Revision
> 132613
> Author
> [email protected]
> Date
> 2015-02-05 15:30:15 -0800 (Thu, 05 Feb 2015)
> Log Message
>
> eperl: Convert to regular port, replaces p5*-eperl, closes #46757, adds
> support for 5.16-5.20
> Modified Paths
>
> • trunk/dports/perl/eperl/Portfile
> • trunk/dports/perl/p5-eperl/Portfile
> Added Paths
>
> • trunk/dports/perl/eperl/
> Diff
>
> Modified: trunk/dports/perl/eperl/Portfile (132505 => 132613)
> +# Choose the perl versions to support
> +set perlversions {5.16 5.18 5.20}
> +# Set the version that should be used as default
> +set defaultversion 5.16
> +
> +# Internal helper variables
> +set default_version [string map {. _} $defaultversion]
> +set nondefault_set no
> +
> +# Generate the perl variants
> +foreach perlversion $perlversions {
> + set variantname "perl[string map {. _} $perlversion]"
> +
> + # so, if Tcl did support map… http://wiki.tcl.tk/12848
> + set conflicts [list]
> + foreach otherversion [lsearch -all -inline -not -exact -sorted
> $perlversions $perlversion] {
> + lappend conflicts "perl[string map {. _} $otherversion]"
> }
[snip]
I think the perl5 portgroup is supposed to contain code now to make it easy to
create perl variants, instead of having to write all this code to do it
manually.
_______________________________________________
macports-dev mailing list
[email protected]
https://lists.macosforge.org/mailman/listinfo/macports-dev