source: perl/lib/Module/Install/BarnOwl.pm @ b8a3e00

release-1.8release-1.9
Last change on this file since b8a3e00 was b8a3e00, checked in by David Benjamin <davidben@mit.edu>, 10 years ago
Consistently use BarnOwl or barnowl BarnOwl refers to the program, barnowl is the executable and any other identifiers that are conventionally lowercase.
  • 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: pm_to_blib
51\tcd blib; zip -q ../$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.