Skip to content

Commit

Permalink
Version 0.001000: Build of 2f64dc7 on master
Browse files Browse the repository at this point in the history
  • Loading branch information
kentfredric committed Jan 7, 2016
0 parents commit 635a1b8
Show file tree
Hide file tree
Showing 26 changed files with 2,068 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/MANIFEST
/MANIFEST.bak
/META.*
/MYMETA.*
/Makefile
/Makefile.old
/README
/blib/
/pm_to_blib
/Distar
*~
*#
.#*
/Call-From-*
/cover_db/
/MANIFEST.SKIP
/pod2*.tmp
3 changes: 3 additions & 0 deletions .mailmap
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# git help shortlog
# newname <newaddr> oldname <oldaddr>
<kentnl@cpan.org> <kentfredric@gmail.com>
2 changes: 2 additions & 0 deletions .perltidyrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-i 4
-l 80
42 changes: 42 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
after_success:
- coverage-report
before_install:
- git clone git://github.com/travis-perl/helpers ~/travis-perl-helpers
- source ~/travis-perl-helpers/init
- build-perl
- perl -V
- build-dist;
- cd $BUILD_DIR;
before_script:
- coverage-setup
env:
- AUTHOR_TESTING=0
install:
- cpan-install --deps
- cpan-install --coverage
language: perl
matrix:
include:
- env: COVERAGE=1
perl: 5.22.0

perl:
- 5.6.2
- 5.8.1
- 5.8.8
- 5.8.9
- 5.10.0
- 5.10.1
- 5.12.5
- 5.14.4
- 5.16.3
- 5.18.2
- 5.18.3
- 5.20.0
- 5.20.1
- dev
script:
- perl Makefile.PL
- prove -lvr $(test-files)
sudo: false
4 changes: 4 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Release history for Call-From

0.001000 - 2016-01-07
- Initial Release.
379 changes: 379 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

134 changes: 134 additions & 0 deletions Makefile.PL
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
use strict;
use warnings FATAL => 'all';
use 5.006;

my $DISTNAME = 'Call-From';
my $GITHUB_USER = 'kentnl';
my $GITHUB_REPO = $DISTNAME;

my %META = (
name => $DISTNAME,
license => 'perl_5',
dynamic_config => 0,
prereqs => {
configure => {
requires => {
'ExtUtils::MakeMaker' => 0,
}
},
build => { requires => {} },
test => {
requires => {
'constant' => 0,
'Test::More' => '0.95_02',
}
},
runtime => {
requires => {
'Exporter' => 0,
'perl' => '5.006',
}
},
develop => {
requires => {
'CPAN::Meta::Converter' => 0,
'CPAN::Meta::Prereqs' => 0,
'Carp' => 0,
'Config' => 0,
'Data::Dumper' => 0,
'Exporter' => 0,
'ExtUtils::MM' => 0,
'ExtUtils::MakeMaker' => 0,
'ExtUtils::Manifest' => 0,
'File::Find' => 0,
'File::Path' => 0,
'File::Spec' => 0,
'File::Temp' => 0,
'Getopt::Long' => 0,
'Module::CPANfile' => 0,
'Module::Metadata' => 0,
'PIR' => 0,
'Path::Tiny' => 0,
'Perl::PrereqScanner' => 0,
'Pod::Coverage::TrustPod' => 0,
'Test::CPAN::Changes' => 0,
'Test::EOL' => 0,
'Test::Kwalitee' => '1.21',
'Test::More' => '0.96',
'Test::Perl::Critic' => 0,
'Test::Pod' => '1.41',
'Test::Pod::Coverage' => '1.08',
'base' => 0,
'perl' => '5.006',
}
},
},
resources => {
repository => {
url => 'git://github.com/' . $GITHUB_USER . '/' . $GITHUB_REPO,
web => 'https://github.com/' . $GITHUB_USER . '/' . $GITHUB_REPO,
type => 'git',
},
bugtracker => {
web => 'https://github.com/'
. $GITHUB_USER . '/'
. $GITHUB_REPO
. '/issues'
},
license => ['http://dev.perl.org/licenses/'],
},
x_authority => "cpan:KENTNL",
(
( !-f 'META.yml' and -f 'maint/provided.pl' )
? ( provides => ( do 'maint/provided.pl' or die $@ ) )
: ()
)
);

my %MM_ARGS = ();

## BOILERPLATE ###############################################################
require ExtUtils::MakeMaker;
( do 'maint/Makefile.PL.include' or die $@ ) unless -f 'META.yml';

# have to do this since old EUMM dev releases miss the eval $VERSION line
my $eumm_version = eval $ExtUtils::MakeMaker::VERSION;
my $mymeta = $eumm_version >= 6.57_02;
my $mymeta_broken = $mymeta && $eumm_version < 6.57_07;

( $MM_ARGS{NAME} = $META{name} ) =~ s/-/::/g;
( $MM_ARGS{VERSION_FROM} = "lib/$MM_ARGS{NAME}.pm" ) =~ s{::}{/}g;
$META{license} = [ $META{license} ]
if $META{license} && !ref $META{license};
$MM_ARGS{LICENSE} = $META{license}[0]
if $META{license} && $eumm_version >= 6.30;
$MM_ARGS{NO_MYMETA} = 1
if $mymeta_broken;
$MM_ARGS{META_ADD} = { 'meta-spec' => { version => 2 }, %META }
unless -f 'META.yml';
$MM_ARGS{test} = { TESTS => "t/*.t t/*/*.t" };

for (qw(configure build test runtime)) {
my $key = $_ eq 'runtime' ? 'PREREQ_PM' : uc $_ . '_REQUIRES';
my $r = $MM_ARGS{$key} = {
%{ $META{prereqs}{$_}{requires} || {} },
%{ delete $MM_ARGS{$key} || {} },
};
defined $r->{$_} or delete $r->{$_} for keys %$r;
}

$MM_ARGS{MIN_PERL_VERSION} = delete $MM_ARGS{PREREQ_PM}{perl} || 0;

delete $MM_ARGS{MIN_PERL_VERSION}
if $eumm_version < 6.47_01;
$MM_ARGS{BUILD_REQUIRES} =
{ %{ $MM_ARGS{BUILD_REQUIRES} }, %{ delete $MM_ARGS{TEST_REQUIRES} } }
if $eumm_version < 6.63_03;
$MM_ARGS{PREREQ_PM} =
{ %{ $MM_ARGS{PREREQ_PM} }, %{ delete $MM_ARGS{BUILD_REQUIRES} } }
if $eumm_version < 6.55_01;
delete $MM_ARGS{CONFIGURE_REQUIRES}
if $eumm_version < 6.51_03;

ExtUtils::MakeMaker::WriteMakefile(%MM_ARGS);
## END BOILERPLATE ###########################################################
Loading

0 comments on commit 635a1b8

Please sign in to comment.