source:
perl/lib/Module/Install/BarnOwl.pm
@
b8a3e00
Last change on this file since b8a3e00 was b8a3e00, checked in by David Benjamin <davidben@mit.edu>, 12 years ago | |
---|---|
|
|
File size: 1.0 KB |
Rev | Line | |
---|---|---|
[300b470] | 1 | use warnings; |
2 | use strict; | |
3 | ||
4 | =head1 NAME | |
5 | ||
6 | Module::Install::BarnOwl | |
7 | ||
8 | =head1 DESCRIPTION | |
9 | ||
[b8a3e00] | 10 | Module::Install::BarnOwl is a M::I module to help building BarnOwl |
[300b470] | 11 | modules, |
12 | ||
13 | =head1 SYNOPSIS | |
14 | ||
15 | use inc::Module::Install; | |
16 | barnowl_module('Jabber'); | |
17 | WriteAll; | |
18 | ||
19 | This is roughly equivalent to: | |
20 | ||
21 | use inc::Module::Install; | |
22 | ||
23 | name('BarnOwl-Module-Jabber'); | |
24 | all_from('lib/BarnOwl/Module/Jabber.pm'); | |
25 | requires_external_bin('barnowl'); | |
26 | ||
27 | WriteAll; | |
28 | ||
29 | As well as make rules to generate Jabber.par, and to put some | |
[b8a3e00] | 30 | additional BarnOwl-specific information into META.yml |
[300b470] | 31 | |
32 | =cut | |
33 | ||
34 | package Module::Install::BarnOwl; | |
35 | ||
36 | use base qw(Module::Install::Base); | |
37 | ||
38 | sub barnowl_module { | |
39 | my $self = shift; | |
40 | my $name = ucfirst shift; | |
41 | my $class = ref $self; | |
42 | ||
43 | $self->name("BarnOwl-Module-$name"); | |
44 | $self->all_from("lib/BarnOwl/Module/$name.pm"); | |
45 | ||
46 | $self->postamble(<<"END_MAKEFILE"); | |
47 | ||
48 | # --- $class section: | |
49 | ||
[925faae] | 50 | $name.par: pm_to_blib |
[3519d06] | 51 | \tcd blib; zip -q ../$name.par -r arch lib |
[300b470] | 52 | |
53 | END_MAKEFILE | |
54 | } | |
55 | ||
56 | =head1 SEE ALSO | |
57 | ||
58 | L<Module::Install>, L<BarnOwl> | |
59 | ||
60 | =cut | |
61 | ||
62 | 1; |
Note: See TracBrowser
for help on using the repository browser.