ExtUtils::MY_Metafile - META.yml customize with ExtUtil::MakeMaker
Version 0.04
put ExtUtils/MY_Metafile.pm into inc/ExtUtils/MY_Metafile.pm:
$ mkdir -p inc/ExtUtils $ cp `perldoc -l ExtUtils::MY_Metafile` inc/ExtUtils/
and write in your Makefile.PL:
use ExtUtils::MakeMaker; use inc::ExtUtils::MY_Metafile; my_metafile { no_index => { directory => [ qw(inc example t), ], }, license => 'perl', }; WriteMakefile( DISTNAME => 'Your::Module', ... );
This module exports one function.
Takes two arguments. First one is package name to be generated, and you can omit this argument. Second is hashref which contains META.yml contents.
my_metafile { no_index => { directory => [ qw(inc example t), ], }, license => 'perl', };
Some parameters are checked automatically.
If you not specify directory parameter for no_index and there is directory inc t ex eg example examples sample samples demo demos, they are set as it.
directory
no_index
inc t ex eg example examples sample samples demo demos
requires directive is set from PREREQ_PM parameter of EUMM. If you want to use build_requires, you can write it.
requires
PREREQ_PM
build_requires
YAMASHINA Hio, <hio at cpan.org>
<hio at cpan.org>
Please report any bugs or feature requests to bug-extutils-my_metafile at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=ExtUtils-MY_Metafile. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-extutils-my_metafile at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc ExtUtils::MY_Metafile
You can also look for information at:
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/ExtUtils-MY_Metafile
CPAN Ratings
http://cpanratings.perl.org/d/ExtUtils-MY_Metafile
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=ExtUtils-MY_Metafile
Search CPAN
http://search.cpan.org/dist/ExtUtils-MY_Metafile
Copyright 2006 YAMASHINA Hio, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
# ----------------------------------------------------------------------------- # End of File. # -----------------------------------------------------------------------------
To install ExtUtils::MY_Metafile, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ExtUtils::MY_Metafile
CPAN shell
perl -MCPAN -e shell install ExtUtils::MY_Metafile
For more information on module installation, please visit the detailed CPAN module installation guide.