Skip to content
Browse files

Let dzil generate META.*

  • Loading branch information...
1 parent 0d84b79 commit b88be6c40ff796e169a3070c7a1fb5a185e28179 @pjcj committed Mar 18, 2012
Showing with 44 additions and 176 deletions.
  1. +0 −71 META.json
  2. +0 −44 META.yml
  3. +1 −55 Makefile.PL
  4. +43 −6 dist.ini
View
71 META.json
@@ -1,71 +0,0 @@
-{
- "abstract" : "Code coverage metrics for Perl",
- "author" : [
- "Paul Johnson (pjcj@cpan.org)"
- ],
- "dynamic_config" : 1,
- "generated_by" : "ExtUtils::MakeMaker version 6.58, CPAN::Meta::Converter version 2.110930001",
- "license" : [
- "perl_5"
- ],
- "meta-spec" : {
- "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
- "version" : "2"
- },
- "name" : "Devel-Cover",
- "no_index" : {
- "directory" : [
- "t",
- "inc",
- "tests",
- "utils"
- ]
- },
- "prereqs" : {
- "build" : {
- "requires" : {
- "ExtUtils::MakeMaker" : 0,
- "Test::More" : 0,
- "Test::Warn" : 0
- }
- },
- "configure" : {
- "requires" : {
- "ExtUtils::MakeMaker" : 0
- }
- },
- "runtime" : {
- "recommends" : {
- "JSON::PP" : 0,
- "PPI::HTML" : "1.07",
- "Parallel::Iterator" : 0,
- "Perl::Tidy" : "20060719",
- "Pod::Coverage" : "0.06",
- "Pod::Coverage::CountParents" : 0,
- "Template" : "2",
- "Test::Differences" : 0,
- "perl" : "5.008002"
- },
- "requires" : {
- "Digest::MD5" : 0,
- "Storable" : 0,
- "perl" : "5.006001"
- }
- }
- },
- "release_status" : "stable",
- "resources" : {
- "bugtracker" : {
- "web" : "http://rt.cpan.org/NoAuth/Bugs.html?Dist=Devel-Cover"
- },
- "homepage" : "http://www.pjcj.net/perl.html",
- "license" : [
- "http://dev.perl.org/licenses"
- ],
- "repository" : {
- "url" : "http://github.com/pjcj/Devel--Cover"
- },
- "x_MailingList" : "http://lists.perl.org/list/perl-qa.html"
- },
- "version" : "0.79"
-}
View
44 META.yml
@@ -1,44 +0,0 @@
----
-abstract: 'Code coverage metrics for Perl'
-author:
- - 'Paul Johnson (pjcj@cpan.org)'
-build_requires:
- ExtUtils::MakeMaker: 0
- Test::More: 0
- Test::Warn: 0
-configure_requires:
- ExtUtils::MakeMaker: 0
-dynamic_config: 1
-generated_by: 'ExtUtils::MakeMaker version 6.58, CPAN::Meta::Converter version 2.110930001'
-license: perl
-meta-spec:
- url: http://module-build.sourceforge.net/META-spec-v1.4.html
- version: 1.4
-name: Devel-Cover
-no_index:
- directory:
- - t
- - inc
- - tests
- - utils
-recommends:
- JSON::PP: 0
- PPI::HTML: 1.07
- Parallel::Iterator: 0
- Perl::Tidy: 20060719
- Pod::Coverage: 0.06
- Pod::Coverage::CountParents: 0
- Template: 2
- Test::Differences: 0
- perl: 5.008002
-requires:
- Digest::MD5: 0
- Storable: 0
- perl: 5.006001
-resources:
- bugtracker: http://rt.cpan.org/NoAuth/Bugs.html?Dist=Devel-Cover
- homepage: http://www.pjcj.net/perl.html
- license: http://dev.perl.org/licenses
- repository: http://github.com/pjcj/Devel--Cover
- x_MailingList: http://lists.perl.org/list/perl-qa.html
-version: 0.79
View
56 Makefile.PL
@@ -300,7 +300,7 @@ WriteMakefile
(
NAME => "Devel::Cover",
VERSION => $Version,
- AUTHOR => 'Paul Johnson (pjcj@cpan.org)',
+ AUTHOR => 'Paul Johnson <pjcj@cpan.org>',
ABSTRACT_FROM => "lib/Devel/Cover.pm",
DIR => [],
EXE_FILES => [ map "bin/$_", qw( cover gcov2perl cpancover ) ],
@@ -321,55 +321,6 @@ WriteMakefile
POSTOP => "\$(RM_RF) cover_db t/e2e"
} :
{ FILES => "lib/Devel/Cover/Inc.pm cover_db t/e2e" },
- $] >= 5.010001 ?
- (
- LICENSE => "perl",
- META_ADD =>
- {
- requires =>
- {
- perl => 5.006001,
- Storable => 0,
- "Digest::MD5" => 0,
- },
- dynamic_config => 1,
- },
- META_MERGE =>
- {
- recommends =>
- {
- perl => 5.008002,
- Template => 2.00,
- "PPI::HTML" => 1.07,
- "Perl::Tidy" => 20060719,
- "Pod::Coverage" => 0.06,
- "Pod::Coverage::CountParents" => 0,
- "Test::Differences" => 0,
- "Parallel::Iterator" => 0,
- "JSON::PP" => 0,
- },
- build_requires =>
- {
- "Test::More" => 0,
- "Test::Warn" => 0,
- },
- no_index =>
- {
- directory => [ "tests", "utils" ],
- },
- resources =>
- {
- license => "http://dev.perl.org/licenses",
- homepage => "http://www.pjcj.net/perl.html",
- bugtracker =>
- "http://rt.cpan.org/NoAuth/Bugs.html?Dist=Devel-Cover",
- repository => "http://github.com/pjcj/Devel--Cover",
- x_mailing_list => "http://lists.perl.org/list/perl-qa.html",
- },
- },
- MIN_PERL_VERSION => "5.6.1",
- ) :
- ()
);
print "\n";
@@ -483,11 +434,6 @@ _self_cover_tests : @{[sort values %tests]}
self_cover : _self_cover_reports
\t \$(PERL) -Mblib bin/cover -report html_basic
-mani :
-\t -rm MANIFEST
-\t \$(MAKE) manifest
-\t \$(PERL) -i.bak -ne '\$\$d = "test_output/cover"; print unless /^\$\$d/; END { open M, ">>MANIFEST"; opendir D, \$\$d; print M "\$\$d/\$\$_\\n" for sort grep -f "\$\$d/\$\$_", readdir D }' MANIFEST
-
ok :
\t \@$Perlbug -okay || echo "Please send your report manually to $Author"
View
49 dist.ini
@@ -1,10 +1,10 @@
name = Devel-Cover
abstract = Code coverage metrics for Perl
-author = PJCJ
+author = Paul Johnson <pjcj@cpan.org>
license = Perl_5
-copyright_holder = PJCJ
+copyright_holder = Paul Johnson
-[VersionFromScript] ; the version os stored in Makefile.PL
+[VersionFromScript] ; the version is stored in Makefile.PL
script = make show_version
[Run::BeforeBuild] ; commands to run before build phase
@@ -16,9 +16,46 @@ include_dotfiles = 1
[ExecDir] ; mark bin as the dir to contain scripts
[OurPkgVersion] ; add versions to the packages
[PodVersion] ; add versions to the POD of packages
+[MetaYAML] ; create META.yml
+[MetaJSON] ; create META.json
+[MetaConfig] ; add dzil info to meta files
+[MetaResources] ; add resources to meta files
+homepage = http://www.pjcj.net/perl.html
+bugtracker.web = http://rt.cpan.org/NoAuth/Bugs.html?Dist=Devel-Cover
+bugtracker.mailto = bug-Devel-Cover@rt.cpan.org
+license = http://dev.perl.org/licenses
+; repository.url = git://github.com/pjcj/Devel--Cover.git ; overrides web
+repository.url = http://github.com/pjcj/Devel--Cover
+repository.web = http://github.com/pjcj/Devel--Cover
+repository.type = git
+x_mailing_list = http://lists.perl.org/list/perl-qa.html
+[MetaNoIndex]
+directory = tests
+directory = t
+directory = utils
; [License] ; add LICENSE file
-
[Manifest] ; builds the manifest from the gathered files
+[Prereqs]
+perl = 5.006001
+Storable = 0
+Digest::MD5 = 0
+[Prereqs / Recommends]
+perl = 5.008002
+Template = 2.00
+PPI::HTML = 1.07
+Perl::Tidy = 20060719
+Pod::Coverage = 0.06
+Pod::Coverage::CountParents = 0
+Parallel::Iterator = 0
+JSON::PP = 0
+Test::Differences = 0 ; make sure it gets added
+[Prereqs / ConfigureRequires]
+ExtUtils::MakeMaker = 0
+[Prereqs / TestRequires]
+Test::More = 0
+Test::Warn = 0
+[Prereqs / TestRecommends]
+Test::Differences = 0
[Run::Test]
run = perl Makefile.PL && HARNESS_OPTIONS=j9:c HARNESS_TIMER=1 make test
@@ -42,8 +79,8 @@ format = Release %v - %{d}dth %{MMMM yyyy}d
; following can do stuff, but aren't used yet
; [ExtraTests]
-; [PruneCruft ]
-; [ShareDir ]
+; [PruneCruft]
+; [ShareDir]
; [InsertCopyright]
; [EOLTests]

0 comments on commit b88be6c

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