source: perl/lib/Module/Install/BarnOwl.pm @ 300b470

barnowl_perlaimdebianrelease-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
Last change on this file since 300b470 was 300b470, checked in by Nelson Elhage <nelhage@mit.edu>, 14 years ago
Adding a Module::Install plugin for building barnowl plugins. It needs a lot of improvement.
  • Property mode set to 100644
File size: 1.0 KB
Line 
1use warnings;
2use strict;
3
4=head1 NAME
5
6Module::Install::BarnOwl
7
8=head1 DESCRIPTION
9
10Module::Install::BarnOwl is a M::I module to help building barnowl
11modules,
12
13=head1 SYNOPSIS
14
15    use inc::Module::Install;
16    barnowl_module('Jabber');
17    WriteAll;
18
19This 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
29As well as make rules to generate Jabber.par, and to put some
30additional barnowl-specific information into META.yml
31
32=cut
33
34package Module::Install::BarnOwl;
35
36use base qw(Module::Install::Base);
37
38sub 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
50$name.par: all test
51\tcd blib; zip ../$name.par -r arch lib
52
53END_MAKEFILE
54}
55
56=head1 SEE ALSO
57
58L<Module::Install>, L<BarnOwl>
59
60=cut
61
621;
Note: See TracBrowser for help on using the repository browser.