%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/.cpan/build/Mock-Config-0.05-0/
Upload File :
Create Path :
Current File : /home/.cpan/build/Mock-Config-0.05-0/Makefile.PL

use 5.006;
use strict;
use warnings;
use ExtUtils::MakeMaker;

WriteMakefile(
  NAME             => 'Mock::Config',
  AUTHOR           => q{Reini Urban <rurban@cpan.org>},
  VERSION_FROM     => 'lib/Mock/Config.pm',
  ABSTRACT_FROM    => 'lib/Mock/Config.pm',
  LICENSE          => 'artistic_2',
  PL_FILES         => {},
  MIN_PERL_VERSION => 5.006,
  CONFIGURE_REQUIRES => {
    'ExtUtils::MakeMaker' => 0,
  },
  BUILD_REQUIRES => {
    'Test::More' => 0,
  },
  PREREQ_PM => {
    #'ABC'              => 1.6,
    #'Foo::Bar::Module' => 5.0401,
  },
  clean => { FILES => 'Mock-Config-*' },
  SIGN  => 1,
  dist	 => {
    PREOP	=> 'pod2text \$(VERSION_FROM) | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;',
    COMPRESS	=> 'gzip -9v',
    SUFFIX	=> '.gz',
  },
  ($ExtUtils::MakeMaker::VERSION gt '6.46' ?
   ('META_MERGE' =>
    {suggests =>
     {
       'XSConfig' => '6.19',
     },
     resources =>
     {
       license     => 'http://dev.perl.org/licenses/',
       bugtracker  => 'https://github.com/perl11/Mock-Config/issues',
       repository  => 'https://github.com/perl11/Mock-Config',
     },
    }
   ) : ()),
);

package MY;

sub top_targets {
  local $_ = shift->SUPER::top_targets(@_);
  s/\$\(FIRST_MAKEFILE\) blibdirs/\$(FIRST_MAKEFILE\) blibdirs README/;
  $_
}

sub depend {
  "
README : \$(VERSION_FROM)
	pod2text \$(VERSION_FROM) > README

release : xtest dist
	if test \"\$(shell git rev-parse --abbrev-ref HEAD)\" != \"master\" || \\
           test \"\$(shell git diff --raw)\" != \"\" || \\
           test \"\$(shell git diff --cached --raw)\" != \"\" ; then \\
          echo 'You are not on a clean master branch, aborting.'; \\
          exit 1; \\
	fi
	-git tag -f \$(VERSION)
	cpan-upload \$(DISTVNAME).tar\$(SUFFIX)
	git push
	git push --tags

xtest :
	\$(MAKE) test RELEASE_TESTING=1
"
}

Zerion Mini Shell 1.0