App-EUMM-Migrate

 view release on metacpan or  search on metacpan

Build.PL  view on Meta::CPAN


my $builder = Module::Build->new(
    module_name         => 'App::EUMM::Migrate',
    license             => 'gpl3',
    dist_author         => q{Alexandr Ciornii <alexchorny@gmail.com>},
    dist_version_from   => 'lib/App/EUMM/Migrate.pm',
    requires => {
        'File::Slurp' => 0,
        #'Text::FindIndent' => 0,
        'Github::Fork::Parent' => 1.0,
        'Data::Dumper' => 0,
        'Perl::Meta' => 0,
        'perl' => 5.006,
    },
    build_requires => {
        'Test::More' => 0,
    },
    script_files => [
        'eumm-migrate.pl',
    ],
    meta_merge => {

META.json  view on Meta::CPAN

   },
   "name" : "App-EUMM-Migrate",
   "prereqs" : {
      "build" : {
         "requires" : {
            "Test::More" : "0"
         }
      },
      "runtime" : {
         "requires" : {
            "Data::Dumper" : "0",
            "File::Slurp" : "0",
            "Github::Fork::Parent" : "1",
            "Perl::Meta" : "0",
            "perl" : "5.006"
         }
      }
   },
   "provides" : {
      "App::EUMM::Migrate" : {
         "file" : "lib/App/EUMM/Migrate.pm",

META.yml  view on Meta::CPAN

license: gpl
meta-spec:
  url: http://module-build.sourceforge.net/META-spec-v1.4.html
  version: 1.4
name: App-EUMM-Migrate
provides:
  App::EUMM::Migrate:
    file: lib/App/EUMM/Migrate.pm
    version: 0.12
requires:
  Data::Dumper: 0
  File::Slurp: 0
  Github::Fork::Parent: 1
  Perl::Meta: 0
  perl: 5.006
resources:
  bugtracker: https://github.com/chorny/EUMM-migrate/issues
  license: http://opensource.org/licenses/gpl-3.0.html
  repository: https://github.com/chorny/EUMM-migrate
version: 0.12
x_serialization_backend: YAML version 1.23

Makefile.PL  view on Meta::CPAN

# Note: this file was auto-generated by Module::Build::Compat version 0.4211
require 5.006;
use ExtUtils::MakeMaker;
WriteMakefile
(
  'NAME' => 'App::EUMM::Migrate',
  'VERSION_FROM' => 'lib/App/EUMM/Migrate.pm',
  'PREREQ_PM' => {
                   'Data::Dumper' => 0,
                   'File::Slurp' => 0,
                   'Github::Fork::Parent' => '1',
                   'Perl::Meta' => 0,
                   'Test::More' => 0
                 },
  'INSTALLDIRS' => 'site',
  'EXE_FILES' => [
                   'eumm-migrate.pl'
                 ],
  'PL_FILES' => {}

eumm-migrate.pl  view on Meta::CPAN

$INC{'ExtUtils/MakeMaker.pm'}=1;

package #hide from PAUSE
 ExtUtils::MakeMaker;
our $VERSION=6.56;
use Exporter;
our @ISA=qw/Exporter/;
our @EXPORT=qw/prompt WriteMakefile/;
#our @EXPORT_OK=qw/prompt WriteMakefile/;

use Data::Dumper;
use File::Slurp;
use Perl::Meta;

my @prompts;
sub prompt ($;$) {  ## no critic
    my($mess, $def) = @_;
    push @prompts,[$mess, $def];
}


eumm-migrate.pl  view on Meta::CPAN

  my $prompts_str='';
  if (@prompts) {
    $prompts_str.="die 'please write prompt handling code';\n";
    foreach my $p (@prompts) {
      my($mess, $def) = @$p;
      $prompts_str.="Module::Build->prompt(q{$mess},q{$def});\n";
    }
    $prompts_str.="\n";
  }
  my $str;
  { local $Data::Dumper::Indent=1;local $Data::Dumper::Terse=1;
    $str=Data::Dumper->Dump([\%result], []);
    $str=~s/^\{[\x0A\x0D]+//s;
    $str=~s/\}[\x0A\x0D]+\s*$//s;
  }
  print $out <<'EOT';
use strict;
use Module::Build;
#created by eumm-migrate.pl

EOT
print $out $prompts_str;



( run in 0.799 second using v1.01-cache-2.11-cpan-4d50c553e7e )