X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FCPANPLUS%2FDist%2FGentoo%2FMaps.pm;h=df1843a099c75cb3ab53414b718ac77e0043040b;hb=HEAD;hp=84ede042cb457ff12c42ed3572e594c42020b7d8;hpb=75ae75015ae70863bbce2eaef6c796ea0e1786d3;p=perl%2Fmodules%2FCPANPLUS-Dist-Gentoo.git diff --git a/lib/CPANPLUS/Dist/Gentoo/Maps.pm b/lib/CPANPLUS/Dist/Gentoo/Maps.pm index 84ede04..df1843a 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. @@ -362,6 +372,11 @@ Numerical timestamp associated with the revision of the portage tree that was us sub TIMESTAMP () { 1367759701 } +=head1 EXPORT + +This module does not export any symbol. +All its functions have to be called by their fully qualified names. + =head1 SEE ALSO L.