Anonymous avatar Anonymous committed 166b889

Revamped the Build.PL - moved away duplicate dependencies in the
requires and build_requires. Now generating Makefile.PL from Build.PL.

Comments (0)

Files changed (3)

CPANPLUS-Dist-Fedora/Build.PL

         map { ( '*/' x $_ ) . '*~' } 0..5 ],
     script_files   => [ ],
     build_requires => {
+        'Test::More'           => 0,
+        'perl'                 => '5.008',
+    },
+    requires       => {
         'CPANPLUS'             => 0,
+        'CPANPLUS::Dist::Base' => 0,
+        'CPANPLUS::Error'      => 0,
+        'File::Basename'       => 0,
+        'File::Copy'           => 0,
         'File::Slurp'          => 0,
         'IPC::Cmd'             => 0,
         'Pod::POM'             => 0,
         'Pod::POM::View::Text' => 0,
         'POSIX'                => 0,
         'Readonly'             => 0,
-        'Test::More'           => 0,
-        'perl'                 => '5.008',
-    },
-    requires       => {
-        'CPANPLUS'             => 0,
-        'File::Slurp'          => 0,
-        'IPC::Cmd'             => 0,
-        'Pod::POM'             => 0,
-        'Pod::POM::View::Text' => 0,
-        'POSIX'                => 0,
-        'Readonly'             => 0,
+        'Text::Wrap'           => 0,
+        'Template'             => 0,
         'perl'                 => '5.008',
     },
     recommends     => {
         'Test::Pod'           => 0,
         'Test::Pod::Coverage' => 0,
     },
+    create_makefile_pl => "traditional",
 );
 
 $builder->create_build_script();

CPANPLUS-Dist-Fedora/META.yml

 version: 0.0.1
 author:
   - 'Shlomi Fish <shlomif@cpan.org>'
-abstract: a cpanplus backend to build Fedora/Red Hat rpms
+abstract: a cpanplus backend to build Fedora/RedHat rpms
 license: perl
 resources:
   license: http://dev.perl.org/licenses/
 requires:
   CPANPLUS: 0
+  CPANPLUS::Dist::Base: 0
+  CPANPLUS::Error: 0
+  File::Basename: 0
+  File::Copy: 0
   File::Slurp: 0
   IPC::Cmd: 0
   POSIX: 0
   Pod::POM: 0
   Pod::POM::View::Text: 0
   Readonly: 0
+  Template: 0
+  Text::Wrap: 0
   perl: 5.008
 build_requires:
-  CPANPLUS: 0
-  File::Slurp: 0
-  IPC::Cmd: 0
-  POSIX: 0
-  Pod::POM: 0
-  Pod::POM::View::Text: 0
-  Readonly: 0
   Test::More: 0
   perl: 5.008
 recommends:

CPANPLUS-Dist-Fedora/Makefile.PL

-#!perl
-#
-# This file is part of CPANPLUS::Dist::Fedora.
-# Copyright (c) 2007 Jerome Quelin, all rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the same terms as Perl itself.
-#
-#
-
-BEGIN { require 5.008; }
-use strict;
-use warnings;
-use ExtUtils::MakeMaker;
-
-WriteMakefile(
-    NAME                => 'CPANPLUS::Dist::Fedora',
-    AUTHOR              => 'Shlomi Fish <shlomif@cpan.org>',
-    VERSION_FROM        => 'lib/CPANPLUS/Dist/Fedora.pm',
-    ABSTRACT_FROM       => 'lib/CPANPLUS/Dist/Fedora.pm',
-    PL_FILES            => {},
-    PREREQ_PM => {
-        'CPANPLUS'             => 0,
-        'File::Slurp'          => 0,
-        'IPC::Cmd'             => 0,
-        'Pod::POM'             => 0,
-        'Pod::POM::View::Text' => 0,
-        'POSIX'                => 0,
-        'Readonly'             => 0,
-        'Test::More'           => 0,
-    },
-    dist  => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
-    clean => { FILES => [
-                'CPANPLUS-Dist-Fedora-*', 'MANIFEST.bak',
-                map { ( '*/' x $_ ) . '*~' } 0..5
-        ] },
-);
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.