/usr/share/perl5/Module/Package/RDF.pm is in libmodule-package-rdf-perl 0.014-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 | package Module::Package::RDF;
use 5.010;
use strict;
use RDF::Trine 0.135 ();
use RDF::TriN3 0.200 ();
use Module::Package 0.30 ();
use Module::Install::AutoInstall 0 ();
use Module::Install::AutoLicense 0.08 ();
use Module::Install::AutoManifest 0 ();
use Module::Install::ReadmeFromPod 0.12 ();
use Module::Install::StandardDocuments ();
use Module::Install::Copyright 0.009 ();
use Module::Install::Credits 0.009 ();
use Module::Install::RDF 0.009 ();
use Module::Install::DOAP 0.006 ();
use Module::Install::DOAPChangeSets 0.206 ();
use Module::Install::TrustMetaYml 0.003 ();
use Log::Log4perl 0 qw(:easy);
BEGIN {
$Module::Package::RDF::AUTHORITY = 'cpan:TOBYINK';
$Module::Package::RDF::VERSION = '0.014';
}
use Moo;
extends 'Module::Package::Plugin';
sub main
{
my ($self) = @_;
$self->mi->trust_meta_yml;
$self->mi->rdf_metadata;
$self->mi->doap_metadata;
$self->mi->static_config;
$self->mi->sign;
$self->mi->include_deps('Module::Package::Dist::RDF');
# These run later, as specified.
$self->post_all_from(sub {Log::Log4perl->easy_init($ERROR);$self->mi->write_doap_changes});
$self->post_all_from(sub {$self->mi->auto_license});
$self->post_all_from(sub {$self->mi->write_meta_ttl});
$self->post_all_from(sub {$self->mi->write_credits_file});
$self->post_all_from(sub {$self->mi->write_copyright_file});
$self->post_all_from(sub {$self->mi->auto_manifest});
$self->post_all_from(sub {$self->mi->auto_install});
$self->post_all_from(sub {$self->mi->clean_files('Changes')});
$self->post_all_from(sub {$self->mi->clean_files('inc')});
$self->post_all_from(sub {$self->mi->clean_files('LICENSE')});
$self->post_all_from(sub {$self->mi->clean_files('MANIFEST')});
$self->post_all_from(sub {$self->mi->clean_files('META.yml')});
$self->post_all_from(sub {$self->mi->clean_files('MYMETA.json')});
$self->post_all_from(sub {$self->mi->clean_files('MYMETA.yml')});
$self->post_all_from(sub {$self->mi->clean_files('README')});
$self->post_all_from(sub {$self->mi->clean_files('SIGNATURE')});
}
# We __don't__ want to auto-invoke all_from...
sub all_from
{
my $self = shift;
# $self->mi->_all_from(@_); # NO THANK YOU!
$_->() for @{$self->{post_all_from} || []};
}
sub write_deps_list {}
{
package Module::Package::RDF::standard;
use 5.010;
BEGIN {
$Module::Package::RDF::standard::AUTHORITY = 'cpan:TOBYINK';
$Module::Package::RDF::standard::VERSION = '0.014';
@Module::Package::RDF::standard::ISA = 'Module::Package::RDF';
};
}
{
package Module::Package::RDF::tobyink;
use 5.010;
BEGIN {
$Module::Package::RDF::tobyink::AUTHORITY = 'cpan:TOBYINK';
$Module::Package::RDF::tobyink::VERSION = '0.014';
@Module::Package::RDF::tobyink::ISA = 'Module::Package::RDF';
};
sub main
{
my $self = shift;
$self->mi->clone_standard_documents;
$self->SUPER::main(@_);
}
}
1;
__END__
=head1 NAME
Module::Package::RDF - drive your distribution with RDF
=head1 SYNOPSIS
In your Makefile.PL:
use inc::Module::Package 'RDF';
That's all folks!
=head1 DESCRIPTION
Really simple Makefile.PL.
=head1 FLAVOURS
Currently this module only defines the C<:standard> flavour.
=head2 :standard
This is the default, so the following are equivalent:
use inc::Module::Package 'RDF';
use inc::Module::Package 'RDF:standard';
In addition to the inherited behavior, this flavour uses the following plugins:
=over
=item * AutoLicense
=item * AutoManifest
=item * Copyright
=item * Credits
=item * DOAP
=item * DOAPChangeSets
=item * RDF
=item * ReadmeFromPod
=item * TrustMetaYml
=back
And sets C<< static_config >> and C<< sign >>.
=head1 BUGS
Please report any bugs to L<http://rt.cpan.org/>.
=head1 SEE ALSO
L<Module::Package>,
L<Module::Install::RDF>,
L<Module::Install::DOAP>,
L<Module::Install::DOAPChangeSets> .
L<http://www.perlrdf.org/>.
=head1 AUTHOR
Toby Inkster E<lt>tobyink@cpan.orgE<gt>.
=head1 COPYRIGHT AND LICENSE
Copyright (C) 2011-2013 by Toby Inkster
This library is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
=head1 DISCLAIMER OF WARRANTIES
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
=cut
|