Skip to content
Browse files

Switched to Module::Build. Preppeing for 1.6.1 release.

git-svn-id: http://svn.bricolage.cc/trunk/distutils/BricolagePlus@3740 d891ef98-e4d9-0310-886a-e7f4d30e8d80
  • Loading branch information...
1 parent 322f927 commit 7dd40d033793c7fc8c1c1fa63e4cb0cc92c85706 @theory theory committed Aug 26, 2003
Showing with 95 additions and 17 deletions.
  1. +8 −0 Build.PL
  2. +5 −0 Changes
  3. +7 −4 MANIFEST
  4. +8 −0 MANIFEST.SKIP
  5. +14 −0 META.yml
  6. +28 −11 Makefile.PL
  7. +1 −1 README
  8. +1 −1 { → lib/Bundle}/BricolagePlus.pm
  9. 0 test.pl → t/basic.t
  10. +23 −0 t/zpod.t
View
8 Build.PL
@@ -0,0 +1,8 @@
+use Module::Build;
+
+my $build = Module::Build->new
+ ( module_name => 'Bundle::BricolagePlus',
+ license => 'perl',
+ create_makefile_pl => 'passthrough',
+ );
+$build->create_build_script;
View
5 Changes
@@ -1,5 +1,10 @@
Revision history for Perl module Bundle::BricolagePlus.
+1.6.1
+ - Switched to Module::Build.
+ - Reorganized distribution layout to better reflect Perl standard.
+ - Added POD tests.
+
1.6.0 Tue Apr 29 08:46:12 2003
- Updated fro Bricolage 1.6.0, with some new modules added.
View
11 MANIFEST
@@ -1,6 +1,9 @@
-BricolagePlus.pm
+Build.PL
+Changes
+lib/Bundle/BricolagePlus.pm
Makefile.PL
-MANIFEST
+MANIFEST This list of files
+META.yml
README
-Changes
-test.pl
+t/basic.t
+t/zpod.t
View
8 MANIFEST.SKIP
@@ -0,0 +1,8 @@
+^_build
+^Build$
+^blib
+~$
+\.bak$
+^MANIFEST\.SKIP$
+^Bundle-BricolagePlus
+CVS
View
14 META.yml
@@ -0,0 +1,14 @@
+--- #YAML:1.0
+name: Bundle-BricolagePlus
+version: 1.6.1
+license: perl
+distribution_type: module
+requires: {}
+recommends: {}
+build_requires: {}
+conflicts: {}
+provides:
+ Bundle::BricolagePlus:
+ file: lib/Bundle/BricolagePlus.pm
+ version: 1.6.1
+generated_by: Module::Build version 0.19_05
View
39 Makefile.PL
@@ -1,11 +1,28 @@
-use ExtUtils::MakeMaker;
-# See lib/ExtUtils/MakeMaker.pm for details of how to influence
-# the contents of the Makefile that is written.
-WriteMakefile(
- 'NAME' => 'Bundle::BricolagePlus',
- 'VERSION_FROM' => 'BricolagePlus.pm', # finds $VERSION
- 'PREREQ_PM' => {}, # e.g., Module::Name => 1.1
- ($] >= 5.005 ? ## Add these new keywords supported since 5.005
- (ABSTRACT_FROM => 'BricolagePlus.pm', # retrieve abstract from module
- AUTHOR => 'David Wheeler <david@wheeler.net>') : ()),
-);
+
+ unless (eval "use Module::Build::Compat 0.02; 1" ) {
+ print "This module requires Module::Build to install itself.\n";
+
+ require ExtUtils::MakeMaker;
+ my $yn = ExtUtils::MakeMaker::prompt
+ (' Install Module::Build now from CPAN?', 'y');
+
+ unless ($yn =~ /^y/i) {
+ warn " *** Cannot install without Module::Build. Exiting ...\n";
+ exit 1;
+ }
+
+ require Cwd;
+ require File::Spec;
+ require CPAN;
+
+ # Save this 'cause CPAN will chdir all over the place.
+ my $cwd = Cwd::cwd();
+ my $makefile = File::Spec->rel2abs($0);
+
+ CPAN::Shell->install('Module::Build::Compat');
+
+ chdir $cwd or die "Cannot chdir() back to $cwd: $!";
+ exec $^X, $makefile, @ARGV; # Redo now that we have Module::Build
+ }
+ Module::Build::Compat->run_build_pl(args => \@ARGV);
+ Module::Build::Compat->write_makefile();
View
2 README
@@ -1,4 +1,4 @@
-Bundle/BricolagePlus version 1.6.0
+Bundle/BricolagePlus version 1.6.1
==================================
DESCRIPTION
View
2 BricolagePlus.pm → lib/Bundle/BricolagePlus.pm
@@ -1,6 +1,6 @@
package Bundle::BricolagePlus;
-our $VERSION = '1.6.0';
+our $VERSION = '1.6.1';
1;
__END__
View
0 test.pl → t/basic.t
File renamed without changes.
View
23 t/zpod.t
@@ -0,0 +1,23 @@
+#!perl -w
+
+# $Id: zpod.t,v 1.1 2003/08/26 18:14:03 wheeler Exp $
+
+use Test::More;
+use File::Spec;
+use File::Find;
+use strict;
+
+eval "use Test::Pod 0.95";
+
+if ($@) {
+ plan skip_all => "Test::Pod v0.95 required for testing POD";
+} else {
+ Test::Pod->import;
+ my @files;
+ my $blib = File::Spec->catfile(qw(blib lib));
+ find( sub {push @files, $File::Find::name if /\.p(l|m|od)$/}, $blib);
+ plan tests => scalar @files;
+ foreach my $file (@files) {
+ pod_file_ok($file);
+ }
+}

0 comments on commit 7dd40d0

Please sign in to comment.
Something went wrong with that request. Please try again.