X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FCPANPLUS-Dist-Gentoo.git;a=blobdiff_plain;f=lib%2FCPANPLUS%2FDist%2FGentoo%2FMaps.pm;fp=lib%2FCPANPLUS%2FDist%2FGentoo%2FMaps.pm;h=7ba1e945ad1cbbd2005bb69c0eed7687750b79e5;hp=84ede042cb457ff12c42ed3572e594c42020b7d8;hb=19eae8789c3ed2068bfde084ba9a8c711526c589;hpb=e71c31d55d3d29cbe9d4d890d0b115aea08d1105 diff --git a/lib/CPANPLUS/Dist/Gentoo/Maps.pm b/lib/CPANPLUS/Dist/Gentoo/Maps.pm index 84ede04..7ba1e94 100644 --- a/lib/CPANPLUS/Dist/Gentoo/Maps.pm +++ b/lib/CPANPLUS/Dist/Gentoo/Maps.pm @@ -32,7 +32,9 @@ close DATA; =head1 FUNCTIONS -=head2 C +=head2 C + + my $gentoo_pkg = name_c2g($cpan_dist); Maps a CPAN distribution name to the corresponding Gentoo package name. @@ -43,7 +45,9 @@ sub name_c2g { return $name_mismatch{$name} || $name; } -=head2 C +=head2 C + + my @gentoo_licenses = license_c2g(@meta_licenses); Maps F C tag values to the corresponding list of Gentoo license identifiers. Duplicates are stripped off. @@ -77,7 +81,9 @@ sub license_c2g { @_; } -=head2 C +=head2 C + + my $gentoo_version = version_c2g($cpan_dist, $cpan_version); Converts the C<$version> of a CPAN distribution C<$name> to a Gentoo version number. @@ -287,7 +293,9 @@ sub version_c2g { return $handler->($v); } -=head2 C +=head2 C + + my $gentoo_version = perl_version_c2g($perl_version); Converts a perl version number as you can find it in CPAN prerequisites to a Gentoo version number. @@ -312,7 +320,9 @@ sub perl_version_c2g { return join '.', map int, @parts; } -=head2 C +=head2 C + + my $timestamp = get_portage_timestamp($portage); Get the numerical timestamp associated with the portage tree located at C<$portage>. Requires L, and returns C if it is not available.