Build.PL000644001750001750 345712142137366 20433 0ustar00tokuhiromtokuhirom000000000000Module-Build-Pluggable-0.10# ========================================================================= # THIS FILE IS AUTOMATICALLY GENERATED BY MINILLA. # DO NOT EDIT DIRECTLY. # ========================================================================= use 5.008_001; use strict; use warnings; use utf8; use Module::Build; use File::Basename; use File::Spec; use CPAN::Meta; use CPAN::Meta::Prereqs; my %args = ( license => 'perl', dynamic_config => 0, configure_requires => { 'Module::Build' => 0.38, }, name => 'Module-Build-Pluggable', module_name => 'Module::Build::Pluggable', allow_pure_perl => 0, script_files => [glob('script/*'), glob('bin/*')], test_files => ((-d '.git' || $ENV{RELEASE_TESTING}) && -d 'xt') ? 't/ xt/' : 't/', recursive_test_files => 1, ); if (-d 'share') { $args{share_dir} = 'share'; } my $builder = Module::Build->subclass( class => 'MyBuilder', code => q{ sub ACTION_distmeta { die "Do not run distmeta. Install Minilla and `minil install` instead.\n"; } sub ACTION_installdeps { die "Do not run installdeps. Run `cpanm --installdeps .` instead.\n"; } } )->new(%args); $builder->create_build_script(); my $mbmeta = CPAN::Meta->load_file('MYMETA.json'); my $meta = CPAN::Meta->load_file('META.json'); my $prereqs_hash = CPAN::Meta::Prereqs->new( $meta->prereqs )->with_merged_prereqs( CPAN::Meta::Prereqs->new($mbmeta->prereqs) )->as_string_hash; my $mymeta = CPAN::Meta->new( { %{$meta->as_struct}, prereqs => $prereqs_hash } ); print "Merging cpanfile prereqs to MYMETA.yml\n"; $mymeta->save('MYMETA.yml', { version => 1.4 }); print "Merging cpanfile prereqs to MYMETA.json\n"; $mymeta->save('MYMETA.json', { version => 2 }); Changes000644001750001750 232612142137366 20424 0ustar00tokuhiromtokuhirom000000000000Module-Build-Pluggable-0.10Revision history for Perl extension Module::Build::Pluggable 0.10 2013-05-07T08:44:27Z - Suppress warnings in test case. 0.09 2013-03-18T18:05:53 - Test::Module::Build::Pluggable: Added write_manifest() method. - Test::Module::Build::Pluggable: run_build_script() method can handle arguments. 0.08 2013-03-15T08:33:43 - Added add_around_action_modifier to M::B::P::Base (tokuhirom) 0.07 2013-03-11T19:00:02 - Added docs for Module::Build::Pluggable::GithubMeta 0.06 2013-03-11T18:36:20 - Module::Build::Pluggable::GithubMeta (tokuhirom) 0.05 - do not add + prefix-ed modules to (build|configure)_requires automatically (tokuhirom) - added more documents and more explicit error messages. (tokuhirom) 0.04 - added HOOK_prepare phase - Test::Module::Build::Pluggable#run_build_pl() accepts arguments as ARGV - added Module::Build::Pluggable::Base#requires, Module::Build::Pluggable::Base::add_extra_compiler_flags - added Test::Module::Build::Pluggable#write_plugin 0.03 - remove ppport plugin from core 0.02 - depend on perl 5.8 - added Test::Module::Build::Pluggable for testing 0.01 Wed Oct 31 23:32:39 2012 - original version LICENSE000644001750001750 4406212142137366 20161 0ustar00tokuhiromtokuhirom000000000000Module-Build-Pluggable-0.10This software is copyright (c) 2013 by Tokuhiro Matsuno Etokuhirom AAJKLFJEF@ GMAIL COME. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. Terms of the Perl programming language system itself a) the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or b) the "Artistic License" --- The GNU General Public License, Version 1, February 1989 --- This software is Copyright (c) 2013 by Tokuhiro Matsuno Etokuhirom AAJKLFJEF@ GMAIL COME. This is free software, licensed under: The GNU General Public License, Version 1, February 1989 GNU GENERAL PUBLIC LICENSE Version 1, February 1989 Copyright (C) 1989 Free Software Foundation, Inc. 51 Franklin St, Suite 500, Boston, MA 02110-1335 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The license agreements of most software companies try to keep users at the mercy of those companies. By contrast, our General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. The General Public License applies to the Free Software Foundation's software and to any other program whose authors commit to using it. You can use it for your programs, too. When we speak of free software, we are referring to freedom, not price. Specifically, the General Public License is designed to make sure that you have the freedom to give away or sell copies of free software, that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of a such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must tell them their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any work containing the Program or a portion of it, either verbatim or with modifications. Each licensee is addressed as "you". 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this General Public License and to the absence of any warranty; and give any other recipients of the Program a copy of this General Public License along with the Program. You may charge a fee for the physical act of transferring a copy. 2. You may modify your copy or copies of the Program or any portion of it, and copy and distribute such modifications under the terms of Paragraph 1 above, provided that you also do the following: a) cause the modified files to carry prominent notices stating that you changed the files and the date of any change; and b) cause the whole of any work that you distribute or publish, that in whole or in part contains the Program or any part thereof, either with or without modifications, to be licensed at no charge to all third parties under the terms of this General Public License (except that you may choose to grant warranty protection to some or all third parties, at your option). c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the simplest and most usual way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this General Public License. d) You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. Mere aggregation of another independent work with the Program (or its derivative) on a volume of a storage or distribution medium does not bring the other work under the scope of these terms. 3. You may copy and distribute the Program (or a portion or derivative of it, under Paragraph 2) in object code or executable form under the terms of Paragraphs 1 and 2 above provided that you also do one of the following: a) accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Paragraphs 1 and 2 above; or, b) accompany it with a written offer, valid for at least three years, to give any third party free (except for a nominal charge for the cost of distribution) a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Paragraphs 1 and 2 above; or, c) accompany it with the information you received as to where the corresponding source code may be obtained. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form alone.) Source code for a work means the preferred form of the work for making modifications to it. For an executable file, complete source code means all the source code for all modules it contains; but, as a special exception, it need not include source code for modules which are standard libraries that accompany the operating system on which the executable file runs, or for standard header files or definitions files that accompany that operating system. 4. You may not copy, modify, sublicense, distribute or transfer the Program except as expressly provided under this General Public License. Any attempt otherwise to copy, modify, sublicense, distribute or transfer the Program is void, and will automatically terminate your rights to use the Program under this License. However, parties who have received copies, or rights to use copies, from you under this General Public License will not have their licenses terminated so long as such parties remain in full compliance. 5. By copying, distributing or modifying the Program (or any work based on the Program) you indicate your acceptance of this license to do so, and all its terms and conditions. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. 7. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of the license which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the license, you may choose any version ever published by the Free Software Foundation. 8. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS Appendix: How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to humanity, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) 19yy This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) 19xx name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (a program to direct compilers to make passes at assemblers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice That's all there is to it! --- The Artistic License 1.0 --- This software is Copyright (c) 2013 by Tokuhiro Matsuno Etokuhirom AAJKLFJEF@ GMAIL COME. This is free software, licensed under: The Artistic License 1.0 The Artistic License Preamble The intent of this document is to state the conditions under which a Package may be copied, such that the Copyright Holder maintains some semblance of artistic control over the development of the package, while giving the users of the package the right to use and distribute the Package in a more-or-less customary fashion, plus the right to make reasonable modifications. Definitions: - "Package" refers to the collection of files distributed by the Copyright Holder, and derivatives of that collection of files created through textual modification. - "Standard Version" refers to such a Package if it has not been modified, or has been modified in accordance with the wishes of the Copyright Holder. - "Copyright Holder" is whoever is named in the copyright or copyrights for the package. - "You" is you, if you're thinking about copying or distributing this Package. - "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, but only to the computing community at large as a market that must bear the fee.) - "Freely Available" means that no fee is charged for the item itself, though there may be fees involved in handling the item. It also means that recipients of the item may redistribute it under the same conditions they received it. 1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, provided that you duplicate all of the original copyright notices and associated disclaimers. 2. You may apply bug fixes, portability fixes and other modifications derived from the Public Domain or from the Copyright Holder. A Package modified in such a way shall still be considered the Standard Version. 3. You may otherwise modify your copy of this Package in any way, provided that you insert a prominent notice in each changed file stating how and when you changed that file, and provided that you do at least ONE of the following: a) place your modifications in the Public Domain or otherwise make them Freely Available, such as by posting said modifications to Usenet or an equivalent medium, or placing the modifications on a major archive site such as ftp.uu.net, or by allowing the Copyright Holder to include your modifications in the Standard Version of the Package. b) use the modified Package only within your corporation or organization. c) rename any non-standard executables so the names do not conflict with standard executables, which must also be provided, and provide a separate manual page for each non-standard executable that clearly documents how it differs from the Standard Version. d) make other distribution arrangements with the Copyright Holder. 4. You may distribute the programs of this Package in object code or executable form, provided that you do at least ONE of the following: a) distribute a Standard Version of the executables and library files, together with instructions (in the manual page or equivalent) on where to get the Standard Version. b) accompany the distribution with the machine-readable source of the Package with your modifications. c) accompany any non-standard executables with their corresponding Standard Version executables, giving the non-standard executables non-standard names, and clearly documenting the differences in manual pages (or equivalent), together with instructions on where to get the Standard Version. d) make other distribution arrangements with the Copyright Holder. 5. You may charge a reasonable copying fee for any distribution of this Package. You may charge any fee you choose for support of this Package. You may not charge a fee for this Package itself. However, you may distribute this Package in aggregate with other (possibly commercial) programs as part of a larger (possibly commercial) software distribution provided that you do not advertise this Package as a product of your own. 6. The scripts and library files supplied as input to or produced as output from the programs of this Package do not automatically fall under the copyright of this Package, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this Package. 7. C or perl subroutines supplied by you and linked into this Package shall not be considered part of this Package. 8. The name of the Copyright Holder may not be used to endorse or promote products derived from this software without specific prior written permission. 9. 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. The End META.json000644001750001750 531212142137366 20550 0ustar00tokuhiromtokuhirom000000000000Module-Build-Pluggable-0.10{ "abstract" : "Module::Build meets plugins", "author" : [ "Tokuhiro Matsuno " ], "dynamic_config" : 0, "generated_by" : "Minilla/v0.4.0", "license" : "perl_5", "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : "2" }, "name" : "Module-Build-Pluggable", "no_index" : { "directory" : [ "t", "xt", "inc", "share", "eg", "examples", "author" ] }, "prereqs" : { "configure" : { "requires" : { "CPAN::Meta" : "0", "CPAN::Meta::Prereqs" : "0", "Module::Build" : "0.38" } }, "develop" : { "requires" : { "Test::CPAN::Meta" : "0", "Test::MinimumVersion" : "0.10108", "Test::Pod" : "1.41", "Test::Spellunker" : "v0.2.2" } }, "runtime" : { "requires" : { "Class::Accessor::Lite" : "0", "Class::Method::Modifiers" : "0", "Data::OptList" : "0", "File::Basename" : "0", "File::Path" : "0", "File::Temp" : "0", "Module::Build" : "0.38", "Module::Load" : "0", "Test::SharedFork" : "0", "parent" : "0", "perl" : "5.008001" } }, "test" : { "requires" : { "Test::More" : "0.98" } } }, "provides" : { "Module::Build::Pluggable" : { "file" : "lib/Module/Build/Pluggable.pm", "version" : "0.10" }, "Module::Build::Pluggable::Base" : { "file" : "lib/Module/Build/Pluggable/Base.pm" }, "Module::Build::Pluggable::GithubMeta" : { "file" : "lib/Module/Build/Pluggable/GithubMeta.pm" }, "Module::Build::Pluggable::Repository" : { "file" : "lib/Module/Build/Pluggable/Repository.pm", "version" : "0.10" }, "Module::Build::Pluggable::Util" : { "file" : "lib/Module/Build/Pluggable/Util.pm" }, "Test::Module::Build::Pluggable" : { "file" : "lib/Test/Module/Build/Pluggable.pm" } }, "release_status" : "stable", "resources" : { "bugtracker" : { "web" : "https://github.com/tokuhirom/Module-Build-Pluggable/issues" }, "homepage" : "https://github.com/tokuhirom/Module-Build-Pluggable", "repository" : { "url" : "git://github.com/tokuhirom/Module-Build-Pluggable.git", "web" : "https://github.com/tokuhirom/Module-Build-Pluggable" } }, "version" : "0.10", "x_contributors" : [ "tokuhirom " ] } README.md000644001750001750 206412142137366 20407 0ustar00tokuhiromtokuhirom000000000000Module-Build-Pluggable-0.10# NAME Module::Build::Pluggable - Module::Build meets plugins # SYNOPSIS use Module::Build::Pluggable ( 'Repository', 'ReadmeMarkdownFromPod', 'PPPort', ); my $builder = Module::Build::Pluggable->new( ... # normal M::B args ); $builder->create_build_script(); # DESCRIPTION Module::Build::Pluggable adds pluggability for Module::Build. # HOW CAN I WRITE MY OWN PLUGIN? Module::Build::Pluggable call __HOOK\_prepare__ on preparing arguments for `Module::Build->new`, __HOOK\_configure__ on configuration step, and __HOOK\_build__ on build step. That's all. And if you want a help, you can use [Module::Build::Pluggable::Base](http://search.cpan.org/perldoc?Module::Build::Pluggable::Base) as base class. # AUTHOR Tokuhiro Matsuno # SEE ALSO This module built on [Module::Build](http://search.cpan.org/perldoc?Module::Build). # LICENSE Copyright (C) Tokuhiro Matsuno This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. cpanfile000644001750001750 55212142137366 20614 0ustar00tokuhiromtokuhirom000000000000Module-Build-Pluggable-0.10requires 'Class::Accessor::Lite'; requires 'Class::Method::Modifiers'; requires 'Data::OptList'; requires 'File::Basename'; requires 'File::Path'; requires 'File::Temp'; requires 'Module::Build', '0.38'; requires 'Module::Load'; requires 'Test::SharedFork'; requires 'parent'; requires 'perl', '5.008001'; on test => sub { requires 'Test::More', '0.98'; }; Build.PL000644001750001750 60312142137366 20774 0ustar00tokuhiromtokuhirom000000000000Module-Build-Pluggable-0.10/eguse strict; use lib '../lib/'; use Module::Build; use Module::Build::Pluggable ( 'PPPort', # => 'lib/ppport.h' 'ReadmeMarkdownFromPod', 'Repository', ); my $mbp = Module::Build::Pluggable->new( dist_name => 'Eg', dist_version => 0.01, dist_abstract => 'test', dynamic_config => 0, module_name => 'Eg', requires => {}, ); $mbp->create_build_script() MANIFEST000644001750001750 6112142137366 20607 0ustar00tokuhiromtokuhirom000000000000Module-Build-Pluggable-0.10/egBuild.PL lib/Eg.pm MANIFEST This list of files README.mkdn000644001750001750 14612142137366 21312 0ustar00tokuhiromtokuhirom000000000000Module-Build-Pluggable-0.10/eg# SYNOPSIS # Here is code # SEE ALSO [Acme::Hidek](http://search.cpan.org/perldoc?Acme::Hidek) Eg.pm000644001750001750 20412142137366 21134 0ustar00tokuhiromtokuhirom000000000000Module-Build-Pluggable-0.10/eg/libpackage Eg; use strict; use warnings; use utf8; 1; __END__ =head1 SYNOPSIS # Here is code =head1 SEE ALSO L Pluggable.pm000644001750001750 1022612142137366 24441 0ustar00tokuhiromtokuhirom000000000000Module-Build-Pluggable-0.10/lib/Module/Buildpackage Module::Build::Pluggable; use strict; use warnings; use 5.008001; our $VERSION = '0.10'; use Module::Build; our $SUBCLASS; our $OPTIONS; our @REQUIRED_PLUGINS; use Data::OptList; use Data::Dumper; # as serializer. use Module::Load (); use Module::Build::Pluggable::Util; sub import { my $class = shift; my $pkg = caller(0); return unless @_; my $optlist = Data::OptList::mkopt(\@_); @REQUIRED_PLUGINS = map { _mkpluginname($_) } grep !/^\+/, map { $_->[0] } @$optlist; $optlist = [map { [ _mkpluginname($_->[0]), $_->[1] ] } @$optlist]; _author_requires(map { $_->[0] } @$optlist); push @$OPTIONS, @$optlist; $SUBCLASS = Module::Build->subclass( code => _mksrc(), ); } sub _author_requires { my @devmods = @_; my @not_available; for my $mod (@devmods) { ## no critic. eval qq{require $mod} or push @not_available, $mod; # need to diag $@ if an error message is not "Can't locate..."? } if (@not_available) { print qq{# The following modules are not available.\n}; print qq{# `$^X $0 | cpanm` will install them:\n}; print $_, "\n" for @not_available; print "\n"; exit -1; } } sub _mksrc { my $data = do { local $Data::Dumper::Terse = 1; local $Data::Dumper::Indent = 0; Data::Dumper::Dumper($OPTIONS); }; return sprintf(q{ use Module::Build::Pluggable; sub resume { my $class = shift; my $self = $class->SUPER::resume(@_); Module::Build::Pluggable->call_triggers_all('build', $self, %s); $self; } }, $data); } sub _mkpluginname { my $module = shift; $module = $module =~ s/^\+// ? $module : "Module::Build::Pluggable::$module"; $module; } sub new { my $class = shift; my %args = @_; $class->call_triggers_all('prepare', undef, $OPTIONS, \%args); my $builder = $SUBCLASS->new(%args); my $self = bless { builder => $builder }, $class; $self->_init(); $self->call_triggers_all('configure', $builder, $OPTIONS); return $self; } sub _init { my $self = shift; # setup (build|configure) requires for my $module (@REQUIRED_PLUGINS) { for my $type (qw/configure_requires build_requires/) { Module::Build::Pluggable::Util->add_prereqs( $self->{builder}, $type, $module, $module->VERSION, ); } } } sub call_triggers_all { my ($class, $type, $builder, $options, $args) =@_; for my $opt (@$options) { my ($module, $opts) = @$opt; $class->call_trigger($type, $builder, $module, $opts, $args); } } sub call_trigger { my ($class, $type, $builder, $module, $opts, $args) =@_; Module::Load::load($module); my $plugin = $module->new(builder => $builder, %{ $opts || +{} }); my $method = "HOOK_$type"; if ($plugin->can($method)) { $plugin->$method($args); } } sub DESTROY { } our $AUTOLOAD; sub AUTOLOAD { my $self = shift; $AUTOLOAD =~ s/.*:://; return $self->{builder}->$AUTOLOAD(@_); } 1; __END__ =encoding utf8 =for stopwords pluggability =head1 NAME Module::Build::Pluggable - Module::Build meets plugins =head1 SYNOPSIS use Module::Build::Pluggable ( 'Repository', 'ReadmeMarkdownFromPod', 'PPPort', ); my $builder = Module::Build::Pluggable->new( ... # normal M::B args ); $builder->create_build_script(); =head1 DESCRIPTION Module::Build::Pluggable adds pluggability for Module::Build. =head1 HOW CAN I WRITE MY OWN PLUGIN? Module::Build::Pluggable call B on preparing arguments for C<< Module::Build->new >>, B on configuration step, and B on build step. That's all. And if you want a help, you can use L as base class. =head1 AUTHOR Tokuhiro Matsuno Etokuhirom AAJKLFJEF@ GMAIL COME =head1 SEE ALSO This module built on L. =head1 LICENSE Copyright (C) Tokuhiro Matsuno This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =cut Base.pm000644001750001750 773012142137366 25301 0ustar00tokuhiromtokuhirom000000000000Module-Build-Pluggable-0.10/lib/Module/Build/Pluggablepackage Module::Build::Pluggable::Base; use strict; use warnings; use utf8; use Class::Method::Modifiers qw/install_modifier/; use Class::Accessor::Lite ( ro => [qw/builder/] ); use Module::Build::Pluggable::Util; sub new { my $class = shift; my %args = @_; bless { %args }, $class; } sub builder_class { my $self = shift; my $builder = $self->builder; $builder = ref $builder if ref $builder; return $builder; } # build sub add_before_action_modifier { my ($self, $target, $code) = @_; my $builder = $self->builder_class; unless ($builder) { Carp::confess("You can call add_before_action_modifier method from HOOK_build method only."); } install_modifier($builder, 'before', "ACTION_$target", $code); } # build sub add_around_action_modifier { my ($self, $target, $code) = @_; my $builder = $self->builder_class; unless ($builder) { Carp::confess("You can call add_around_action_modifier method from HOOK_build method only."); } install_modifier($builder, 'around', "ACTION_$target", $code); } # build sub add_action { my ($self, $name, $code) = @_; my $builder = $self->builder_class; unless ($builder) { Carp::confess("You can call add_action method from HOOK_build method only."); } no strict 'refs'; *{"$builder\::ACTION_$name"} = $code; } # configure sub build_requires { my $self = shift; Module::Build::Pluggable::Util->add_prereqs($self->builder, 'build_requires', @_); } # configure sub configure_requires { my $self = shift; Module::Build::Pluggable::Util->add_prereqs($self->builder, 'configure_requires', @_); } sub requires { my $self = shift; Module::Build::Pluggable::Util->add_prereqs($self->builder, 'requires', @_); } sub add_extra_compiler_flags { my ($self, @flags) = @_; $self->builder->extra_compiler_flags(@{$self->builder->extra_compiler_flags}, @flags); } sub log_warn { shift->builder->log_warn(@_) } sub log_info { shift->builder->log_info(@_) } # taken from M::I::Can # Check if we can run some command sub can_run { my ($self, $cmd) = @_; require ExtUtils::MakeMaker; my $_cmd = $cmd; return $_cmd if (-x $_cmd or $_cmd = MM->maybe_command($_cmd)); for my $dir ((split /$Config::Config{path_sep}/, $ENV{PATH}), '.') { next if $dir eq ''; require File::Spec; my $abs = File::Spec->catfile($dir, $cmd); return $abs if (-x $abs or $abs = MM->maybe_command($abs)); } return; } 1; __END__ =head1 NAME Module::Build::Pluggable::Base - Base object for plugins =head1 SYNOPSIS package My::Module::Build::Plugin; use parent qw/Module::Build::Pluggable::Base/; =head1 DESCRIPTION This is a abstract base class for Module::Build::Pluggable. =head1 METHODS =over 4 =item $self->builder_class() : Str Get a class name for Module::Build's subclass. You cannot call this method in C and B phase. =item $self->add_before_action_modifier($action_name: Str, $callback: Code) $self->add_before_action_modifier('build' => \&code); Add a 'before' action method modifier. You need to call this method in C phase. =item $self->add_around_action_modifier($action_name: Str, $callback: Code) $self->add_around_action_modifier('build' => \&code); Add a 'around' action method modifier. You need to call this method in C phase. =item $self->add_action($action_name: Str, $callback: Code) Add a new action for Module::Build. You need to call this method in C phase. =item $self->build_requires($module_name:Str[, $version:Str]) Add a build dependencies. You need to call this method in C phase. =item $self->configure_requires($module_name:Str[, $version:Str]) Add a configure dependencies. You need to call this method in C phase. =item C<< $self->log_info($msg: Str) >> Output log in INFO level. =item C<< $self->log_warn($msg: Str) >> Output log in WARN level. =back GithubMeta.pm000644001750001750 441012142137366 26450 0ustar00tokuhiromtokuhirom000000000000Module-Build-Pluggable-0.10/lib/Module/Build/Pluggablepackage Module::Build::Pluggable::GithubMeta; use strict; use warnings; use utf8; use parent qw(Module::Build::Pluggable::Base); use Cwd (); sub HOOK_configure { my ($self) = shift; return unless _under_git(); return unless $self->can_run('git'); my $remote = shift || 'origin'; return unless my ($git_url) = `git remote show -n $remote` =~ /URL: (.*)$/m; return unless $git_url =~ /github\.com/; # Not a Github repository my $http_url = $git_url; $git_url =~ s![\w\-]+\@([^:]+):!git://$1/!; $http_url =~ s![\w\-]+\@([^:]+):!https://$1/!; $http_url =~ s!\.git$!/tree!; $self->builder->meta_merge('resources', { 'repository' => $git_url, 'homepage' => $http_url, }); return 1; } sub _under_git { return 1 if -e '.git'; my $cwd = Cwd::getcwd; my $last = $cwd; my $found = 0; while (1) { chdir '..' or last; my $current = Cwd::getcwd; last if $last eq $current; $last = $current; if ( -e '.git' ) { $found = 1; last; } } chdir $cwd; return $found; } 1; __END__ =head1 NAME Module::Build::Pluggable::GithubMeta - A Module::Build extension to include GitHub meta information in META.yml =head1 SYNOPSIS use Module::Build::Pluggable qw( GithubMeta ); my $builder = Module::Build::Pluggable->new( ... ); $builder->crate_build_script(); =head1 DESCRIPTION Module::Build::GithubMeta is a Module::Build extension to include GitHub http://github.com meta information in META.yml. It automatically detects if the distribution directory is under git version control and whether the origin is a GitHub repository and will set the repository and homepage meta in META.yml to the appropriate URLs for GitHub. =head1 AUTHOR Tokuhiro Matsuno Based on code from L by Chris C Williams, Based on code from L by Tatsuhiko Miyagawa =head1 LICENSE Copyright E Tokuhiro Matsuno, Chris Williams and Tatsuhiko Miyagawa This module may be used, modified, and distributed under the same terms as Perl itself. Please see the license that came with your Perl distribution for details. =head1 SEE ALSO L Repository.pm000644001750001750 473612142137366 26611 0ustar00tokuhiromtokuhirom000000000000Module-Build-Pluggable-0.10/lib/Module/Build/Pluggablepackage Module::Build::Pluggable::Repository; use strict; use warnings; use utf8; use parent qw/Module::Build::Pluggable::Base/; our $VERSION = '0.10'; sub _execute { my ($command) = @_; `$command`; } sub HOOK_configure { my $self = shift; my $repo = _find_repo(\&_execute); if ($repo) { $self->builder->meta_merge('resources', {'repository' => $repo}); } else { $self->log_warn("Cannot determine repository URL\n"); } } sub _find_repo { my ($execute) = @_; if (-e ".git") { # TODO support remote besides 'origin'? if ($execute->('git remote show -n origin') =~ /URL: (.*)$/m) { # XXX Make it public clone URL, but this only works with github my $git_url = $1; $git_url =~ s![\w\-]+\@([^:]+):!git://$1/!; return $git_url; } elsif ($execute->('git svn info') =~ /URL: (.*)$/m) { return $1; } } elsif (-e ".svn") { if (`svn info` =~ /URL: (.*)$/m) { return $1; } } elsif (-e "_darcs") { # defaultrepo is better, but that is more likely to be ssh, not http if (my $query_repo = `darcs query repo`) { if ($query_repo =~ m!Default Remote: (http://.+)!) { return $1; } } open my $handle, '<', '_darcs/prefs/repos' or return; while (<$handle>) { chomp; return $_ if m!^http://!; } } elsif (-e ".hg") { if ($execute->('hg paths') =~ /default = (.*)$/m) { my $mercurial_url = $1; $mercurial_url =~ s!^ssh://hg\@(bitbucket\.org/)!https://$1!; return $mercurial_url; } } elsif (-e "$ENV{HOME}/.svk") { # Is there an explicit way to check if it's an svk checkout? my $svk_info = `svk info` or return; SVK_INFO: { if ($svk_info =~ /Mirrored From: (.*), Rev\./) { return $1; } if ($svk_info =~ m!Merged From: (/mirror/.*), Rev\.!) { $svk_info = `svk info /$1` or return; redo SVK_INFO; } } return; } } 1; __END__ =head1 NAME Module::Build::Pluggable::Repository - set repository information automatically =head1 SYNOPSIS use Module::Build::Pluggable ( 'Repository' ); =head1 OPTIONS There is no options. =head1 AUTHORS Ported to M::B::P by Tokuhiro Matsuno Most of codes taken from L Util.pm000644001750001750 102112142137366 25327 0ustar00tokuhiromtokuhirom000000000000Module-Build-Pluggable-0.10/lib/Module/Build/Pluggablepackage Module::Build::Pluggable::Util; use strict; use warnings; use utf8; # copied from M::B::Base sub add_prereqs { my ( $class, $builder, $type, $module, $version ) = @_; my $p = $builder->{properties}; $version = 0 unless defined $version; if ( exists $p->{$type}{$module} ) { return if $builder->compare_versions( $version, '<=', $p->{$type}{$module} ); } $builder->log_verbose("Adding to $type\: $module => $version\n"); $p->{$type}{$module} = $version; return 1; } 1; Pluggable.pm000644001750001750 577512142137366 25355 0ustar00tokuhiromtokuhirom000000000000Module-Build-Pluggable-0.10/lib/Test/Module/Buildpackage Test::Module::Build::Pluggable; use strict; use warnings; use utf8; use File::Temp qw/tempdir/; use Cwd; use Test::SharedFork; use File::Basename (); use File::Path (); sub new { my $class = shift; my %args = @_==1 ? %{$_[0]} : @_; my $self = bless { files => [], cleanup => 1, %args }, $class; $self->{origcwd} = Cwd::getcwd(); $self->{dir} = tempdir(CLEANUP => $self->{cleanup}); $self->{libdir} = tempdir(CLEANUP => $self->{cleanup}); unshift @INC, $self->{libdir}; chdir $self->{dir}; return $self; } sub DESTROY { my $self = shift; chdir($self->{origcwd}); } sub write_plugin { my ($self, $package, $content) = @_; my $ofile = do { my $path = $package; $path =~ s!::!/!g; $path .= ".pm"; File::Spec->catfile($self->{libdir}, $path); }; File::Path::mkpath(File::Basename::dirname($ofile)); open my $fh, '>', $ofile or die "Cannot open $ofile, $!"; print {$fh} $content; close $fh; push @{$self->{files}}, $ofile; } sub write_file { my ($self, $fname, $content) = @_; if (my $dir = File::Basename::dirname($fname)) { File::Path::mkpath($dir); } open my $fh, '>', $fname or die "Cannot open $fname: $!"; print $fh $content; close $fh; push @{$self->{files}}, $fname; } sub write_manifest { my $self = shift; open my $fh, '>', 'MANIFEST' or die "Cannot open MANIFEST: $!"; for (@{$self->{files}}) { print $fh $_ . "\n"; } close $fh; } sub read_file { my ($self, $fname) = @_; open my $fh, '<', $fname or die "Cannot open $fname in @{[ Cwd::getcwd() ]}: $!"; local $/; scalar(<$fh>); } sub run_build_script { my ($self, @args) = @_; my $pid = fork(); die "fork failed: $!" unless defined $pid; if ($pid) { # parent waitpid $pid, 0; } else { # child local @ARGV = (@args); do 'Build'; ::ok(!$@) or ::diag $@; exit 0; } } sub run_build_pl { my ($self, @args) = @_; my $pid = fork(); die "fork failed: $!" unless defined $pid; if ($pid) { # parent waitpid $pid, 0; } else { # child local @ARGV = @args; do 'Build.PL'; ::ok(-f 'Build', 'Created Build file') or ::diag $@; exit 0; } } 1; __END__ =head1 NAME Test::Module::Build::Pluggable - Test your plugin =head1 SYNOPSIS my $test = Test::Module::Build::Pluggable->new(); $test->write_file('Build.PL', <<'...'); ... $test->run_build_pl(); $test->run_build_script(); # test... =head1 METHODS =over 4 =item C<< my $test = Test::Module::Build::Pluggable->new() >> =item C<< $test->write_file($filename, $src); >> =item C<< $test->write_plugin($package, $src); >> =item C<< $test->write_manifest(); >> Write manifest from file list. The file list means list of file name added by C<< $test->write_file >> and C<< $test->write_plugin >> =item C<< $test->run_build_pl(); >> =item C<< $test->run_build_script(); >> =back 00_compile.t000644001750001750 30112142137366 21457 0ustar00tokuhiromtokuhirom000000000000Module-Build-Pluggable-0.10/tuse strict; use Test::More tests => 1; use Module::Build::Pluggable::Base; use Module::Build::Pluggable::Util; use Test::Module::Build::Pluggable; BEGIN { use_ok 'Module::Build::Pluggable' } 01_simple.t000644001750001750 137712142137366 21357 0ustar00tokuhiromtokuhirom000000000000Module-Build-Pluggable-0.10/tuse strict; use warnings; use utf8; use Test::More; use File::Spec; use lib File::Spec->rel2abs('t/lib/'); use File::Path; use t::Util; BEGIN { rmtree 't/tmp/'; mkpath 't/tmp/'; chdir 't/tmp/'; spew('MANIFEST', ''); } use Module::Build::Pluggable ( 'T1', ); my $builder = Module::Build::Pluggable->new( dist_name => 'Eg', dist_version => 0.01, dist_abstract => 'test', dynamic_config => 0, module_name => 'Eg', requires => {}, provides => {}, author => 1, dist_author => 'test', ); $builder->create_build_script(); is($Module::Build::Pluggable::T1::CONFIGURE_CALLED, 1); # I think here need to fork to refresh, but i'm lazy. ok(-f 'Build'); do 'Build'; is($Module::Build::Pluggable::T1::BUILD_CALLED, 1); done_testing; 02_requires.t000644001750001750 227112142137366 21720 0ustar00tokuhiromtokuhirom000000000000Module-Build-Pluggable-0.10/tuse strict; use warnings; use utf8; use Test::More; use File::Spec; use lib File::Spec->rel2abs('lib'); use File::Path; use Test::Module::Build::Pluggable; subtest 'Module::Build::Pluggable::Base#requries' => sub { my $test = Test::Module::Build::Pluggable->new(); $test->write_plugin('Module::Build::Pluggable::Requires', <<'...'); package Module::Build::Pluggable::Requires; use strict; use warnings; use utf8; use parent qw/Module::Build::Pluggable::Base/; sub HOOK_configure { my $self = shift; $self->requires('Devel::PPPort' => 3.18); } 1; ... $test->write_file('Build.PL', <<'...'); use strict; use Module::Build::Pluggable ( 'Requires', ); my $builder = Module::Build::Pluggable->new( dist_name => 'Eg', dist_version => 0.01, dist_abstract => 'test', dynamic_config => 0, module_name => 'Eg', requires => {}, provides => {}, author => 1, dist_author => 'test', ); $builder->create_build_script(); ... $test->write_file('MANIFEST', join("\n", qw(MANIFEST))); $test->run_build_pl(); my $meta = $test->read_file('MYMETA.yml'); like($meta, qr/Devel::PPPort/, 'requires Devel::PPPort'); note $meta; }; done_testing; 03_add_extra_compiler_flags.t000644001750001750 236712142137366 25071 0ustar00tokuhiromtokuhirom000000000000Module-Build-Pluggable-0.10/tuse strict; use warnings; use utf8; use Test::More; use File::Spec; use lib File::Spec->rel2abs('lib'); use File::Path; use Test::Module::Build::Pluggable; subtest 'Module::Build::Pluggable::Base#add_extra_compiler_flags' => sub { my $test = Test::Module::Build::Pluggable->new( cleanup => $ENV{DEBUG} ? 0 : 1, ); $test->write_plugin('Module::Build::Pluggable::Extra', <<'...'); package Module::Build::Pluggable::Extra; use strict; use warnings; use utf8; use parent qw/Module::Build::Pluggable::Base/; sub HOOK_configure { my $self = shift; $self->add_extra_compiler_flags('-Wall'); } 1; ... $test->write_file('Build.PL', <<'...'); use strict; use Module::Build::Pluggable ( 'Extra', ); my $builder = Module::Build::Pluggable->new( dist_name => 'Eg', dist_version => 0.01, dist_abstract => 'test', dynamic_config => 0, module_name => 'Eg', requires => {}, provides => {}, author => 1, dist_author => 'test', ); $builder->create_build_script(); ... $test->write_file('MANIFEST', join("\n", qw(MANIFEST))); $test->run_build_pl(); my $params = $test->read_file('_build/build_params'); like($params, qr/-Wall/, 'added extra compiler flags'); note $params; }; done_testing; 04_test_args.t000644001750001750 361612142137366 22062 0ustar00tokuhiromtokuhirom000000000000Module-Build-Pluggable-0.10/tuse strict; use warnings; use utf8; use Test::More; use File::Spec; use lib File::Spec->rel2abs('lib'); use File::Path; use Test::Module::Build::Pluggable; BEGIN { *describe = *context = *it = *Test::More::subtest } describe 'Test::Module::Build::Pluggable::run_build_pl passes @ARGV' => sub { context 'with no args' => sub { my $test = setup(); $test->run_build_pl(); my $params = $test->read_file('ddd'); is($params, '0', 'arguments for read_file is passed to @ARGV'); ok(-f 'called'); note $params; }; context 'with -g option' => sub { my $test = setup(); $test->run_build_pl('-g'); my $params = $test->read_file('ddd'); is($params, '1', 'arguments for read_file is passed to @ARGV'); ok(-f 'called'); note $params; }; }; done_testing; sub setup { my $test = Test::Module::Build::Pluggable->new(); $test->write_plugin('Module::Build::Pluggable::Extra', <<'...'); package Module::Build::Pluggable::Extra; use strict; use warnings; use utf8; use parent qw/Module::Build::Pluggable::Base/; sub HOOK_prepare { my ($class, $args) = @_; open my $fh, '>', 'called'; print {$fh} 1; close $fh; die "Other plugins uses -g option" if $args->{get_options}->{g}; $args->{get_options}->{g} = { type => '!' }; } 1; ... $test->write_file('Build.PL', <<'...'); use strict; use Module::Build::Pluggable ( 'Extra' ); my $builder = Module::Build::Pluggable->new( dist_name => 'Eg', dist_version => 0.01, dist_abstract => 'test', dynamic_config => 0, module_name => 'Eg', requires => {}, provides => {}, author => 1, dist_author => 'test', ); $builder->create_build_script(); open my $fh, '>', 'ddd' or die $!; print {$fh} ($builder->args('g') ? 1 : 0); close $fh; ... $test->write_file('MANIFEST', join("\n", qw(MANIFEST))); return $test; } 05_ignore_plus.t000644001750001750 355112142137366 22414 0ustar00tokuhiromtokuhirom000000000000Module-Build-Pluggable-0.10/tuse strict; use warnings; use utf8; use Test::More; use File::Spec; use lib File::Spec->rel2abs('lib'); use File::Path; use Test::Module::Build::Pluggable; # Module::Build::Pluggable should not add "+My::Own::Plugin" to (build|configure)_requires. my $test = Test::Module::Build::Pluggable->new(); $test->write_plugin('My::Own::Plugin', <<'...'); package My::Own::Plugin; use strict; use warnings; use utf8; use parent qw/Module::Build::Pluggable::Base/; sub HOOK_configure { my $self = shift; warn "CONFIGURE"; $self->requires('Devel::PPPort' => 3.18); } 1; ... $test->write_plugin('Module::Build::Pluggable::Requires', <<'...'); package Module::Build::Pluggable::Requires; use strict; use warnings; use utf8; use parent qw/Module::Build::Pluggable::Base/; sub HOOK_configure { my $self = shift; $self->requires('HTML::FillInForm' => 3.18); } 1; ... $test->write_file('Build.PL', <<'...'); use strict; use Module::Build::Pluggable ( '+My::Own::Plugin', 'Requires', ); my $builder = Module::Build::Pluggable->new( dist_name => 'Eg', dist_version => 0.01, dist_abstract => 'test', dynamic_config => 0, module_name => 'Eg', requires => {}, provides => {}, author => 1, dist_author => 'test', ); $builder->create_build_script(); ... $test->write_file('MANIFEST', join("\n", qw(MANIFEST))); $test->run_build_pl(); my $meta = $test->read_file('MYMETA.yml'); unlike($meta, qr/My::Own::Plugin/, 'Do not requires My::Own::Plugin. Since it was required with + prefix.'); like($meta, qr/Devel::PPPort/, 'requires Devel::PPPort(This means the plugin module module is works well.)'); like($meta, qr/HTML::FillInForm/, 'requires HTML::FillInForm(This means the plugin module module is works well.)'); like($meta, qr/Module::Build::Pluggable::Requires/, 'require plugin if it does not have + prefix'); note $meta; done_testing; Util.pm000644001750001750 41112142137366 20620 0ustar00tokuhiromtokuhirom000000000000Module-Build-Pluggable-0.10/tpackage t::Util; use strict; use warnings; use utf8; use parent qw(Exporter); our @EXPORT = qw(spew); sub spew { my ($fname, $content) = @_; open my $fh, '>', $fname or die "Cannot open '$fname' for writing: $!"; print {$fh} $content; } 1; T1.pm000644001750001750 44212142137366 25127 0ustar00tokuhiromtokuhirom000000000000Module-Build-Pluggable-0.10/t/lib/Module/Build/Pluggablepackage Module::Build::Pluggable::T1; use strict; use warnings; use utf8; use parent qw/Module::Build::Pluggable::Base/; our $CONFIGURE_CALLED = 0; sub HOOK_configure { ::note "CONFIGURE"; $CONFIGURE_CALLED++; } our $BUILD_CALLED = 0; sub HOOK_build { $BUILD_CALLED++; } 1; 02_perlcritic.t000644001750001750 240312142137366 22406 0ustar00tokuhiromtokuhirom000000000000Module-Build-Pluggable-0.10/xtuse strict; use warnings; use Test::More; eval { require Perl::Critic; Perl::Critic->VERSION(1.105); require Test::Perl::Critic; Test::Perl::Critic->VERSION(1.02); Test::Perl::Critic->import( -profile => \(join q{}, ) ); }; note $@ if $@; plan skip_all => "Perl::Critic 1.105+ or Test::Perl::Critic 1.02+ is not installed." if $@; all_critic_ok('lib', 'script', 'bin'); __END__ only=1 # ------------------------------------------------------------------------- # Not important. [BuiltinFunctions::ProhibitSleepViaSelect] [BuiltinFunctions::RequireGlobFunction] [ClassHierarchies::ProhibitOneArgBless] # ------------------------------------------------------------------------- # Bug detection [InputOutput::ProhibitBarewordFileHandles] [Modules::RequireFilenameMatchesPackage] [Subroutines::ProhibitNestedSubs] [Subroutines::ProhibitReturnSort] [TestingAndDebugging::RequireUseStrict] [Variables::ProhibitConditionalDeclarations] [Variables::RequireLexicalLoopIterators] [TestingAndDebugging::ProhibitNoStrict] allow=refs # ------------------------------------------------------------------------- # Security issue detection [InputOutput::RequireEncodingWithUTF8Layer] [Modules::ProhibitEvilModules] [InputOutput::ProhibitTwoArgOpen] META.yml000644001750001750 316412142137366 20403 0ustar00tokuhiromtokuhirom000000000000Module-Build-Pluggable-0.10--- abstract: 'Module::Build meets plugins' author: - 'Tokuhiro Matsuno ' build_requires: Test::More: 0.98 configure_requires: CPAN::Meta: 0 CPAN::Meta::Prereqs: 0 Module::Build: 0.38 dynamic_config: 0 generated_by: 'Minilla/v0.4.0, CPAN::Meta::Converter version 2.120921' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: 1.4 name: Module-Build-Pluggable no_index: directory: - t - xt - inc - share - eg - examples - author provides: Module::Build::Pluggable: file: lib/Module/Build/Pluggable.pm version: 0.10 Module::Build::Pluggable::Base: file: lib/Module/Build/Pluggable/Base.pm version: 0 Module::Build::Pluggable::GithubMeta: file: lib/Module/Build/Pluggable/GithubMeta.pm version: 0 Module::Build::Pluggable::Repository: file: lib/Module/Build/Pluggable/Repository.pm version: 0.10 Module::Build::Pluggable::Util: file: lib/Module/Build/Pluggable/Util.pm version: 0 Test::Module::Build::Pluggable: file: lib/Test/Module/Build/Pluggable.pm version: 0 requires: Class::Accessor::Lite: 0 Class::Method::Modifiers: 0 Data::OptList: 0 File::Basename: 0 File::Path: 0 File::Temp: 0 Module::Build: 0.38 Module::Load: 0 Test::SharedFork: 0 parent: 0 perl: 5.008001 resources: bugtracker: https://github.com/tokuhirom/Module-Build-Pluggable/issues homepage: https://github.com/tokuhirom/Module-Build-Pluggable repository: git://github.com/tokuhirom/Module-Build-Pluggable.git version: 0.10 x_contributors: - 'tokuhirom ' MANIFEST000644001750001750 100512142137366 20253 0ustar00tokuhiromtokuhirom000000000000Module-Build-Pluggable-0.10Build.PL Changes LICENSE META.json README.md cpanfile eg/Build.PL eg/MANIFEST eg/README.mkdn eg/lib/Eg.pm lib/Module/Build/Pluggable.pm lib/Module/Build/Pluggable/Base.pm lib/Module/Build/Pluggable/GithubMeta.pm lib/Module/Build/Pluggable/Repository.pm lib/Module/Build/Pluggable/Util.pm lib/Test/Module/Build/Pluggable.pm t/00_compile.t t/01_simple.t t/02_requires.t t/03_add_extra_compiler_flags.t t/04_test_args.t t/05_ignore_plus.t t/Util.pm t/lib/Module/Build/Pluggable/T1.pm xt/02_perlcritic.t META.yml MANIFEST