barnowl_perlaimdebianrelease-1.10release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
|
Last change
on this file since 965e14d was
925faae,
checked in by Nelson Elhage <nelhage@mit.edu>, 19 years ago
|
|
Changing the dependency on the par target, so we don't rebuild unless
we need to.
|
-
Property mode set to
100644
|
|
File size:
1.0 KB
|
| Line | |
|---|
| 1 | use warnings; |
|---|
| 2 | use strict; |
|---|
| 3 | |
|---|
| 4 | =head1 NAME |
|---|
| 5 | |
|---|
| 6 | Module::Install::BarnOwl |
|---|
| 7 | |
|---|
| 8 | =head1 DESCRIPTION |
|---|
| 9 | |
|---|
| 10 | Module::Install::BarnOwl is a M::I module to help building barnowl |
|---|
| 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 |
|---|
| 30 | additional barnowl-specific information into META.yml |
|---|
| 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 | |
|---|
| 50 | $name.par: pm_to_blib |
|---|
| 51 | \tcd blib; zip ../$name.par -r arch lib |
|---|
| 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.