aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVíctor Moral <victor@venexma.es>2014-01-24 14:26:08 +0100
committerVíctor Moral <victor@venexma.es>2014-01-24 14:26:08 +0100
commitd12528ae835d52620b1d59264c05473953f94e0b (patch)
treeef0f92bf8c8da55d633228e63f39443ca56e87aa
parentd9de9fd56d0750674be85476245064df134a0727 (diff)
downloadcdt-d12528ae835d52620b1d59264c05473953f94e0b.tar.gz
cdt-d12528ae835d52620b1d59264c05473953f94e0b.tar.bz2
cdt-d12528ae835d52620b1d59264c05473953f94e0b.zip
- Recuperado el archivo README de Perl
- Comenzada construcción del binario principal - Comenzada construcción del módulo principal - Retoques en el archivo Build.PL en un vano intento de acotar un error cuando se construye Build
-rw-r--r--Build.PL9
-rw-r--r--README51
-rw-r--r--bin/cdt6
-rw-r--r--lib/CDT.pm108
4 files changed, 76 insertions, 98 deletions
diff --git a/Build.PL b/Build.PL
index 915aa54..5e9399f 100644
--- a/Build.PL
+++ b/Build.PL
@@ -5,11 +5,16 @@ use Module::Build;
my $builder = Module::Build->new(
module_name => 'CDT',
- license => 'gpl3',
+ license => 'gpl',
dist_author => q{Victor Moral <victor@taquiones.net>},
dist_version => '0.1',
+ create_license => 1,
+ configure_requires => {
+ 'Module::Build' => '> 0.38',
+ },
build_requires => {
- 'Test::More' => 0,
+ 'Test::More' => 0,
+ 'MooseX::App' => 0,
'Queue::Dir' => 0,
},
requires => {
diff --git a/README b/README
new file mode 100644
index 0000000..67021f8
--- /dev/null
+++ b/README
@@ -0,0 +1,51 @@
+CDT
+
+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 to get an idea of the module's 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, run the following commands:
+
+ perl Build.PL
+ ./Build
+ ./Build test
+ ./Build install
+
+SUPPORT AND DOCUMENTATION
+
+After installing, you can find documentation for this module with the
+perldoc command.
+
+ perldoc CDT
+
+You can also look for information at:
+
+ RT, CPAN's request tracker (report bugs here)
+ http://rt.cpan.org/NoAuth/Bugs.html?Dist=CDT
+
+ AnnoCPAN, Annotated CPAN documentation
+ http://annocpan.org/dist/CDT
+
+ CPAN Ratings
+ http://cpanratings.perl.org/d/CDT
+
+ Search CPAN
+ http://search.cpan.org/dist/CDT/
+
+
+LICENSE AND COPYRIGHT
+
+Copyright (C) 2014 Victor Moral
+
+This program is released under the following license: gpl3
+
diff --git a/bin/cdt b/bin/cdt
new file mode 100644
index 0000000..ddb161e
--- /dev/null
+++ b/bin/cdt
@@ -0,0 +1,6 @@
+#!/usr/bin/perl
+
+use CDT;
+
+CDT->new_with_command->run;
+
diff --git a/lib/CDT.pm b/lib/CDT.pm
index 8719fc2..140bef5 100644
--- a/lib/CDT.pm
+++ b/lib/CDT.pm
@@ -1,107 +1,23 @@
package CDT;
+use MooseX::App qw(Config Env ConfigHome Version);
+use utf8;
-use 5.006;
-use strict;
-use warnings;
+# extensions and roles
-=head1 NAME
+# external modules
-CDT - The great new CDT!
+# attributes
-=head1 VERSION
+# variables
+our $VERSION = '0.1';
-Version 0.01
+# public methods
-=cut
+# private methods
-our $VERSION = '0.01';
+no Moose;
+__PACKAGE__->meta->make_immutable;
+1;
-=head1 SYNOPSIS
-Quick summary of what the module does.
-
-Perhaps a little code snippet.
-
- use CDT;
-
- my $foo = CDT->new();
- ...
-
-=head1 EXPORT
-
-A list of functions that can be exported. You can delete this section
-if you don't export anything, such as for a purely object-oriented module.
-
-=head1 SUBROUTINES/METHODS
-
-=head2 function1
-
-=cut
-
-sub function1 {
-}
-
-=head2 function2
-
-=cut
-
-sub function2 {
-}
-
-=head1 AUTHOR
-
-Victor Moral, C<< <victor at taquiones.net> >>
-
-=head1 BUGS
-
-Please report any bugs or feature requests to C<bug-cdt at rt.cpan.org>, or through
-the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=CDT>. I will be notified, and then you'll
-automatically be notified of progress on your bug as I make changes.
-
-
-
-
-=head1 SUPPORT
-
-You can find documentation for this module with the perldoc command.
-
- perldoc CDT
-
-
-You can also look for information at:
-
-=over 4
-
-=item * RT: CPAN's request tracker (report bugs here)
-
-L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=CDT>
-
-=item * AnnoCPAN: Annotated CPAN documentation
-
-L<http://annocpan.org/dist/CDT>
-
-=item * CPAN Ratings
-
-L<http://cpanratings.perl.org/d/CDT>
-
-=item * Search CPAN
-
-L<http://search.cpan.org/dist/CDT/>
-
-=back
-
-
-=head1 ACKNOWLEDGEMENTS
-
-
-=head1 LICENSE AND COPYRIGHT
-
-Copyright 2014 Victor Moral.
-
-This program is released under the following license: gpl3
-
-
-=cut
-
-1; # End of CDT