line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package OrePAN2; |
2
|
7
|
|
|
7
|
|
906
|
use 5.008005; |
|
7
|
|
|
|
|
36
|
|
3
|
7
|
|
|
7
|
|
36
|
use strict; |
|
7
|
|
|
|
|
14
|
|
|
7
|
|
|
|
|
162
|
|
4
|
7
|
|
|
7
|
|
35
|
use warnings; |
|
7
|
|
|
|
|
13
|
|
|
7
|
|
|
|
|
465
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = "0.48"; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
1; |
9
|
|
|
|
|
|
|
__END__ |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=encoding utf-8 |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=for stopwords DarkPAN orepan2-inject orepan2-indexer darkpan OrePAN1 OrePAN |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=head1 NAME |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
OrePAN2 - Yet another DarkPAN manager. |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=head1 DESCRIPTION |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
You can create your own Perl module archive with OrePAN2! |
22
|
|
|
|
|
|
|
It's very simple and useful. |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=over 4 |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=item 1. Inject tarballs from git repo or archive file via orepan2-inject. |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=item 2. Make 02packages.details.txt.gz via orepan2-indexer. |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=back |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 TUTORIAL |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
Download a tarball from CPAN. |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
% orepan2-inject http://cpan.metacpan.org/authors/id/M/MA/MAHITO/Acme-Hoge-0.03.tar.gz /path/to/darkpan/ |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
Create 02packages.details.txt! |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
% orepan2-indexer /path/to/darkpan/ |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
Then you can install Acme::Hoge from DarkPAN! |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
% cpanm --mirror-only --mirror=file:///path/to/darkpan/ Acme::Hoge |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
It's pretty easy! |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 What's the difference between OrePAN 2 and OrePAN1? |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=over 4 |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=item OrePAN2 has a cleaner interface. |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=item OrePAN2 provides an OO-ish interface |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
You can use OrePAN2 as a library. |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=item OrePAN2 uses modern modules like L<Parse::LocalDistribution>. |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
OrePAN1 did a lot of heavy lifting on its own. OrePAN2 delegates most tasks to other CPAN modules. |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=item OrePAN2 is active project |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
OrePAN1 is now in maintenance mode, but OrePAN2 is still under active development. |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=back |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head1 SEE ALSO |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
L<OrePAN2::Server> |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=head1 LICENSE |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
Copyright (C) tokuhirom. |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
77
|
|
|
|
|
|
|
it under the same terms as Perl itself. |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=head1 AUTHOR |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
tokuhirom E<lt>tokuhirom@gmail.comE<gt> |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=cut |
84
|
|
|
|
|
|
|
|