[Bps-public-commit] r11097 - in Shipwright/trunk: inc/Module/Install

sunnavy at bestpractical.com sunnavy at bestpractical.com
Tue Mar 18 08:03:24 EDT 2008


Author: sunnavy
Date: Tue Mar 18 08:02:52 2008
New Revision: 11097

Added:
   Shipwright/trunk/inc/Module/Install/Share.pm
Modified:
   Shipwright/trunk/MANIFEST
   Shipwright/trunk/META.yml
   Shipwright/trunk/Makefile.PL

Log:
updated package files

Modified: Shipwright/trunk/MANIFEST
==============================================================================
--- Shipwright/trunk/MANIFEST	(original)
+++ Shipwright/trunk/MANIFEST	Tue Mar 18 08:02:52 2008
@@ -11,6 +11,7 @@
 inc/Module/Install/Makefile.pm
 inc/Module/Install/Metadata.pm
 inc/Module/Install/Scripts.pm
+inc/Module/Install/Share.pm
 inc/Module/Install/Win32.pm
 inc/Module/Install/WriteAll.pm
 lib/Shipwright.pm
@@ -21,6 +22,7 @@
 lib/Shipwright/Logger.pm
 lib/Shipwright/Script.pm
 lib/Shipwright/Script/Build.pm
+lib/Shipwright/Script/Flags.pm
 lib/Shipwright/Script/Help.pm
 lib/Shipwright/Script/Import.pm
 lib/Shipwright/Script/Initialize.pm
@@ -35,20 +37,34 @@
 lib/Shipwright/Source/HTTP.pm
 lib/Shipwright/Source/SVK.pm
 lib/Shipwright/Source/SVN.pm
+lib/Shipwright/Test.pm
 lib/Shipwright/Tutorial.pod
 lib/Shipwright/Util.pm
 Makefile.PL
 MANIFEST			This list of files
 META.yml
 README
-SIGNATURE
+share/bin/shipwright-builder
+share/bin/shipwright-utility
+share/etc/shipwright-perl-wrapper
+share/etc/shipwright-script-wrapper
+share/etc/shipwright-source-bash
+share/etc/shipwright-source-tcsh
+share/etc/shipwright-utility
+share/inc/YAML/Tiny.pm
+share/shipwright/flags.yml
+share/shipwright/map.yml
+share/shipwright/order.yml
+share/shipwright/source.yml
 t/00.load.t
+t/10.flags.t
+t/20.util.t
 t/hello/Acme-Hello-0.03.tar.gz
-t/hello/hello.t
 t/hello/scripts/build
 t/hello/scripts/howdy_require.yml
 t/hello/scripts/require.yml
 t/hello/shipwright/order.yml
+t/hello/svk.t
 t/hello/svn.t
 t/perlcritic.t
 t/pod-coverage.t

Modified: Shipwright/trunk/META.yml
==============================================================================
--- Shipwright/trunk/META.yml	(original)
+++ Shipwright/trunk/META.yml	Tue Mar 18 08:02:52 2008
@@ -3,6 +3,7 @@
 author: 
   - sunnavy  C<< <sunnavy at bestpractical.com> >>
 build_requires: 
+  ExtUtils::MakeMaker: 6.11
   IPC::Cmd: 0
   Module::Build: 0
 distribution_type: module
@@ -27,6 +28,7 @@
   Class::Accessor::Fast: 0
   File::Copy: 0
   File::Copy::Recursive: 0
+  File::ShareDir: 0
   File::Slurp: 0
   File::Spec: 0
   File::Temp: 0

Modified: Shipwright/trunk/Makefile.PL
==============================================================================
--- Shipwright/trunk/Makefile.PL	(original)
+++ Shipwright/trunk/Makefile.PL	Tue Mar 18 08:02:52 2008
@@ -14,6 +14,7 @@
 requires 'File::Temp' => 0;
 requires 'File::Copy' => 0;
 requires 'File::Copy::Recursive' => 0;
+requires 'File::ShareDir' => 0;
 requires 'File::Spec' => 0;
 requires 'File::Slurp' => 0;
 requires 'Hash::Merge' => 0;
@@ -37,6 +38,7 @@
 no_index( directory => 'docs' );
 
 install_script('bin/shipwright');
+install_share;
 auto_install;
 
 tests('t/*.t t/*/*.t');

Added: Shipwright/trunk/inc/Module/Install/Share.pm
==============================================================================
--- (empty file)
+++ Shipwright/trunk/inc/Module/Install/Share.pm	Tue Mar 18 08:02:52 2008
@@ -0,0 +1,40 @@
+#line 1
+package Module::Install::Share;
+
+use strict;
+use Module::Install::Base;
+
+use vars qw{$VERSION $ISCORE @ISA};
+BEGIN {
+	$VERSION = '0.68';
+	$ISCORE  = 1;
+	@ISA     = qw{Module::Install::Base};
+}
+
+sub install_share {
+	my ($self, $dir) = @_;
+
+	if ( ! defined $dir ) {
+		die "Cannot find the 'share' directory" unless -d 'share';
+		$dir = 'share';
+	}
+
+	$self->postamble(<<"END_MAKEFILE");
+config ::
+\t\$(NOECHO) \$(MOD_INSTALL) \\
+\t\t"$dir" \$(INST_AUTODIR)
+
+END_MAKEFILE
+
+	# The above appears to behave incorrectly when used with old versions
+	# of ExtUtils::Install (known-bad on RHEL 3, with 5.8.0)
+	# So when we need to install a share directory, make sure we add a
+	# dependency on a moderately new version of ExtUtils::MakeMaker.
+	$self->build_requires( 'ExtUtils::MakeMaker' => '6.11' );
+}
+
+1;
+
+__END__
+
+#line 98



More information about the Bps-public-commit mailing list