[Bps-public-commit] r11171 - in Module-Install-RTx: . t
ruz at bestpractical.com
ruz at bestpractical.com
Mon Mar 24 20:57:13 EDT 2008
Author: ruz
Date: Mon Mar 24 20:56:56 2008
New Revision: 11171
Modified:
Module-Install-RTx/Changes
Module-Install-RTx/Makefile.PL
Module-Install-RTx/README
Module-Install-RTx/lib/Module/Install/RTx.pm
Module-Install-RTx/t/0-signature.t
Log:
* merge changes Audrey did and released as 0.21 to the CPAN
0.21 changelog:
<<<
* LICENSING CHANGE: This compilation and all individual files in it
are now under the permissive "MIT" license. See the COPYRIGHT
section in README for the new terms.
* Cleanup on POD, changelog, README, etc.
* Bump dependency of Module::Install::Admin to 0.40, so we can make use of
all_from() and drop the parentheses in Makefile.PL commands.
>>>
Modified: Module-Install-RTx/Changes
==============================================================================
--- Module-Install-RTx/Changes (original)
+++ Module-Install-RTx/Changes Mon Mar 24 20:56:56 2008
@@ -1,10 +1,22 @@
+[Changes for 0.21 2007-12-07]
+
+* LICENSING CHANGE: This compilation and all individual files in it
+ are now under the permissive "MIT" license. See the COPYRIGHT
+ section in README for the new terms.
+
+* Cleanup on POD, changelog, README, etc.
+
+* Bump dependency of Module::Install::Admin to 0.40, so we can make use of
+ all_from() and drop the parentheses in Makefile.PL commands.
+
[ Changes for 0.20 2007-12-05]
-* Support for new RT 3.7 "RT Plugin" mechanism
+* Support for new RT 3.7 "RT Plugin" mechanism.
+
* No longer tries to write to the global local perl man and site directories
- (packlists and manpages), instead installing them within the RT hierarchy
+ (packlists and manpages), instead installing them within the RT hierarchy.
-[Changes for 0.11 - 2005-]
+[Changes for 0.11 - 2005-02-26]
* make initdb now prompts for dba password.
Modified: Module-Install-RTx/Makefile.PL
==============================================================================
--- Module-Install-RTx/Makefile.PL (original)
+++ Module-Install-RTx/Makefile.PL Mon Mar 24 20:56:56 2008
@@ -1,9 +1,8 @@
use inc::Module::Install;
-name ('Module-Install-RTx');
-abstract ('RT extension installer');
-version_from('lib/Module/Install/RTx.pm');
-requires ('Module::Install::Admin' => 0.29);
-license ('perl');
+name 'Module-Install-RTx';
+all_from 'lib/Module/Install/RTx.pm';
+requires 'Module::Install::Admin' => 0.40;
+auto_provides;
&WriteAll( check_nmake => 0, sign => 1 );
Modified: Module-Install-RTx/README
==============================================================================
--- Module-Install-RTx/README (original)
+++ Module-Install-RTx/README Mon Mar 24 20:56:56 2008
@@ -1,25 +1,91 @@
-This is the README file for Module::Install::RTx, a helper module
-for RT extension writers to install files into an existing RT
-installation.
+NAME
+ Module::Install::RTx - RT extension installer
-Please type "perldoc Module::Install::RTx" after installation to see
-the module usage information.
+VERSION
+ This document describes version 0.21 of Module::Install::RTx, released
+ December 7, 2007.
-* Installation
+SYNOPSIS
+ In the Makefile.PL of the "RTx-Foo" module:
-Module::Install::RTx uses the standard perl module install process:
+ use inc::Module::Install;
-cpansign -v # optional; see SIGNATURE for details
-perl Makefile.PL
-make
-make test
-make install
+ RTx('Foo');
+ author('Your Name <your at email.com>');
+ license('perl');
-* Copyright
+ &WriteAll;
-Copyright 2003, 2004 by Autrijus Tang <autrijus at autrijus.org>
+DESCRIPTION
+ This Module::Install extension implements one function, "RTx", that
+ takes the extension name as the only argument.
-All rights reserved. You can redistribute and/or modify
-this bundle under the same terms as Perl itself.
+ It arranges for certain subdirectories to install into the installed RT
+ location, but does not affect the usual "lib" and "t" directories.
+
+ The directory mapping table is as below:
+
+ ./bin => $RT::LocalPath/bin
+ ./etc => $RT::LocalPath/etc/$NAME
+ ./html => $RT::MasonComponentRoot
+ ./po => $RT::LocalLexiconPath/$NAME
+ ./sbin => $RT::LocalPath/sbin
+ ./var => $RT::VarPath/$NAME
+
+ Under the default RT3 layout in /opt and with the extension name "Foo",
+ it becomes:
+
+ ./bin => /opt/rt3/local/bin
+ ./etc => /opt/rt3/local/etc/Foo
+ ./html => /opt/rt3/share/html
+ ./po => /opt/rt3/local/po/Foo
+ ./sbin => /opt/rt3/local/sbin
+ ./var => /opt/rt3/var/Foo
+
+ By default, all these subdirectories will be installed with "make
+ install". you can override this by setting the "WITH_SUBDIRS"
+ environment variable to a comma-delimited subdirectory list, such as
+ "html,sbin".
+
+ Alternatively, you can also specify the list as a command-line option to
+ "Makefile.PL", like this:
+
+ perl Makefile.PL WITH_SUBDIRS=sbin
+
+ENVIRONMENT
+ RTHOME
+ Path to the RT installation that contains a valid lib/RT.pm.
+
+SEE ALSO
+ Module::Install
+
+ <http://www.bestpractical.com/rt/>
+
+AUTHORS
+ Audrey Tang <cpan at audreyt.org>
+
+COPYRIGHT
+ Copyright 2003, 2004, 2007 by Audrey Tang <cpan at audreyt.org>.
+
+ This software is released under the MIT license cited below.
+
+ The "MIT" License
+ Permission is hereby granted, free of charge, to any person obtaining a
+ copy of this software and associated documentation files (the
+ "Software"), to deal in the Software without restriction, including
+ without limitation the rights to use, copy, modify, merge, publish,
+ distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so, subject to
+ the following conditions:
+
+ The above copyright notice and this permission notice shall be included
+ in all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-See <http://www.perl.com/perl/misc/Artistic.html>.
Modified: Module-Install-RTx/lib/Module/Install/RTx.pm
==============================================================================
--- Module-Install-RTx/lib/Module/Install/RTx.pm (original)
+++ Module-Install-RTx/lib/Module/Install/RTx.pm Mon Mar 24 20:56:56 2008
@@ -1,10 +1,14 @@
package Module::Install::RTx;
-use Module::Install::Base;
- at ISA = qw(Module::Install::Base);
-
-$Module::Install::RTx::VERSION = '0.20';
+use 5.008;
use strict;
+use warnings;
+no warnings 'once';
+
+use Module::Install::Base;
+use base 'Module::Install::Base';
+our $VERSION = '0.21';
+
use FindBin;
use File::Glob ();
use File::Basename ();
@@ -20,10 +24,10 @@
$self->name("$RTx-$name")
unless $self->name;
+ $self->all_from( -e "$name.pm" ? "$name.pm" : "lib/$RTx/$fname.pm" )
+ unless $self->version;
$self->abstract("RT $name Extension")
unless $self->abstract;
- $self->version_from( -e "$name.pm" ? "$name.pm" : "lib/$RTx/$fname.pm" )
- unless $self->version;
my @prefixes = (qw(/opt /usr/local /home /usr /sw ));
my $prefix = $ENV{PREFIX};
@@ -60,7 +64,10 @@
my $with_subdirs = $ENV{WITH_SUBDIRS};
@ARGV = grep { /WITH_SUBDIRS=(.*)/ ? ( ( $with_subdirs = $1 ), 0 ) : 1 }
@ARGV;
- my %subdirs = map { $_ => 1 } split( /\s*,\s*/, $with_subdirs );
+
+ my %subdirs;
+ %subdirs = map { $_ => 1 } split( /\s*,\s*/, $with_subdirs )
+ if defined $with_subdirs;
foreach (qw(bin etc html po sbin var)) {
next unless -d "$FindBin::Bin/$_";
@@ -178,20 +185,16 @@
=head1 VERSION
-This document describes version 0.10 of Module::Install::RTx, released
-October 1, 2004.
+This document describes version 0.21 of Module::Install::RTx, released
+December 7, 2007.
=head1 SYNOPSIS
In the F<Makefile.PL> of the C<RTx-Foo> module:
use inc::Module::Install;
-
- RTx('Foo');
- author('Your Name <your at email.com>');
- license('perl');
-
- &WriteAll;
+ RTx 'Foo';
+ WriteAll;
=head1 DESCRIPTION
@@ -237,7 +240,7 @@
Path to the RT installation that contains a valid F<lib/RT.pm>.
-=cut
+=back
=head1 SEE ALSO
@@ -247,15 +250,32 @@
=head1 AUTHORS
-Autrijus Tang <autrijus at autrijus.org>
+Audrey Tang <cpan at audreyt.org>
=head1 COPYRIGHT
-Copyright 2003, 2004 by Autrijus Tang E<lt>autrijus at autrijus.orgE<gt>.
+Copyright 2003, 2004, 2007 by Audrey Tang E<lt>cpan at audreyt.orgE<gt>.
+
+This software is released under the MIT license cited below.
-This program is free software; you can redistribute it and/or modify it
-under the same terms as Perl itself.
+=head2 The "MIT" License
-See L<http://www.perl.com/perl/misc/Artistic.html>
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE.
=cut
Modified: Module-Install-RTx/t/0-signature.t
==============================================================================
--- Module-Install-RTx/t/0-signature.t (original)
+++ Module-Install-RTx/t/0-signature.t Mon Mar 24 20:56:56 2008
@@ -3,7 +3,10 @@
use strict;
print "1..1\n";
-if (!-s 'SIGNATURE') {
+if (!$ENV{TEST_SIGNATURE}) {
+ print "ok 1 # skip set the environment variable TEST_SIGNATURE to enable this test\n";
+}
+elsif (!-s 'SIGNATURE') {
print "ok 1 # skip No signature file found\n";
}
elsif (!eval { require Module::Signature; 1 }) {
More information about the Bps-public-commit
mailing list