Skip to content

Commit

Permalink
Initial basis of the Beirdobot perl module
Browse files Browse the repository at this point in the history
  • Loading branch information
Beirdo committed Apr 29, 2010
1 parent f4586e2 commit 7e3edd8
Show file tree
Hide file tree
Showing 8 changed files with 6,557 additions and 0 deletions.
9 changes: 9 additions & 0 deletions bot/src/plugins/perlext/Beirdobot/Beirdobot.xs
@@ -0,0 +1,9 @@
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"

#include "ppport.h"


MODULE = Beirdobot PACKAGE = Beirdobot

6 changes: 6 additions & 0 deletions bot/src/plugins/perlext/Beirdobot/Changes
@@ -0,0 +1,6 @@
Revision history for Perl extension Beirdobot.

0.01 Wed Apr 28 23:00:49 2010
- original version; created by h2xs 1.23 with options
-Afn Beirdobot

8 changes: 8 additions & 0 deletions bot/src/plugins/perlext/Beirdobot/MANIFEST
@@ -0,0 +1,8 @@
Beirdobot.xs
Changes
Makefile.PL
MANIFEST
ppport.h
README
t/Beirdobot.t
lib/Beirdobot.pm
17 changes: 17 additions & 0 deletions bot/src/plugins/perlext/Beirdobot/Makefile.PL
@@ -0,0 +1,17 @@
use 5.010000;
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
WriteMakefile(
NAME => 'Beirdobot',
VERSION_FROM => 'lib/Beirdobot.pm', # finds $VERSION
PREREQ_PM => {}, # e.g., Module::Name => 1.1
($] >= 5.005 ? ## Add these new keywords supported since 5.005
(ABSTRACT_FROM => 'lib/Beirdobot.pm', # retrieve abstract from module
AUTHOR => 'Gavin Hurlbut <gjhurlbu@>') : ()),
LIBS => [''], # e.g., '-lm'
DEFINE => '', # e.g., '-DHAVE_SOMETHING'
INC => '-I.', # e.g., '-I. -I/usr/include/other'
# Un-comment this if you add C files to link with later:
# OBJECT => '$(O_FILES)', # link all the C files too
);
40 changes: 40 additions & 0 deletions bot/src/plugins/perlext/Beirdobot/README
@@ -0,0 +1,40 @@
Beirdobot version 0.01
======================

The README is used to introduce the module and provide instructions on
how to install the module, any machine dependencies it may have (for
example C compilers and installed libraries) and any other information
that should be provided before the module is installed.

A README file is required for CPAN modules since CPAN extracts the
README file from a module distribution so that people browsing the
archive can use it get an idea of the modules uses. It is usually a
good idea to provide version information here so that people can
decide whether fixes for the module are worth downloading.

INSTALLATION

To install this module type the following:

perl Makefile.PL
make
make test
make install

DEPENDENCIES

This module requires these other modules and libraries:

blah blah blah

COPYRIGHT AND LICENCE

Put the correct copyright and licence information here.

Copyright (C) 2010 by Gavin Hurlbut

This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself, either Perl version 5.10.0 or,
at your option, any later version of Perl 5 you may have available.


86 changes: 86 additions & 0 deletions bot/src/plugins/perlext/Beirdobot/lib/Beirdobot.pm
@@ -0,0 +1,86 @@
package Beirdobot;

use 5.010000;
use strict;
use warnings;

require Exporter;

our @ISA = qw(Exporter);

# Items to export into callers namespace by default. Note: do not export
# names by default without a very good reason. Use EXPORT_OK instead.
# Do not simply export all your public functions/methods/constants.

# This allows declaration use Beirdobot ':all';
# If you do not need this, moving things directly into @EXPORT or @EXPORT_OK
# will save memory.
our %EXPORT_TAGS = ( 'all' => [ qw(
) ] );

our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );

our @EXPORT = qw(
);

our $VERSION = '0.01';

require XSLoader;
XSLoader::load('Beirdobot', $VERSION);

# Preloaded methods go here.

1;
__END__
# Below is stub documentation for your module. You'd better edit it!
=head1 NAME
Beirdobot - Perl extension for blah blah blah
=head1 SYNOPSIS
use Beirdobot;
blah blah blah
=head1 DESCRIPTION
Stub documentation for Beirdobot, created by h2xs. It looks like the
author of the extension was negligent enough to leave the stub
unedited.
Blah blah blah.
=head2 EXPORT
None by default.
=head1 SEE ALSO
Mention other useful documentation such as the documentation of
related modules or operating system documentation (such as man pages
in UNIX), or any relevant external documentation such as RFCs or
standards.
If you have a mailing list set up for your module, mention it here.
If you have a web site set up for your module, mention it here.
=head1 AUTHOR
Gavin Hurlbut, E<lt>gjhurlbu@E<gt>
=head1 COPYRIGHT AND LICENSE
Copyright (C) 2010 by Gavin Hurlbut
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself, either Perl version 5.10.0 or,
at your option, any later version of Perl 5 you may have available.
=cut

0 comments on commit 7e3edd8

Please sign in to comment.