| 1 | use 5.010001; | ||
| 2 | use strict; | ||
| 3 | use warnings; | ||
| 4 | |||
| 5 | package Dist::Inktly::Bovine; | ||
| 6 | |||
| 7 | our $AUTHORITY = 'cpan:TOBYINK'; | ||
| 8 | our $VERSION = '0.005'; | ||
| 9 | |||
| 10 | use Text::Template; | ||
| 11 | |||
| 12 | use base 'Dist::Inktly::Minty'; | ||
| 13 | |||
| 14 | sub _get_template | ||
| 15 | { | ||
| 16 | my $class = shift; | ||
| 17 | my ($key) = @_; | ||
| 18 | |||
| 19 | return 'Text::Template'->new(-type=>'string', -source=><<'EOF') if $key eq 'module'; | ||
| 20 | COMMENCE module | ||
| 21 | use 5.010001; | ||
| 22 | use strict; | ||
| 23 | use warnings; | ||
| 24 | |||
| 25 | package {$module_name}; | ||
| 26 | |||
| 27 | our $AUTHORITY = 'cpan:{uc $author->{cpanid}}'; | ||
| 28 | our $VERSION = '{$version}'; | ||
| 29 | |||
| 30 | use Moo; | ||
| 31 | use Types::Common qw( -types -sigs ); | ||
| 32 | use namespace::autoclean; | ||
| 33 | |||
| 34 | 1; | ||
| 35 | |||
| 36 | {}__END__ | ||
| 37 | |||
| 38 | {}=pod | ||
| 39 | |||
| 40 | {}=encoding utf-8 | ||
| 41 | |||
| 42 | {}=head1 NAME | ||
| 43 | |||
| 44 | {$module_name} - {$abstract} | ||
| 45 | |||
| 46 | {}=head1 SYNOPSIS | ||
| 47 | |||
| 48 | {}=head1 DESCRIPTION | ||
| 49 | |||
| 50 | {}=head1 BUGS | ||
| 51 | |||
| 52 | Please report any bugs to | ||
| 53 | L<https://github.com/{lc $author->{cpanid}}/p5-{lc URI::Escape::uri_escape($dist_name)}/issues>. | ||
| 54 | |||
| 55 | {}=head1 SEE ALSO | ||
| 56 | |||
| 57 | {}=head1 AUTHOR | ||
| 58 | |||
| 59 | {$author->{name}} E<lt>{$author->{mbox}}E<gt>. | ||
| 60 | |||
| 61 | {}=head1 COPYRIGHT AND LICENCE | ||
| 62 | |||
| 63 | {$licence->notice} | ||
| 64 | |||
| 65 | {}=head1 DISCLAIMER OF WARRANTIES | ||
| 66 | |||
| 67 | THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED | ||
| 68 | WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF | ||
| 69 | MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
| 70 | |||
| 71 | EOF | ||
| 72 | |||
| 73 | return 'Text::Template'->new(-type=>'string', -source=><<'EOF') if $key eq 'meta/makefile.pret'; | ||
| 74 | # This file provides instructions for packaging. | ||
| 75 | |||
| 76 | @prefix : <http://ontologi.es/doap-deps#>. | ||
| 77 | |||
| 78 | `{$dist_name}` | ||
| 79 | :runtime-requirement [ :on "perl 5.010001"^^:CpanId ]; | ||
| 80 | :runtime-requirement [ :on "Moo 2.000000"^^:CpanId ]; | ||
| 81 | :runtime-requirement [ :on "Types::Standard 2.000000"^^:CpanId ]; | ||
| 82 | :runtime-requirement [ :on "namespace::autoclean 0.12"^^:CpanId ]; | ||
| 83 | :test-requirement [ :on "Test2::V0"^^:CpanId ]; | ||
| 84 | :test-requirement [ :on "Test2::Tools::Spec"^^:CpanId ]; | ||
| 85 | :test-requirement [ :on "Test2::Require::AuthorTesting"^^:CpanId ]; | ||
| 86 | :test-requirement [ :on "Test2::Require::Module"^^:CpanId ]; | ||
| 87 | :test-requirement [ :on "Test2::Plugin::BailOnFail"^^:CpanId ]; | ||
| 88 | :develop-recommendation [ :on "Dist::Inkt 0.001"^^:CpanId ]; | ||
| 89 | . | ||
| 90 | EOF | ||
| 91 | |||
| 92 | return $class->SUPER::_get_template(@_); | ||
| 93 | } | ||
| 94 | |||
| 95 | 1; | ||
| 96 | |||
| 97 | =head1 NAME | ||
| 98 | |||
| 99 | Dist::Inktly::Bovine - create distributions that will use Dist::Inkt and Moo | ||
| 100 | |||
| 101 | =head1 SYNOPSIS | ||
| 102 | |||
| 103 | distinkt-mint --maker=Dist::Inktly::Bovine Local::Example::Useful | ||
| 104 | |||
| 105 | =head1 DESCRIPTION | ||
| 106 | |||
| 107 | This class inherits from L<Dist::Inktly::Minty>. | ||
| 108 | |||
| 109 | =head1 SEE ALSO | ||
| 110 | |||
| 111 | L<Dist::Inkt>. | ||
| 112 | |||
| 113 | =head1 AUTHOR | ||
| 114 | |||
| 115 | Toby Inkster E<lt>tobyink@cpan.orgE<gt>. | ||
| 116 | |||
| 117 | =head1 COPYRIGHT AND LICENCE | ||
| 118 | |||
| 119 | This software is copyright (c) 2013-2023 by Toby Inkster. | ||
| 120 | |||
| 121 | This is free software; you can redistribute it and/or modify it under | ||
| 122 | the same terms as the Perl 5 programming language system itself. | ||
| 123 | |||
| 124 | =head1 DISCLAIMER OF WARRANTIES | ||
| 125 | |||
| 126 | THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED | ||
| 127 | WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF | ||
| 128 | MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
| 129 | |||
| 130 | =cut |