c9s/Plack-Middleware-OAuth — pull request #5 by RsrchBoy (2011-10-15 03:24:40+00:00)
Title: include Module::Install bits

I just tried doing a "cpanm Plack::Middleware::OAuth" on a virgin perl install, and it bombed out with:

```

--> Working on Plack::Middleware::OAuth
Fetching http://search.cpan.org/CPAN/authors/id/C/CO/CORNELIUS/Plack-Middleware-OAuth-0.09.tar.gz
-> OK
Unpacking Plack-Middleware-OAuth-0.09.tar.gz
Entering Plack-Middleware-OAuth-0.09
Checking configure dependencies from META.yml
Checking if you have ExtUtils::MakeMaker 6.42 ... Yes (6.59)
Configuring Plack-Middleware-OAuth-0.09
Running Makefile.PL
include /home/cweyl/.cpanm/work/1318648072.4338/Plack-Middleware-OAuth-0.09/inc/Module/Install.pm
Prototype mismatch: sub main::prompt ($;$) vs none at inc/Module/Install.pm line 225.
String found where operator expected at Makefile.PL line 9, near "readme_markdown_from 'lib/Plack/Middleware/OAuth.pm'"
(Do you need to predeclare readme_markdown_from?)
syntax error at Makefile.PL line 9, near "readme_markdown_from 'lib/Plack/Middleware/OAuth.pm'"
Execution of Makefile.PL aborted due to compilation errors.
-> N/A
-> FAIL Configure failed for Plack-Middleware-OAuth-0.09. See /home/cweyl/.cpanm/build.log for details.
```

If I'm remembering correctly, inc/ needs to be bundled with the dist for Module::Install to work correctly, especially when using MI extensions (that which caused the kaboom in my case). This should fix that :)