Permalink
Browse files

add a parrot minting profile

  • Loading branch information...
1 parent da2c534 commit fbfcfd6f90e2d96a306734df40e8ab631b0ac4c6 @leto committed Jul 10, 2012
@@ -0,0 +1,34 @@
+package Dist::Zilla::MintingProfile::Parrot;
+
+use Moose;
+use namespace::autoclean;
+
+with 'Dist::Zilla::Role::MintingProfile::ShareDir';
+
+__PACKAGE__->meta->make_immutable;
+1;
+
+__END__
+
+=pod
+
+=head1 NAME
+
+Dist::Zilla::MintingProfile::Parrot - minting profile provider for Parrot VM projects
+
+=head1 DESCRIPTION
+
+This provider is shipped when you use 'dzil new -P Parrot -p parrot'
+
+=head1 AUTHOR
+
+Jonathan "Duke" Leto
+
+=head1 COYPRIGHT
+
+This software is copyright (c) 2012 by Leto Labs LLC.
+
+This is free software; you can redistribute it and/or modify it under
+the same terms as the Perl 5 programming language system itself.
+
+=cut
@@ -0,0 +1,48 @@
+package Dist::Zilla::Plugin::Parrot::Minter;
+
+# ABSTRACT: Default "minter" for Dist::Zilla::Plugin::Parrot
+use Moose;
+extends 'Dist::Zilla::Plugin::GatherDir::Template';
+with 'Dist::Zilla::Role::FilePruner';
+
+sub prune_files{
+ my $self = shift;
+ my $files = $self->zilla->files;
+ @$files = grep { $_->name !~ m/profile.ini|.*\.pm$/} @$files;
+ return;
+}
+
+
+1;
+
+__END__
+
+=pod
+
+=head1 NAME
+
+Dist::Zilla::Plugin::Parrot::Minter - Parrot VM Minter
+
+=head1 SYNOPSIS
+
+ #profile.ini
+ Parrot::Minter
+
+=head1 DESCRIPTION
+
+This is the minter for Dist::Zilla::Plugin::Parrot
+
+=head1 AUTHOR
+
+Jonathan "Duke" Leto <jonathan@leto.net>
+
+=head1 COYPRIGHT
+
+This software is copyright (c) 2012 by Leto Labs LLC.
+
+This is free software; you can redistribute it and/or modify it under
+the same terms as the Perl 5 programming language system itself.
+
+=cut
+
+
View
@@ -0,0 +1,12 @@
+name = {{ $dist->name }}
+abstract = Some clever yet compact description
+author = {{ $dist->authors->[0] }}
+version = 0.0001
+license = GPL_3
+copyright_holder = {{ $dist->copyright_holder }}
+
+
+[GatherDir]
+[PruneCruft]
+[License]
+[Parrot]
@@ -0,0 +1 @@
+[Parrot::Minter]

0 comments on commit fbfcfd6

Please sign in to comment.