1 package CPANPLUS::Dist::Gentoo::Maps;
8 CPANPLUS::Dist::Gentoo::Maps - Map CPAN objects to Gentoo and vice versa.
16 our $VERSION = '0.09';
20 This is an helper package to L<CPANPLUS::Dist::Gentoo>.
26 /^\s*([\w-]+)\s+([\w-]+)\s*$/ and $gentooisms{$1} = $2 while <DATA>;
32 =head2 C<name_c2g $name>
34 Maps a CPAN distribution name to its Gentoo counterpart.
40 return $gentooisms{$name} || $name;
43 =head2 C<license_c2g @licenses>
45 Maps F<META.yml> C<license> tag values to the corresponding list of Gentoo licenses identifiers.
46 Duplicates are stripped off.
48 The included data was gathered from L<Module::Install> and L<Software::License>.
53 apache => [ 'Apache-2.0' ],
54 artistic => [ 'Artistic' ],
55 artistic_2 => [ 'Artistic-2' ],
60 lgpl => [ 'LGPL-2.1' ],
61 lgpl2 => [ 'LGPL-2.1' ],
62 lgpl3 => [ 'LGPL-3' ],
64 mozilla => [ 'MPL-1.1' ],
65 perl => [ 'Artistic', 'GPL-2' ],
70 grep !$seen{$_}++, map @{$licenses{+lc} || []}, @_;
73 =head2 C<version_c2g $version>
75 Converts a CPAN version to a Gentoo version.
82 return unless defined $v;
89 $v =~ s/([._])[._]*/$1/g;
91 ($v, my $patch, my @rest) = split /_/, $v;
92 $v .= '_p' . $patch if defined $patch;
93 $v .= join('.', '', @rest) if @rest;
100 L<CPANPLUS::Dist::Gentoo>.
104 Vincent Pit, C<< <perl at profvince.com> >>, L<http://www.profvince.com>.
106 You can contact me by mail or on C<irc.perl.org> (vincent).
110 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>.
111 I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
115 You can find documentation for this module with the perldoc command.
117 perldoc CPANPLUS::Dist::Gentoo
119 =head1 COPYRIGHT & LICENSE
121 Copyright 2009,2010 Vincent Pit, all rights reserved.
123 This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
127 1; # End of CPANPLUS::Dist::Gentoo::Maps
130 ANSIColor Term-ANSIColor
132 Audio-CD Audio-CD-disc-cover
133 CGI-Simple Cgi-Simple
134 Cache-Mmap cache-mmap
135 Class-Loader class-loader
136 Class-ReturnValue class-returnvalue
137 Config-General config-general
138 Convert-ASCII-Armour convert-ascii-armour
139 Convert-PEM convert-pem
141 Crypt-DES_EDE3 crypt-des-ede3
144 Crypt-IDEA crypt-idea
145 Crypt-Primes crypt-primes
147 Crypt-Random crypt-random
148 DBIx-SearchBuilder dbix-searchbuilder
149 Data-Buffer data-buffer
152 Digest-BubbleBabble digest-bubblebabble
153 Digest-MD2 digest-md2
154 ExtUtils-Depends extutils-depends
155 ExtUtils-PkgConfig extutils-pkgconfig
156 Frontier-RPC frontier-rpc
159 Gnome2-Canvas gnome2-canvas
160 Gnome2-GConf gnome2-gconf
161 Gnome2-Print gnome2-print
162 Gnome2-VFS gnome2-vfs-perl
163 Gnome2-Wnck gnome2-wnck
165 Gtk2-Ex-FormFactory gtk2-ex-formfactory
166 Gtk2-GladeXML gtk2-gladexml
167 Gtk2-Spell gtk2-spell
168 Gtk2-TrayIcon gtk2-trayicon
169 Gtk2-TrayManager gtk2-traymanager
171 I18N-LangTags i18n-langtags
174 Inline-Files inline-files
175 Locale-Maketext locale-maketext
176 Locale-Maketext-Fuzzy locale-maketext-fuzzy
177 Locale-Maketext-Lexicon locale-maketext-lexicon
178 Log-Dispatch log-dispatch
180 Module-Info module-info
184 Net-SSH-Perl net-ssh-perl
185 Net-Server net-server
186 OLE-Storage_Lite OLE-StorageLite
187 Ogg-Vorbis-Header ogg-vorbis-header
191 Regexp-Common regexp-common
193 Set-Scalar set-scalar
194 String-CRC32 string-crc32
195 Text-Autoformat text-autoformat
196 Text-Reform text-reform
197 Text-Template text-template
198 Text-Wrapper text-wrapper
199 Tie-EncryptedHash tie-encryptedhash
203 gettext Locale-gettext