=head1 VERSION
-Version 0.08
+Version 0.10
=cut
-our $VERSION = '0.08';
+our $VERSION = '0.10';
=head1 DESCRPITON
sub version_c2g {
my ($v) = @_;
+ return unless defined $v;
+
$v =~ y/-/_/;
$v =~ y/0-9._//cd;
return $v;
}
+=head2 C<perl_version_c2g $version>
+
+Converts a perl version as you can find it in prerequisites to a Gentoo version number.
+
+=cut
+
+sub perl_version_c2g {
+ my ($v) = @_;
+
+ return unless defined $v and $v =~ /^[0-9\.]+$/;
+
+ my @parts;
+ if (my ($version, $subversion) = $v =~ /^([0-9]+)\.(0[^\.]+)$/) {
+ my $len = length $subversion;
+ if (my $pad = $len % 3) {
+ $subversion .= '0' x (3 - $pad);
+ }
+ @parts = ($version, $subversion =~ /(.{1,3})/g);
+ } else {
+ @parts = split /\./, $v;
+ }
+
+ return join '.', map int, @parts;
+}
+
=head1 SEE ALSO
L<CPANPLUS::Dist::Gentoo>.
=head1 BUGS
-Please report any bugs or feature requests to C<bug-cpanplus-dist-gentoo at rt.cpan.org>, or through the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=CPANPLUS-Dist-Gentoo>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
+Please report any bugs or feature requests to C<bug-cpanplus-dist-gentoo at rt.cpan.org>, or through the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=CPANPLUS-Dist-Gentoo>.
+I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
=head1 SUPPORT
=head1 COPYRIGHT & LICENSE
-Copyright 2009 Vincent Pit, all rights reserved.
+Copyright 2009,2010 Vincent Pit, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Crypt-Random crypt-random
DBIx-SearchBuilder dbix-searchbuilder
Data-Buffer data-buffer
+Date-Manip DateManip
Digest digest-base
Digest-BubbleBabble digest-bubblebabble
Digest-MD2 digest-md2
Tie-EncryptedHash tie-encryptedhash
Tk perl-tk
Wx wxperl
+XML-Sablotron XML-Sablot
YAML yaml
gettext Locale-gettext
txt2html TextToHTML